Home > other >  How to get the Azure DevOps Service Principal ID Name
How to get the Azure DevOps Service Principal ID Name

Time:06-01

Perhaps my brain is still in bed, but I cannot figure out how to get the name and ID of my Azure DevOps Service Principal. I need to give it permission on a Synapse workspace.

Do I have to create a Azure DevOps Service Principal or is it created automatically once I created a project (and repositories) in Azure DevOps?

CodePudding user response:

As described above you should create a service connection that will automatically create an application (service principal) on which you can assign IAM privileges.

In order to find the application name/ID you should go under your service connection and press Manage Service Principal. Then azure devops will redirect you on Azure on App Registrations/App

enter image description here

CodePudding user response:

Do I have to create a Azure DevOps Service Principal or is it created automatically once I created a project (and repositories) in Azure DevOps?

You need to create service principal manually. Here are the detailed steps:

  1. Go to "Project Settings" -> "Pipelines/Service connections".
  2. Click on "Create a service connection". Choose "Azure resource manager". Scroll down and click on "Next".
  3. Select "Service principal (automatic)" (You can select the manual one if you want to manually enter information such as subscription ID and credential). Click on "Next".
  4. Select "Subscription" as scope level. If it shows that you do not have an active subscription, please try to do this in InPrivate window. Then fill in the information about service connection name. Click on "Save".
  • Related