Update azure graph queries to allow multiple subs (#12124)

This commit is contained in:
Charles Gagnon
2020-09-03 19:07:37 -07:00
committed by GitHub
parent b1ce53ade3
commit 9004769865
6 changed files with 13 additions and 13 deletions

View File

@@ -121,7 +121,7 @@ export async function getResourceGroups(appContext: AppContext, account?: azdata
const token = tokenResponse.token;
const tokenType = tokenResponse.tokenType;
result.resourceGroups.push(...await service.getResources(subscription, new TokenCredentials(token, tokenType), account));
result.resourceGroups.push(...await service.getResources([subscription], new TokenCredentials(token, tokenType), account));
} catch (err) {
const error = new Error(localize('azure.accounts.getResourceGroups.queryError', "Error fetching resource groups for account {0} ({1}) subscription {2} ({3}) tenant {4} : {5}",
account.displayInfo.displayName,