diff --git a/auth/src/VSCodeAzureSubscriptionProvider.ts b/auth/src/VSCodeAzureSubscriptionProvider.ts index 90ac2200fc..63bac01e35 100644 --- a/auth/src/VSCodeAzureSubscriptionProvider.ts +++ b/auth/src/VSCodeAzureSubscriptionProvider.ts @@ -64,8 +64,7 @@ export class VSCodeAzureSubscriptionProvider extends vscode.Disposable implement Authorization: `Bearer ${await this.getToken()}`, } }); - const listTenantsResponseJson = await listTenantsResponse.json() as { value: TenantIdDescription[] }; - return listTenantsResponseJson.value.filter(tenant => tenant.displayName?.includes('Directory')); + return (await listTenantsResponse.json() as { value: TenantIdDescription[] }).value; } /**