-
Notifications
You must be signed in to change notification settings - Fork 9
Create a service principal in Azure API Management
georgiana-caras edited this page Jun 2, 2020
·
1 revision
To create a service principal you have two options:
- use the Azure shell https://shell.azure.com/. This will add additional costs to your account - info and pricing are provided when accessing the URL).
- install the CLI: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest.
Here we will document how to create the service principal using the CLI.
- After you install the CLI, run
az login
command. You will be redirected to login with to your Azure account. - Once logged in, run
az ad sp create-for-rbac -n ""http://your_service_principal_name"
command. The result should contain the tenantId and password. See example:Creating a role assignment under the scope of "/subscriptions/b3700142-5855-4c3c-b8a0-ff1bbda1d53e" Retrying role assignment creation: 1/36 { "appId": "f4b7a269-******", "displayName": "cataog-integration", "name": "http://catalog-integration", "password": "63c9503f-*****", "tenant": "300f59df-*******" }
- Retrieve your subscription id with
az account show --query id
. You will use this value later in the Integration Builder flow.