Add a Service Principal to Azure pipelines


Description

Customers might request a Service Principal with the custom ContributorNoACM role on the Resource Group level to use it for different automation scenarios. This article explains how to add the Service Principal to the Azure DevOps project.

Note: Sitecore does not support deploying Sitecore customizations with Microsoft Azure, including the Azure DevOps upgrade approach using Azure Pipelines.

Solution

To add the Service Principal to the Azure DevOps project :

  1. In Project settings, click Service connections, then click Create service connection and select the type Azure Resource Manager.



  2. Select Service principal (manual) as the Authentication method:



  3. To add Service Principal data received from the Sitecore CloudOps Team, in the Scope Level section, select Subscription:

The service connection with the Service Principal is created:

 

   Important note: it is necessary to create a New Azure service connection (using the manual method) with the details as shown in the image below. Ensure that you input the correct Environment  subscription name, and the Subscription Id (it should be in lowercase ).