Azure-cli: How to list policy assignments applied to management group.

Created on 7 Feb 2020  Â·  5Comments  Â·  Source: Azure/azure-cli

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


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Policy Service Attention question

All 5 comments

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~

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dhermans picture dhermans  Â·  3Comments

mmacy picture mmacy  Â·  3Comments

williexu picture williexu  Â·  3Comments

Kannaj picture Kannaj  Â·  3Comments

ambakshi picture ambakshi  Â·  3Comments