Hei @Santosh Sahoo ,
As i understand you want to check the role assignment for All subscriptions.
Steps:
- Get all subscriptions and store in variable:
$subs =Get-AzSubscription
- Iterate over this list and for each item, get role assignments:
Get-AzRoleAssignment -Scope /subscriptions/xxxxxxxxx-xxxxx-xxxxx-xxxx-xxxxxxxxxxxxxx | | Where-Object {$_.Scope -eq 'Owner'}
Please mark this as answer if it helped