Skip to content

Commit 84cd020

Browse files
committed
Update DeploymentTests.ps1
1 parent 7bf7edf commit 84cd020

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/DeploymentTests.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ function Test-NewDeploymentWithKeyVaultReference
9090

9191
$context = Get-AzureRmContext
9292
$subscriptionId = $context.Subscription.SubscriptionId
93-
$account = Get-AzureAccount -Name $context.Account.Id
94-
$tenantId = $account.Tenants
93+
$tenantId = $context.Tenant.TenantId
9594
$adUser = Get-AzureRmADUser -UserPrincipalName $context.Account.Id
9695
$objectId = $adUser.Id
9796
$KeyVaultResourceId = "/subscriptions/" + $subscriptionId + "/resourcegroups/" + $rgname + "/providers/Microsoft.KeyVault/vaults/" + $keyVaultname

0 commit comments

Comments
 (0)