Follow the updated terraforming-azure docs to create a service principal.
Requirements:
brew tap genevieve/tap
brew install az-automation
Usage:
az-automation [OPTIONS]
Application Options:
-a, --account= Your account id or name. Use 'az account list' to see your accounts.
-d, --display-name= Display name for application. Must be unique.
-i, --identifier-uri= Must be unique.
-c, --credential-output-file= Must be unique. (default: creds.tfvars)
Help Options:
-h, --help Show this help message
Steps:
-
Log in to the azure cli
az login az account list
-
Run
az-automation --account your-account-name \ --identifier-uri http://example.com \ --display-name example-applicaion-name \ --credential-output-file creds.tfvars