AZ CLI Authentication #168
-
The documentation refers to Azure CLI as a supported method of authentication, but if I log in with 'az login' (with a user object) then try to perform a scan using 'azqr scan -s {subId}' I receive an error advising that the tenant ID / client ID is not set. Does the authentication to AZ CLI have to be with a service principal? |
Beta Was this translation helpful? Give feedback.
Answered by
cmendible
Nov 28, 2023
Replies: 1 comment 2 replies
-
Hi are you using the env variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if you want to use the CLI then use:
az login --service-principal -u <app-id> -p <password-or-cert> --tenant <tenant>
which should work without issues, unless you have one of the above env variables set. In such a case clear or remove the vars before attempting the scan...