We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf7edf commit 84cd020Copy full SHA for 84cd020
src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/DeploymentTests.ps1
@@ -90,8 +90,7 @@ function Test-NewDeploymentWithKeyVaultReference
90
91
$context = Get-AzureRmContext
92
$subscriptionId = $context.Subscription.SubscriptionId
93
- $account = Get-AzureAccount -Name $context.Account.Id
94
- $tenantId = $account.Tenants
+ $tenantId = $context.Tenant.TenantId
95
$adUser = Get-AzureRmADUser -UserPrincipalName $context.Account.Id
96
$objectId = $adUser.Id
97
$KeyVaultResourceId = "/subscriptions/" + $subscriptionId + "/resourcegroups/" + $rgname + "/providers/Microsoft.KeyVault/vaults/" + $keyVaultname
0 commit comments