1 hour 5 minutes
In this video, we will look at how to prepare our authoring environment for developing as your policies.
We will use visual studio code to develop our policies.
Let's see how to do that.
Here I have a Windows virtual machine that has visual studio code installed.
The first thing we will do is we will install the azure policy extension for visual studio code.
We open visual studio code.
We go to the extensions and we search for azure policy.
This is the official azure policy extension from Microsoft.
We can install that one and add it to our visual studio code.
It says that we're not signed in, so we will go ahead and sign in.
Well, say toddy sm training
and close this page.
Now we're signed into our azure environment.
Once you're logged in, you will see your resource is and policies in those menus.
Sometimes you may need to restart visual studio code in order to see those.
As you can see, I have three subscriptions under which I have resource is
if I click here, I can go and limit the number of subscriptions I want to see.
I will turn off the first two now and just leave that last one.
Those two views helped me search through. The resource is and the policies.
Let's say I would like to go and see information about certain Resource is in a certain resource group.
As you remember, we created those resource groups
you can browse. The resource is in the resource view.
let's go and find our virtual machine. That was in our custom policy demo group,
this is the virtual machine.
I can see all the details about this virtual machine and any identifies that I may need.
Now let's browse the policies and see what we can get out of the policies.
We can see the assignment. As you can see, we see the same assignments that we saw in Azure portal.
Let's say, require owner attack.
We can go on, browse the policy for require owner tag,
as you can see it, designed by me the time of creation or created by created on and what the policy is.
You can also go and search through the built in definitions,
all of them
you can use the search button.
Let's say I would like to search for initiatives and I would like to find the CS one.
As you can see, I can go in search using this search functionality.
Of course, I could go and see the definitions for the initiatives as well.
Let's say if I click here,
I will get the initiative definition in visual studio code.
This is the functionality that the azure policy plug in provides you in the visual studio code.
In our next lesson, we will use this plug in in order to develop our custom policy.
Implement IoT Hub Endpoints and Consumer Groups
This IT Pro Challenge hands-on lab shows learners how to implement and configure an Azure ...
Learn On Demand
AZ-500: Microsoft Azure Security Technologies
In the AZ-500 Microsoft Azure Security Technologies training, students will learn the skills that are ...
9 CEU/CPE Hours Available
Certificate of Completion Offered