Preparing the Authoring Environment

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
1 hour 5 minutes
Difficulty
Beginner
CEU/CPE
1
Video Transcription
00:00
In this video, we will look at how to prepare our authoring environment for developing as your policies.
00:07
We will use visual studio code to develop our policies.
00:11
Let's see how to do that.
00:16
Here I have a Windows virtual machine that has visual studio code installed.
00:21
The first thing we will do is we will install the azure policy extension for visual studio code.
00:27
We open visual studio code.
00:29
We go to the extensions and we search for azure policy.
00:40
This is the official azure policy extension from Microsoft.
00:45
We can install that one and add it to our visual studio code.
00:52
It says that we're not signed in, so we will go ahead and sign in.
00:58
Well, say toddy sm training
01:25
and close this page.
01:27
Now we're signed into our azure environment.
01:32
Once you're logged in, you will see your resource is and policies in those menus.
01:38
Sometimes you may need to restart visual studio code in order to see those.
01:42
As you can see, I have three subscriptions under which I have resource is
01:48
if I click here, I can go and limit the number of subscriptions I want to see.
01:53
I will turn off the first two now and just leave that last one.
02:01
Those two views helped me search through. The resource is and the policies.
02:06
Let's say I would like to go and see information about certain Resource is in a certain resource group.
02:12
As you remember, we created those resource groups
02:15
you can browse. The resource is in the resource view.
02:19
For example,
02:20
let's go and find our virtual machine. That was in our custom policy demo group,
02:27
and
02:28
this is the virtual machine.
02:30
I can see all the details about this virtual machine and any identifies that I may need.
02:38
Now let's browse the policies and see what we can get out of the policies.
02:43
We can see the assignment. As you can see, we see the same assignments that we saw in Azure portal.
02:51
Let's say, require owner attack.
02:54
We can go on, browse the policy for require owner tag,
03:01
as you can see it, designed by me the time of creation or created by created on and what the policy is.
03:13
You can also go and search through the built in definitions,
03:19
all of them
03:21
you can use the search button.
03:23
Let's say I would like to search for initiatives and I would like to find the CS one.
03:29
As you can see, I can go in search using this search functionality.
03:35
Of course, I could go and see the definitions for the initiatives as well.
03:46
Let's say if I click here,
03:47
I will get the initiative definition in visual studio code.
03:55
This is the functionality that the azure policy plug in provides you in the visual studio code.
04:01
In our next lesson, we will use this plug in in order to develop our custom policy.
Up Next