Define the Policy then add. For this tutorial we'll be creating a policy that requires resources to have a Tag.
You can optionally add exclusions and create a description for the policy.
Let us test the Policy created by creating a storage account.
I will purposefully omit the assigning of tag in the storage account to test if the Policy will work.
As shown below, the Policy prevents the storage account from being deployed because it does not have the specified tag.
Now I will try to create the storage account again but this time I will include the Tag.
As shown below, the deployment of the storage account was successful.
To delete the Policy, simply go back to the policy created in the 'assignments' blade and click delete assignment from the drop down.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)