Azure / llmops-gha-demo

MIT License
27 stars 97 forks source link

Update deploy-pf-online-endpoint-pipeline.yml #8

Open jakeatmsft opened 1 year ago

jakeatmsft commented 1 year ago

Updated Deploy Action to fix #7 .

simon-v-swyftx commented 10 months ago

I get an error on the new Grant endpoint permission to workspace:

ERROR: (AuthorizationFailed) The client '98900f8d-2b01-4ff0-b565-9ed3950xxxxx' with object id '98900f8d-2b01-4ff0-b565-9ed3950xxxxx' does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/write' over scope '/subscriptions/***/resourceGroups/***/providers/Microsoft.MachineLearningServices/workspaces/***/providers/Microsoft.Authorization/roleAssignments/e636c2a6-40b1-40d9-805b-b1ef945xxxxx' or the scope is invalid. If access was recently granted, please refresh your credentials.

Am I missing something? image

simon-v-swyftx commented 10 months ago

Alright so I did end up getting it working in the end. I found the service principal's name by using the ID in the error az ad sp show --id <ID> and then giving it User Access Administrator permissions so that it was able to write roles