Access error while creating service principal to access and use packer

Varma 1,435 Reputation points
2024-02-07T05:01:51.2866667+00:00

Please suggest fix on following error User's image

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,194 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Akhilesh Vallamkonda 13,700 Reputation points Microsoft External Staff
    2024-02-07T13:32:25.6766667+00:00

    Hi @Varma

    Thank you for posting your query on Q&A.

    I understand that you are trying to service principal and you have got the error message stating insufficient privileges.

    It's seems the account you’re using does not have the necessary permissions to create the service principal.

    To create the service principal, you need Global Administrator or least Application Developer or User Access Administrator Role. could you please check that?

    I hope this information helps! please Feel free to ask any questions you may have.

    Reference: https://learn.microsoft.com/en-us/powershell/module/Az.resources/new-azadserviceprincipal?view=azps-0.10.0

    Thanks,

    Akhilesh.

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.