Create Azure Service Principal

Create Service Principal in Azure Portal

  1. Go to Microsoft Entra Id (Microsoft Active directory).

  2. On the sidebar, click on App registration.

variables

  1. Click on the New Registration

  2. Fill in the Register an application

variables

Create Service Principal using Azure CLI

az ad sp
  • Manage Azure Active Directory service principals for automation authentication.
az ad sp create --id 00000000-0000-0000-0000-000000000000

Click and drag to move To create custom display name

az ad sp create-for-rbac -n SimplifyJS

Click and drag to move

  1. After you create the service principal, go to your preferred Resource / Resource group.

  2. Navigate to Access Control (IAM) of choosen Resource group.

  3. In Assign access to, select User, Group, or Service Principal

  4. In member, click on Select members. Type in the service principal then select it from the autocomplete dropdown.

variables

For more info: az ad sp create