Skip to content

Instantly share code, notes, and snippets.

@jesseloudon
Created September 1, 2020 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesseloudon/993a2e73ff72a94db7f7ce7eb8ee5ebc to your computer and use it in GitHub Desktop.
Save jesseloudon/993a2e73ff72a94db7f7ce7eb8ee5ebc to your computer and use it in GitHub Desktop.
Ansible setup AzureCLI auth
# install the Azure CLI to your Ansible control host to authenticate to Azure
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# authenticate and set the desired subscription context
az login
az account list
az subscription set -s SUBSCRIPTIONID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment