Skip to content

Commit

Permalink
move code to Install-CLI function
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathys committed Jun 8, 2024
1 parent 90d4e89 commit 8d09649
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/scripts/AksEdgeAzureSetup/AksEdgeAzureSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ function Install-AzCli {
Write-Host "Error: Required versions not found after az upgrade. Please try uninstalling and reinstalling" -ForegroundColor Red
}
}

# workaround CLI login issue if using CLI 2.61.0
Set-CLILoginExperience
}
# Formats JSON in a nicer format than the built-in ConvertTo-Json does.
# https://github.com/PowerShell/PowerShell/issues/2736
Expand Down Expand Up @@ -137,7 +140,6 @@ if ($arcLocations -inotcontains $($aicfg.Location)) {
}
# Install Cli
Install-AzCli
Set-CLILoginExperience
Write-Host "$aicfg"
Write-Host "> az login to create/update service principal" -ForegroundColor Cyan
$loginparams = @("--scope", "https://graph.microsoft.com//.default" )
Expand Down

0 comments on commit 8d09649

Please sign in to comment.