Closed tervoju closed 10 months ago
@tervoju Thanks for your feedback! We will investigate and update as appropriate.
Hi @tervoju
It seems like you have successfully assigned the "contributor" role to the service principal in the specified resource group using the Azure CLI command. However, the az role assignment list
command is not returning any results for the specified assignee. This could be because the service principal has not yet propagated to the Azure Active Directory (AAD) Graph API, which is used by the Azure CLI to retrieve role assignments.
You can try running the az ad sp show
command to check if the service principal has been created and propagated to AAD. If the service principal is listed, then it has been successfully created and propagated to AAD.
If the service principal is listed, you can try running the az role assignment list
command again after a few minutes to see if the role assignment has propagated to the AAD Graph API.
If the service principal is not listed, you may need to wait a few minutes for the service principal to be created and propagated to AAD before running the az role assignment list
command.
@tervoju We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation
[Enter feedback here]
I have given a contributor role to a sp with az cli command to a resource group and it gives me ok feedback, so that seems to work.
command
gives []
if I go to azure portal, I can see that that the sp has the contributor role in that resource group
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.