PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,504 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I need to check owner access for all associates for all subscription for azure. How to run script in azure?
Hei @Santosh Sahoo ,
As i understand you want to check the role assignment for All subscriptions.
Steps:
$subs =Get-AzSubscription
Get-AzRoleAssignment -Scope /subscriptions/xxxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxxxxx | | Where-Object {$_.Scope -eq 'Owner'}
Please mark this as answer if it helped