Skip to content

az upgrade fails on Windows 10: The system administrator has set policies to prevent this installation. #19171

@heaths

Description

@heaths

This is autogenerated. Please review and update as needed.

Describe the bug

When I run az upgrade, the MSI is downloaded and script generated (first progress dialog) but then I get an error shown below. I am on a Microsoft-managed (employee) machine, so there may be additional policies in place.

Command Name
az upgrade

Errors:

image

The MSI log (I have logging enabled with "voicewarmupx") shows:

MSI (c) (58:C8) [11:07:07:434]: Using WinHttp to perform URL download
MSI (c) (58:C8) [11:07:07:435]: File path is a URL. Downloading file. . .
MSI (c) (58:C8) [11:07:07:452]: Msi WinHttp: Performing auto proxy detection
MSI (c) (58:C8) [11:07:07:455]: MSI WinHttp: Proxy Settings Proxy: (none) | Bypass: (none) | AccessType: 0
MSI (c) (58:C8) [11:07:08:374]: StatusCode is:[200]
MSI (c) (58:C8) [11:07:08:377]: Downloading https://aka.ms/installazurecliwindows to local file C:\Users\heaths\AppData\Local\Temp\MSIEA5E.tmp
MSI (c) (58:C8) [11:07:12:144]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (58:C8) [11:07:12:284]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'https://aka.ms/installazurecliwindows' against software restriction policy
MSI (c) (58:C8) [11:07:12:288]: 
MSI (c) (58:C8) [11:07:12:290]: Deleting URL local copy C:\Users\heaths\AppData\Local\Temp\MSIEA5E.tmp.
MSI (c) (58:C8) [11:07:12:295]: MainEngineThread is returning 1625

The existing package, 2.26.1, is installed per-machine. The new package, 2.27.0, also has ALLUSERS=1 authored in the Property dialog so this should be allowed. In the past, I was prompted for UAC confirmation, but even now running az upgrade from an elevated prompt fails.

Installing the MSI myself succeeds.

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az upgrade

Expected Behavior

Installs, which it did some time ago (maybe a few months ago).

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.26.1 *

Extensions:
azure-devops 0.18.0

Additional Context

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions