Skip to content

Python has stopped working #31474

@asvrada

Description

@asvrada

Describe the bug

OS: Windows

When running the command, a window will pop up saying "Python has stopped working". After closing that window, the command fails.

Related command

C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe

Errors

A window says "Python has stopped working" pops up, whenever the C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe is invoked, either directly in PowerShell or via az-cli.

Issue script & Debug output

See error section

Expected behavior

The command should pass

Environment Summary

azure-cli 2.72.0

core 2.72.0
telemetry 1.1.0

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\username.azure'
Extensions directory 'C:\Users\username.azure\cliextensions'

Python (Windows) 3.12.8 (tags/v3.12.8:2dc476b, Dec 3 2024, 19:30:04) [MSC v.1942 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions