mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
* Filtering regions for public preview * rename var * reverting back to const Co-authored-by: Aasim Khan <aasimkhan30@gmail.com>
This commit is contained in:
@@ -43,7 +43,31 @@ export async function getLocations(account: azdata.Account, subscription: Subscr
|
|||||||
const filteredLocations = response.locations.filter(loc => {
|
const filteredLocations = response.locations.filter(loc => {
|
||||||
return sqlMigrationResourceLocations.includes(loc.displayName);
|
return sqlMigrationResourceLocations.includes(loc.displayName);
|
||||||
});
|
});
|
||||||
return filteredLocations;
|
|
||||||
|
// Only including the regions that have migration service deployed for public preview.
|
||||||
|
const publicPreviewLocations = [
|
||||||
|
'eastus',
|
||||||
|
'canadaeast',
|
||||||
|
'canadacentral',
|
||||||
|
'centralus',
|
||||||
|
'westus2',
|
||||||
|
'westus',
|
||||||
|
'southcentralus',
|
||||||
|
'westeurope',
|
||||||
|
'uksouth',
|
||||||
|
'australiaeast',
|
||||||
|
'southeastasia',
|
||||||
|
'japaneast',
|
||||||
|
'centralindia',
|
||||||
|
'eastus2',
|
||||||
|
'eastus2euap',
|
||||||
|
'francecentral',
|
||||||
|
'southindia',
|
||||||
|
'australiasoutheast',
|
||||||
|
'northcentralus'
|
||||||
|
];
|
||||||
|
|
||||||
|
return filteredLocations.filter(v => publicPreviewLocations.includes(v.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AzureProduct = azureResource.AzureGraphResource;
|
export type AzureProduct = azureResource.AzureGraphResource;
|
||||||
|
|||||||
Reference in New Issue
Block a user