When using the Azure CLI pipeline step (atlassian/azure-cli-run) we notice that service principals that have a generated password that starts with a dash (`-`) are not supported.
The CLI spits out an error stating that you must use a different CLI argument to support them.
Eg calling this fails:
az login --service-principal -u <CLIENT_ID> -p <CLIENT_SECRET_WITH_HYPHEN> --tenant <TENANT_ID>
See:
azure-docs-cli/use-cli-effectively.md at leading-dash · jiasli/azure-docs-cli (github.com)
To fix this I am manually using the azure cli docker image and calling the CLI manually like this:
az login --service-principal -u=$AZURE_APP_ID -p=$AZURE_PASSWORD --tenant=$AZURE_TENANT_ID
Notice the
-p=