Account can't be found using (dotnet) code relying on Azure CLI credentials
Los mantenedores suelen responder en 1 día
@isra-fel ya está trabajando en esto.
Desde el 28/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Affected surface
CLI (az)
Describe the bug
In our solution(s) we are relying on Managed Identities to connect with resources.
For our local environments, we use the Azure CLI identity for this and grant the engineers access to several of those resources.
The code, in csharp, looks pretty much like this:
var credential = new DefaultAzureCredential();
return new CosmosClient(
accountEndpoint: accountEndpoint,
tokenCredential: credential
);
I'm not sure on the internals of how this works, but it's safe to assume it relies on the az account module.
When running a command like
if az account show >/dev/null 2>&1; then echo 'Azure CLI has an active account'; else echo 'Azure CLI has no active account'; fi
It states no active account can't be found. Needless to say, I am logged in, but the az account isn't supported (yet?).
For me, this is blocking the usage of azclips at the moment, as I can't connect to our resources anymore.
I'm pretty sure this is probably somewhere on the roadmap, but I couldn't find it listed in the Issues yet.
Related command
az account show
Steps to reproduce
- az login --tenant-id --subscription-id -out-profile customer
- az account show // See an error occur
- Run this in the codebase
var credential = new DefaultAzureCredential();
return new CosmosClient(
accountEndpoint: accountEndpoint,
tokenCredential: credential
);
Errors & debug output
No real error, aside from the `account` module not existing.
Expected behavior
This to be on the roadmap, so we can use the logged in azclips identity to connect with Azure resources depending on actual identities.
Environment
az version
{
"azCli": "0.1.6",
"runtime": {
"dotNet": ".NET 10.0.14",
"os": "macOS 27.0.1",
"architecture": "Arm64"
}
}
Additional context
No response
- Lenguaje dominante
- C#
- Estrellas
- 18
- Forks
- 10
- Merge medio
- 1 d 20 h
- PR fusionados (30 d)
- 157
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/azclips
-
act-identity-squad bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
act-identity-squad bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
act-identity-squad bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
act-identity-squad bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Azure/azclips#1512 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Agent] Interactive recovery runs shell commands in the install folder, not the user's folderAbiertoact-experience-enablement-squad bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
Todos los issues de Azure/azclips
Issues similares
-
launcher item missingAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Realm667/WolfenDoom#1758 ·
-
SDK version compatibility issueAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
-
AI documentation good first issue help wanted
Dificultad 1/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
akshit-bansal11/edgepad#106 ·
Los mantenedores suelen responder en 1 día