Account can't be found using (dotnet) code relying on Azure CLI credentials
I maintainer di solito rispondono entro 1 giorno
@isra-fel ci sta già lavorando.
Dal 28/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- C#
- Stelle
- 18
- Fork
- 10
- Merge medio
- 1g 20h
- PR unite (30g)
- 157
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/azclips
-
act-identity-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
act-identity-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
act-identity-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
act-identity-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Azure/azclips#1512 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[Agent] Interactive recovery runs shell commands in the install folder, not the user's folderApertaact-experience-enablement-squad bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Azure/azclips
Issue simili
-
launcher item missingAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Realm667/WolfenDoom#1758 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
-
AI documentation good first issue help wanted
Difficoltà 1/5 1-3 ore Idoneità per principianti 84/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
akshit-bansal11/edgepad#106 ·
I maintainer di solito rispondono entro 1 giorno