[Azure Core, SQL Migration] Fix wrong endpoints being used for non-public clouds (#20304)

* Add correct host to ARM REST API calls

* Clean up

* Missed a spot

* One more comment

* Expose new function getProviderMetadataForAccount in azurecore API
This commit is contained in:
Raymond Truong
2022-08-15 14:37:41 -07:00
committed by GitHub
parent e57acae79a
commit 10f5b8b76e
5 changed files with 70 additions and 32 deletions

View File

@@ -306,6 +306,7 @@ declare module 'azurecore' {
* @param region The region value
*/
getRegionDisplayName(region?: string): string;
getProviderMetadataForAccount(account: AzureAccount): AzureAccountProviderMetadata;
provideResources(): azureResource.IAzureResourceProvider[];
runGraphQuery<T extends azureResource.AzureGraphResource>(account: AzureAccount, subscriptions: azureResource.AzureResourceSubscription[], ignoreErrors: boolean, query: string): Promise<ResourceQueryResult<T>>;