Questions tagged [azureclicredential]
7 questions
3
votes
1 answer
AzureCliCredential giving error, Please run 'az login' to set up account
I am using ChainedTokenCredential and trying to get managed identity token in local debug environment using Visual Studio 2019. In windows terminal I already logged in using Azure CLI az login.
var credential = new ChainedTokenCredential(
…

user584018
- 10,186
- 15
- 74
- 160
1
vote
1 answer
How to resolve issue of AzureCliCredential?
The following is my code and in linux I have logged in to azure via az login but when I try to run the below code it gives me an error that
Traceback (most recent call last):
File "scan.py", line 1, in
from azure.identity import…

Ghost rider
- 43
- 1
- 9
1
vote
1 answer
Azure cli authentication with BlobServiceClient
Should it be possible to use cli authentication with Azure storage?
cli_auth = AzureCliAuthentication()
blob_service_client = BlobServiceClient(account_url="https://mystorage.blob.core.windows.net", credential=cli_auth)
container_client =…

Mathias Rönnlund
- 4,078
- 7
- 43
- 96
0
votes
1 answer
Switch az login from Windows Account Manager back to Web Access manager
Does any know what the detailed process is to switch between the Windows Account Manager and WAM for logging into the az cli?
Windows 11 has (what I believe to be called) a Windows Account Manager in the Settings app. It is possible to add multiple…

greg
- 1,118
- 1
- 20
- 40
0
votes
1 answer
unable to access authentication token of cognitive services endpoint in Azure
I am trialling this tutorial - https://github.com/Azure-Samples/openai/blob/cf0f19f36a30925e3891137b0bc2539e25687cac/Basic_Samples/AAD_Integration/aad_integration_example_sdk.ipynb
In Azure, I have created different resources groups - there is one…

Manu Chadha
- 15,555
- 19
- 91
- 184
0
votes
2 answers
How do I authenticate a bash script running azcli commands
I have a bash script vault.sh
az login
Source_Kv_Name="myKeyVault2020"
SECRETS+=($(az keyvault secret list --vault-name $Source_Kv_Name --query "[].id" -o tsv))
If I run it as bash vault.sh it fails to connect to vault (authenticate)
If I run the…

Wojtas.Zet
- 636
- 2
- 10
- 30
0
votes
1 answer
az cli - how to login using credentials and supress prompt for password?
I have created an Azure AD security principle. And I've gone ahead and created a secure string out of the secret, so I don't have to save that in plain text somewhere.
Now in my deployment script that uses az cli, I want to log in to Azure using…

dot
- 14,928
- 41
- 110
- 218