I try to list policy assignments applied to management group.
> $ az policy assignment list --scope /managementGroups/management-group-id
However, I get this error.
> usage error --scope: must be a fully qualified ARM ID.
Could you tell me how to get the list ?
For your reference, I can list policy assignment applied to subscriptions.
> $ az policy assignment list --scope /subscriptions/subscription-id
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
HI @jiasli could you pls have a look? thanks.
For your reference, I can list policy assignment applied to subscriptions.
$ az policy assignment list --scope /subscriptions/subscription-id
I tried some pattern and found out that I can only list policy assignment applied to the current active subscription.
add to S166.
@na2ko-ucym Hi, this is a known issue. It's the same problem as https://github.com/Azure/azure-cli/issues/9067 and the relevant team is repairing.
@na2ko-ucym Hello, this issue has been fixed in the latest version of azure-cli (2.2.0), please download the latest version of the package to try.
If there are any questions, please feel free to give us feedback~