Retrieve the Service Principal ID by executing the List Service Principal ID Azure
CLI
command. If the service principal does not exist, create the service principal by
executing the Prepare Service Principal ID Azure CLI command.
One of the AAD roles below is required to be assigned to the user in order to create
the
Service Principal:
- Application Administrator
- Application Developer
- Cloud Application Administrator
- Directory Synchronization Accounts
- Hybrid Identity Administrator
Each Microsoft Entra ID needs only one Service Principal linked to File Storage
Security's App Registration.
-
Prepare Service Principal ID:
az ad sp create --id 0ebb1eb3-5de1-4d7f-8cce-b04607c0c4dd -o tsv --query 'id'
-
List Service Principal ID:
az ad sp show --id 0ebb1eb3-5de1-4d7f-8cce-b04607c0c4dd -o tsv --query 'id'