Azure / azure-policy

Repository for Azure Resource Policy built-in definitions and samples
MIT License
1.51k stars 1.09k forks source link

Unable to use definition "azure-policy/built-in-policies/policyDefinitions/Key Vault/Secrets_ActivePeriod.json" #981

Open ababdul opened 2 years ago

ababdul commented 2 years ago

When I try to create a policy with the definition from Secrets_ActivePeriod.json I get 4 errors

line 1 "Missing property "policyRule"" line 2 "Property properties is not allowed" line 51 "Property id is not allowed." line 52 "Property name is not allowed."

Am I doing something wrong?

gandresr commented 1 year ago

@ababdul Are you trying to test a custom policy using the structure of the Secrets_ActivePeriod.json file? Where are you testing? Are you trying to run your definition as a custom policy in the portal? If so, keep in mind that custom data-plane policies are not currently supported for Key Vault

gandresr commented 1 year ago

please-close