Check az login for target subscription in stress deploy login (#5054)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
parent
ccddc7f3ed
commit
5174503dc3
@ -46,7 +46,7 @@ function RunOrExitOnFailure()
|
||||
function Login([string]$subscription, [string]$clusterGroup, [switch]$skipPushImages)
|
||||
{
|
||||
Write-Host "Logging in to subscription, cluster and container registry"
|
||||
az account show *> $null
|
||||
az account show -s "$subscription" *> $null
|
||||
if ($LASTEXITCODE) {
|
||||
RunOrExitOnFailure az login --allow-no-subscriptions
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user