Trying to assign Reader role for application at subscription level using the following powershell command. but it gets failed
foreach ($Id in Get-AzSubscription)
{
New-AzRoleAssignment -ObjectId '<Application-Object-Id>' -RoleDefinitionName "Reader" -Scope '/subscriptions/$Id'
}
getting this error "New-AzRoleAssignment: Operation returned an invalid status code 'BadRequest'"