Azure / Azure/azure-cli

Azure CLI Spawning many python processes

Open
#26,934 8 comments 0 reactions 2 assignees Claimed by @bebound View on GitHub
act-platform-engineering-squad Auto-Assign customer-reported feature-request Installation
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

I have installed the Azure CLI version 2.5 from winget (in Windows 10 19044). It spwans a lot (10-15) python.exe processes from the Azure\CLI2 folder, each of them takes up around 3% CPU usage. This also causes the defender process to ramp up and making the system very slowly. I do not know what is causing so many processes to spawn. Fersh install of Azure CLI did not help

### Related command

no command, just PC startup

### Errors

No errors received

### Issue script & Debug output

No Skript

### Expected behavior

No Azure CLI processes when I do not use the shell

### Environment Summary

azure-cli 2.50.0

core 2.50.0
telemetry 1.0.8

Extensions:
dataprotection 0.9.1

Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\Treinhardt\.azure\cliextensions'

Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]

### Additional context

_No response_

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.