Skip to content

Commit

Permalink
Check az login for target subscription in stress deploy login (#37344)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
  • Loading branch information
azure-sdk and benbp committed Oct 24, 2023
1 parent 02995a4 commit c0721fa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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
}
Expand Down

0 comments on commit c0721fa

Please sign in to comment.