We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to limit the resource count created(example disk or vm), but my policy is wrong. please help me.
my policy as below: { "mode": "All", "parameters": { "allowedDiskCount": { "type": "Integer", "defaultValue": 5 } }, "policyRule": { "if": { "allOf": [ { "field": "type", "equals": "Microsoft.Compute/disks" }, { "count": { "field": "Microsoft.Compute/disks[*]" }, "greater": "[parameters('allowedDiskCount')]" } ] }, "then": { "effect": "deny" } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to limit the resource count created(example disk or vm), but my policy is wrong. please help me.
my policy as below:
{
"mode": "All",
"parameters": {
"allowedDiskCount": {
"type": "Integer",
"defaultValue": 5
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Compute/disks"
},
{
"count": {
"field": "Microsoft.Compute/disks[*]"
},
"greater": "[parameters('allowedDiskCount')]"
}
]
},
"then": {
"effect": "deny"
}
}
}
The text was updated successfully, but these errors were encountered: