Check az login for target subscription in stress deploy login (#1639)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Родитель
c7fab296be
Коммит
96935308c6
|
@ -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
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче