Replies: 1 comment 2 replies
-
When running Before azd 1.0.0, azd was adding If you run
or, you can also just create a new SP and let azd to update your scm repo with
If you need more permission for the SP (like making the SP powerful enough to create other SP and assign roles to it), you might need to give
Adding too much power to a SP is usually not recommended, specially for an entire subscription. Consider if you can make the workflow to depend on setting the SP, instead of making the workflow to create it |
Beta Was this translation helpful? Give feedback.
-
I have a template that uses az with pre and post hooks in order to create an Application Registration using the MS Graph API. You can see the code involved in this PR:
https://github.com/pamelafox/sample-app-aoai-chatGPT/pull/1/files
I am now trying to get CI/CD working for this repo, but am struggling with permissions. When I run the pipeline, I get this error:
{'error': {'code': 'Authorization_RequestDenied', 'message': 'Insufficient privileges to complete the operation.', 'innerError': {'date': '2023-06-16T17:24:17', 'request-id': '07776e1d-5937-47b5-9eaa-14a8624afdd2', 'client-request-id': '07776e1d-5937-47b5-9eaa-14a8624afdd2'}}}
This is because the azd principal running on CI/CD does not have sufficient permissions to create an application registration. Is it possible to give that principal permissions? Do you have a recommendation for how to get this workflow to work?
I am hoping for this repo to be compatible with App Spaces in the Azure Portal, so ideally everything could be done over CI/CD.
Beta Was this translation helpful? Give feedback.
All reactions