-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupResource Manager-cliService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.
Milestone
Description
Describe the bug
Not able to list polices on management group.
az policy assignment list \
--disable-scope-strict-match \
--scope "/providers/Microsoft.Management/managementGroups/my-mg-group"
--query [].nameTo Reproduce
Steps to reproduce the behavior.
- Create a policy
az policy definition create \
--management-group my-mg-group
--name 'sumit-enforce-nsg-on-subnett' \
--display-name 'Sumit- NSG X on every subnet' \
--description 'This policy enforces a specific NSG on every subnet' \
--rules <azurepolicy.rules.json> \
--params <azurepolicy.parameters.json> \
--mode All - Assign the policy to management group.
az policy assignment create \
--name "Force nsg in subnet" \
--scope "/providers/Microsoft.Management/managementGroups/my-mg-group" \
--policy "/providers/Microsoft.Management/managementgroups/my-mg-group/providers/Microsoft.Authorization/policyDefinitions/sumit-enforce-nsg-on-subnett" \
-p '{"nsgId": { "value":"sumit-test-vm-nsg"}}'below command should work, but not working for me.
az policy assignment list \
--disable-scope-strict-match \
--scope "/providers/Microsoft.Management/managementGroups/my-mg-group"
--query [].nameExpected behavior
I should be able to list the assigned polices in management group
Environment summary
Install : pip
CLI version: azure-cli 2.0.60 *
OS version: macOS Mojave 10.14.4
Shell type: bash
Additional context
Add any other context about the problem here.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupResource Manager-cliService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.