You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to use Azure Policy to deny changing the state of disabled subscription under decommissioned management group to maintain the state of subscriptions following the CAF model.
Definition
{
"properties": {
"displayName": "Deny Enabling Disabled Subscriptions",
"description": "Ensures that subscriptions in a disabled state remain disabled and cannot be reactivated.",
"metadata": {
"category": "Subscriptions"
},
"policyRule": {
"if": {
"allOf": [
{
"field": "Microsoft.Subscription/SubscriptionDefinitions/state",
"equals": "Enabled"
},
{
"field": "Microsoft.Subscription/SubscriptionDefinitions/state",
"notEquals": "Disabled"
}
]
},
"then": {
"effect": "Deny"
}
}
}
}
The text was updated successfully, but these errors were encountered:
Scenario
Need to use Azure Policy to deny changing the state of disabled subscription under decommissioned management group to maintain the state of subscriptions following the CAF model.
Definition
The text was updated successfully, but these errors were encountered: