Use Azure Policy to ensure organisational standard and assess compliance. Policies ensure resources comply with corporate standards and service level agreements.
To create a Policy definition Azure Portal:
- Search for and select "Policy"
- Go to Definitions and click "Policy definition" then you can either use built-in policies or create custom ones using JSON.
- Choose the scope for the policy, such as subscription, resource group...
- Configure necessary parameters and click on "Assign Policy"
You can also create initiatives (a collection of policies that is managed together). The compliance dashboard to monitor shows the compliance state of your resources.
Policies can be applied across multiple subscriptions or management groups for broader governance. You can also use Azure Policy to automate compliance checks and remediation.