Open aluty opened 1 year ago
Thank you for opening this issue, we will look into it.
The product name change from Microsoft Azure CLI
to Microsoft Azure CLI (32-bit)
is expected according to https://github.com/Azure/azure-cli/pull/26640#issuecomment-1660054026.
az upgrade
is never meant to be non-interactive as no /q
or /quiet
argument is given when invoking msiexec.exe
:
It will always prompt for the MSI installation window:
I doubt in your previous executions, there is no update available. The output of az upgrade --all --yes
should look like:
> az upgrade --all --yes
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.51.0
Upgrade finished.You can enable auto-upgrade with 'az config set auto-upgrade.enable=yes'. More details in https://docs.microsoft.com/cli/azure/update-azure-cli#automatic-update
See:
Describe the bug
BEFORE: PS> Get-Package -ProviderName msi -Name 'Microsoft Azure CLI'
AFTER: Get-Package -ProviderName msi -Name 'Microsoft Azure CLI (32-bit)'
Name Version Source ProviderName
Microsoft Azure CLI 2.50.0 msi
Microsoft Azure CLI (32-bit) 2.51.0 msi
Related command
az upgrade --all --yes
Errors
No error, just change in update behavior.
Issue script & Debug output
<# .SYNOPSIS Installs Azure CLI (Command Line Interface). .NOTES How to install the Azure CLI & Start-Process https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
>
Import-Module -Name PackageManagement -ErrorAction Stop
$az = "${env:ProgramFiles(x86)}\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" $msiFile = "${env:USERPROFILE}\Downloads\AzureCLI.msi" if (-not (Test-Path -Path $az -PathType Leaf)) {
Write-Warning -Message "Install Azure CLI?" -WarningAction Inquire
} Get-Package -ProviderName msi -Name 'Microsoft Azure CLI' -Verbose | Format-Table -AutoSize
$azDevopsInstalled = & $az extension list --query "[? name == 'azure-devops']" | ConvertFrom-Json | Select-Object -First 1 if (-not $azDevopsInstalled) {
Add the Azure DevOps extension
}
NOTE: Avoid stop on error due to stderr: This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
$ErrorActionPreferenceBackup = $ErrorActionPreference try { $ErrorActionPreference = [System.Management.Automation.ActionPreference]::SilentlyContinue & $az upgrade --all --yes } finally { $ErrorActionPreference = $ErrorActionPreferenceBackup }
& $az version
Expected behavior
Silent upgrade from 2.50.0 to 2.51.0
Environment Summary
CMD> az --version
Additional context
No response