The Many Ways to Authenticate to Azure from Python In One Simple Class
Hello! I’ve been working on a script to login to Azure to interract with some resources that have been deployed by terraform. I want this script to be able to run locally on my machine and as well as part of a yaml pipeline. Initially I thought this was going to be quite tricky, in that I’d need to determine when to run the ClientSecretCredential or when to run one of the other authentication classes, like the AzureCliCredential or even the UsernamePasswordCredential.