Ensuring Compliance with Azure Policies

After this you will know how to create two common Azure objects, with a notation representing an auditable value. Then deploy a policy to report on that value before finally generating a report confirming the compliancy status.

CREATE TWO VIRTUAL NETWORKS

Create the first virtual network

Network will be named "PolicyVnet1" 
The primary address space should 10.0.0.0/24.
The subnet address range should be 10.0.0.0/26.

Create a second virtual network

Network will be named "PolicyVnet2"
The primary address space should 10.10.10.0/24.
The subnet address range should be 10.10.10.0/26

CREATE A TAG FOR EACH FOR EACH VIRTUAL NETWORK

Add a tag to PolicyVnet1

Name: Audit
Value: Yes

Add a tag to PolicyVnet2

Name: Audit
Value: No

CREATE A POLICY

Search for “Policy” in Azure Portal and go to the Policy Center.

Click on “Policy definition” and select “Require tag and its value”

Type Tag “Audit” and Value “Yes”

Now back on the “Compliance” you will see that new policy

After 15 minutes

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

A WordPress.com Website.

Up ↑

%d bloggers like this: