Azure / Azure/mlops-v2

Missing permissions to run pipeline

Open
#133 0 comments 0 reactions 1 assignee Claimed by @setuc View on GitHub
Bug Needs Triage
Dominant language
Shell
Stars
654
Forks
347
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug or the issue that you are facing

I'm following the deployment guide to use bicep & Azure Devops with the directions at: https://github.com/Azure/mlops-v2/blob/main/documentation/deployguides/deployguide_ado.md. When I try to run the bicep-ado-deploy-infra pipeline in the taxi-fare-regression, I get the AuthorizationFailed error below. I am happy to debug, but don't understand how to convert the object-id to a resource or find the appropriate client from the id so that I can assign the permission.

ERROR: {"code": "AuthorizationFailed", "message": "The client '' with object id '' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '' or the scope is invalid. If access was recently granted, please refresh your credentials."}

### Steps/Code to Reproduce

Follow the directions at: https://github.com/Azure/mlops-v2/blob/main/documentation/deployguides/deployguide_ado.md.

### Expected Output

I expect the pipeline to run with no errors.

### Versions

I am working on the main branch for the repos of:
https://github.com/Azure/mlops-templates
https://github.com/Azure/mlops-project-template
https://github.com/Azure/mlops-v2

### Which platform are you using for deploying your infrastrucutre?

Azure DevOps (ADO)

### If you mentioned Others, please mention which platformm are you using?

_No response_

### What are you using for deploying your infrastrucutre?

Bicep

### Are you using Azure ML CLI v2 or Azure ML Python SDK v2

Azure ML CLI v2

### Describe the example that you are trying to run?

I am using the classical ML project type, with bicep and the main branch on all the project repos in Azure DevOps.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.