Create Service Principal in Azure Portal
Go to Microsoft Entra Id (Microsoft Active directory).
On the sidebar, click on App registration.
Click on the New Registration
Fill in the Register an application
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
After you create the service principal, go to your preferred Resource / Resource group.
Navigate to Access Control (IAM) of choosen Resource group.
In Assign access to, select User, Group, or Service Principal
In member, click on Select members. Type in the service principal then select it from the autocomplete dropdown.
For more info: az ad sp create