Forum Discussion
supri0390
Sep 19, 2024Copper Contributor
Azure Devops -- Pipeline Issue
Hey all,
I have a repo on Azure devops, and as I am trying to create a build pipeline. However, I am facing this error:
Please tell me how to resolve this .
Thanks !
- neeleshv9860Copper Contributor
supri0390
Error means your account doesn’t have the right permissions to create an app in Microsoft Entra (formerly Azure AD). Here's how to fix it step by stepCheck Your Permissions
Ask your IT admin (or Entra admin) to give you the right permissions.
Specifically, you’ll need either the Application Administrator or Cloud Application Administrator role.
If You Have Admin Access:
Go to the Microsoft Entra Admin Center https://entra.microsoft.com.
If this doesn’t work or you get another error, it confirms you don’t have the necessary permissions.
To fix this, go to Roles and administrators and give yourself the Application Administrator or Cloud Application Administrator role.
If You Don’t Have Admin Access:
Contact your IT/Entra admin and ask them to:
Grant you an Application Administrator to manage and create app registrations.
Or at least Directory Readers so you can view Entra resources.
Check DevOps Permissions:
In Azure DevOps, go to Project Settings - Service Connections.
Make sure your service principal (or the account running the pipeline) has the right permissions to create and manage resources.
Try Again
Once your permissions are updated, go back to Azure DevOps and try setting up the pipeline again.
Let me know if you need any help
- balasubramanimIron Contributorsupri0390,
Please try these steps.
Check your pipeline config - make sure everything is good there
Verify your repo connection - is it connected and active
Check for syntax errors - YAML files
Inspect the pipeline logs - any errors or warnings
Validate agent pool and queue - are they good
Check dependencies and permissions - got all the necessary access
If none of that works, try a super simple pipeline - just one task - to see if that helps isolate the issue. Check below:
-
YAML Syntax:
- Ensure your pipeline YAML file is correctly formatted. Even a small syntax error can cause the pipeline to fail
-
Agent Pool:
- Verify that the agent pool specified in your pipeline is available and properly configured
-
Permissions:
- Check if the service account or user running the pipeline has the necessary permissions to access the repository and other resources
-
Dependencies:
- Make sure all dependencies and tools required by your build process are installed and accessible on the build agent
-
Logs:
- Review the detailed logs provided by Azure DevOps for any specific error messages or warnings that can give you more insight into the issue
-
- themanangeloCopper Contributor
It seems the error is related to insufficient permissions in Microsoft Entra (formerly Azure Active Directory). To resolve this, you’ll need to ensure that you have the appropriate permissions to create an application using Microsoft Graph API.
Here are a few steps to check:
Verify permissions: Ensure that your user account has the Application Administrator or Cloud Application Administrator role in Microsoft Entra. These roles are required to create applications.
Check API permissions: If you're using Microsoft Graph API, confirm that your user has the necessary permissions to interact with the API, such as Application.ReadWrite.All or Directory.ReadWrite.All.
Contact your administrator: If you don’t have the right privileges, reach out to the Microsoft Entra (Azure AD) administrator to grant the necessary roles or permissions.
Once you have the proper permissions, try running the operation again.