Reviewing example policies
To better understand Azure Policy and its features, let’s discuss some examples of policies that are already available to us. This will help you build your own policies if needed and organize your findings from this chapter.
Policy – secrets should not be active for longer than the specified number of days
This policy is related to Azure Key Vault and is meant to be used as a security mechanism to avoid storing secrets that may be valid longer than necessary. It defines the following rule:
"policyRule": { "if": { "allOf": [ { "field": "type", "equals": "Microsoft.KeyVault.Data/vaults/secrets...