Azure / Azure/azure-cli

Any az command fails silently on Windows. Application Error in Event Viewer

Open
#24,290 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Auto-Assign Azure CLI Team customer-reported feature-request Installation
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

az feedback does not produce any output currently

**Related command**
C:\Tools>az feedback

**Describe the bug**
Running any az command (ie: az feedback) fails silently with no output to console.

```console
C:\Tools>az feedback

C:\Tools>

```

An application error is shown for the timestamp in Event Viewer:
```
Faulting application name: python.exe, version: 3.10.5150.1013, time stamp: 0x629e24ae
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x7ebb0bd0
Faulting process id: 0x2aac
Faulting application start time: 0x01d8e409cdb6e9be
Faulting application path: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe
Faulting module path: unknown
Report Id: d1680d34-fb4d-473a-a0b8-0b21de0b6024
Faulting package full name:
Faulting package-relative application ID:
```

**To Reproduce**
1. Install latest az cli on windows as described [here](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=powershell)
2. Run any command

**Expected behavior**
The command executes and produces some sort of output. It does not.

**Environment summary**

- Tried installing both from PowerShell and via the latest MSI.
- Uninstall done by Add or Remove Programs
- After uninstalling verified that no files where in the location mentioned in the error before reinstalling.

OS: Windows 10 Enterprise 20H2
OS Build: 19042.2006
OS Experience: Windows Feature Experience Pack 120.2212.4170.0

**Additional context**
- Did it work previously? Yes, last week.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.