Skip to content

Instantly share code, notes, and snippets.

@deangrant
Created August 11, 2022 12:17
Show Gist options
  • Save deangrant/a9c6f192fb5d30f0089274ed7afbdff9 to your computer and use it in GitHub Desktop.
Save deangrant/a9c6f192fb5d30f0089274ed7afbdff9 to your computer and use it in GitHub Desktop.
Create a service principal compatible with SDK authentication and configure its access to Azure resources
SERVICE_PRINCIPAL = {{ service_principal_name }}
az ad sp create-for-rbac --name $SERVICE_PRINCIPAL --sdk-auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment