223k views
3 votes
Which mode in JSON templates for Azure Policy checked the features are supported?

User Joe Zim
by
7.9k points

1 Answer

2 votes

Final answer:

The mode 'auditIfNotExists' in JSON templates for Azure Policy is used to check if certain features are supported and it reports non-compliance if they do not exist.

Step-by-step explanation:

The mode in JSON templates for Azure Policy that checks if the features are supported is known as the "auditIfNotExists" mode. This mode is used when you want to ensure that a particular resource in Azure complies with a policy, and if the specified field or property does not exist on the resource, the policy will be evaluated as non-compliant.

On the other hand, if the field exists and is set as required, the policy will pass the compliance check. Other modes such as "deny", "audit", "disabled", and "append" serve different purposes within Azure Policy, such as blocking resource creation, auditing the existing resources, or modifying resources to become compliant.

A configuration in Azure Policy called "auditIfNotExists" verifies if specific requirements or resources are present in your Azure environment. If they are nonexistent as defined by the policy, an audit is initiated, but no prompt action is mandated. Organizations can assess and correct non-compliant resources before enforcement by using this mode, which aids in evaluating compliance without requiring adjustments.

User Gopu
by
7.8k points