Time
1 hour 7 minutes
Difficulty
Beginner
CEU/CPE
1

Video Transcription

00:02
the process of implementing actual policy has three steps defining the policy where you describe what the policy conditions and effects are.
00:12
Assigning the policy where you select the scope but which this policy will take place.
00:18
As we mentioned, the Scott can vary from management group to subscription resource group or individual resource,
00:25
and once the policies assigned
00:28
it is constant. Loosely evaluated against the properties of the resource is that are within the scope and reports are generated.
00:36
Let's look at how the policy definitions are created.
00:41
Policy definitions are Jason Files that have defined schema.
00:47
Each definition contains the following elements.
00:52
Mo.
00:54
There are two types of Moz resource manager modes and resource provider modes.
00:59
The Resource Manager modes can be all for evaluating all resource groups and resource types,
01:04
or index for evaluating only resource types that support tax and location.
01:11
The resource provider modes are still in preview mode, and they are only three resource provider modes. Currently,
01:19
Microsoft Container Service data Microsoft contained kubernetes Data and Microsoft Keyboard data for managing board since certificates.
01:29
The next element is the bottom matters. My element,
01:34
the bottom matters element has name type and metadata as well was optional default value and a low. Baylor's
01:42
Properties
01:44
para matters help you simplify the policy management by reducing the number of policies you need to create and reuse those policies for different scenarios.
01:53
The bottom matters can be specified at the time of policy assignment.
01:57
The default value is used in case the para matter is not explicitly specified during assignment.
02:05
The old values can restrict what values can be specified at the time of the assignment.
02:10
Para matters are also used in the rule section, which will discuss shortly.
02:17
Next. They are display name and description for the policy.
02:23
Those are user friendly name and description that you will see National Management portal, for example, and it is useful to identify and understand the purpose of the police. Seen reports
02:34
display name is limited 228 characters, while the description is limited to 512 characters.
02:43
Last is the policy rule,
02:45
which is the most important part of the policy.
02:49
It consists of one or more if them blocks that if block contains one or more conditions that determine when the policy's enforced,
02:58
you can use logical operations in the if block the them block the term is what the effect is. If the condition in the if block is fulfilled,
03:07
there is an extensive list of watching cooperators and conditions that you can use in the if block.
03:14
We will look more in tow the grammar details later in this course, when we develop a custom policy
03:20
for now, it is enough to know that you have a lot of flexibility in the IV block that allows you to create all kinds of conditions.
03:29
You can also use various effects in the *** block. You can deny actions. If the policies violated, you can modify the source properties with happened and modify. Or you cannot just just audit property since on
03:43
once again we were looking toe details later in the course.
03:46
One important thing to remember is the policy. Have un explicit deny action. This is important to know when you design your policy structure and assigned them toe a scope.
03:58
Let's see now what you can do once you have the policy definition.
04:02
As we mentioned before, the policy can be assigned to take place within a specific sculpt management group, Subscription resource group and individual resource
04:15
skull prefers toe all the management groups, subscriptions, resource groups and resource is that the policy definition is assigned. Toe
04:24
assignments are inherited by all. Child. Resource is
04:29
for our example,
04:30
is the policy definition is assigned to the management group. All subscriptions, research group and re sources that are within this management group will have the policy.
04:42
However, you can exclude the sub scope from the policy assignment.
04:47
For example, if you want to deny the creation of a specific resource in a subscription but alot its creation in just a single resource group,
04:58
you can exclude the resource group from the policy.
05:01
One typical example is if you want to have a single Vinet for a subscription and prevent developers creating Venus in other resource groups except the networking resource group,
05:14
you can exclude the networking resource group from the scope, and you can grant access only to specific users to create. Resource is in that group.
05:23
In the next video, we will look at how you can combine policies and apply them together. US. Initiatives

Up Next

Azure Policies

This course goes into details about Azure Policy and how it can be used for IT governance of Azure resources.

Instructed By

Instructor Profile Image
Toddy Mladenov
Instructor