Azure / Azure/azure-cli

azure cli login command with managed identity is not working in mcr.microsoft.com/azure-cli pod

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

Description

**Command Name**
`az login`

**Errors:**
Command is not producing any output. It's getting stuck may be.

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

- Create a aks cluster
- Deploy mcr.microsoft.com/azure-cli pod with aad pod identity
- kubectl exec to the pod and execute below command
- `az login --identity --username {}`

## Expected Behavior

## Environment Summary
```
Linux-5.4.0-1104-azure-x86_64-with, Alpine Linux v3.17
Python 3.10.10
Installer: DOCKER

azure-cli 2.47.0
```
## Additional Context

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.