Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
az login

az ad sp create-for-rbac -n "service_principal_name" --role Owner --scopes 
/subscriptions/a365ee0452e-67hr-497d/resourceGroups/dev

Changing "service_principal_name" to a valid URI of 
"http://service_principal_name", which is the required format used for 
service principal names

Creating 'Owner' role assignment under scope '/subscriptions/a365ee0452e-67hr-497d/resourceGroups/dev'

The output includes credentials that you must protect. Be sure that you do not include
these credentials in your code or check the credentials into your source control. 
For more information, see https://aka.ms/azadsp-cli

{

  "appId": "et78acie-some-id",

  "displayName": "service_principal_MI",

  "name": "http://service_principal_MI",

  "password": "bth6-some-password",

  "tenant": "fd564a-some-tenant"

}

...