question

Kevin-1922 avatar image
0 Votes"
Kevin-1922 asked sikumars commented

How to get "ACCOUNT ADMIN" for a specific subscription through Azure CLI or Az PowerShell?

124558-image.png


azure-active-directory
image.png (475.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Kevin-1922 ,

I just wanted to check in and see if you had any other questions or if you were able to resolve this issue? If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.


Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

0 Votes 0 ·

1 Answer

prmanhas-MSFT avatar image
1 Vote"
prmanhas-MSFT answered

@Kevin-1922 Apologies for the delay in response and all the inconvenience caused because of the issue.

You can run the below command which will have the output containing Account Admin for specific subscription. User with Contributor or Owner role should be able to run this command since it needs privilege to access the data.

 Get-AzRoleAssignment -Scope /subscriptions/<subscription id> -IncludeClassicAdministrators

Output will have something like this:

126007-image.png

Hope it helps!!!

Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics



image.png (51.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.