Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 490 Bytes

cli-auth-note.md

File metadata and controls

3 lines (2 loc) · 490 Bytes

This code uses CLI-based authentication (using AzureCliCredential) because it demonstrates actions that you might otherwise do with the Azure CLI directly. In both cases you're using the same identity for authentication.

To use such code in a production script (for example, to automate VM management), use DefaultAzureCredential (recommended) or a service principal based method as described in How to authenticate Python apps with Azure services.