Automate creation of service principal from Azure Devops pipeline

Vishwajeet Kumar 1 Reputation point
2022-08-19T14:18:45.637+00:00

I am using Azure Devops YAML pipeline to automate creation of infrastructure for our cloud service. The automation scripts need to create service principal during the pipeline run. The service connection that is in use to connect to Azure is not able to create a new service principal.
How can I get this service connection create new service principals.

232952-image.png

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,301 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmySalian-2011 41,916 Reputation points
    2022-08-21T10:05:00.523+00:00

    Hi,

    Thank you for asking this question on the Microsoft Q&A Platform.

    It seems there is some sort of permissions issue with your account and the error insuffcient priviledge points to that side. Also the Graph API is initiated and it seems there is similar thread on this error please review and see if it helps. Just checking if you have AzureAD modules updated and powershell running in a admin mode?

    az-ad-app-permission-add-insufficient-privileges-to-complete-the-operation

    ==

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments