Share via

Policy error

Harsha K 1 Reputation point
2022-08-03T16:03:53.5+00:00

When i try to apply below policy

{
"nameOfPolicy": "AllowStandardScheduleJobCollections",
"policyScope": "subscription",
"PolicyDefination": {
"if": {
"allOf": [{
"field": "type",
"equals": "Microsoft.Scheduler/jobcollections/properties"
},
{
"not": {
"field": "Microsoft.Scheduler/jobcollections/sku.name",
"in": ["Standard"]
}
}
]
},
"then": {
"effect": "deny"
}
}
},

I am getting below error

The provider 'Microsoft.Scheduler' referenced by the 'field' property 'Microsoft.Scheduler/jobcollections/sku.name' of the policy rule doesn't exist

Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.