官术网_书友最值得收藏!

Policy validation results

Each policy constantly monitors your resources and validates them against defined rules. When there is a validation error generated by a policy, you can click on it to reveal the details, which confirm that the action was blocked by the policy (see Figure 1.13):

Figure 1.13 - Policy validation error details

The results of the working policy may differ depending on its type. However, they mostly focus on enforcing or forbidding an action, which will result in an error displayed in either a portal or a command line. When you want to assign a policy, you must configure it using various available options. Here, you can find the description of the fields displayed:

  • Scope: This field defines what resources the policy is assigned to. There is a possibility to select either a subscription or a resource group.
  • Exclusions: If you find the scope a little bit too generic, you can add excluded resources that will not be covered by a policy.
  • Policy definition: There are two types of supported policies—built-in and custom. Unfortunately, custom policies are out of the scope of this book (but if you find this topic interesting, you can find a link in the Further reading section to read more about it). A policy is a definition that includes a rule and an effect and is triggered when a rule is not satisfied.
  • Assignment name: It is the display name of an assigned policy.
  • Description and Assigned by: These are optional fields that gather extra information about a policy.

Let's look at some examples of Azure policies that are available.

主站蜘蛛池模板: 桦南县| 铜鼓县| 穆棱市| 丰宁| 靖州| 申扎县| 内江市| 岳池县| 陆河县| 武汉市| 苏尼特右旗| 十堰市| 井陉县| 江口县| 邓州市| 竹北市| 新乡市| 肥城市| 民和| 黄山市| 浪卡子县| 临安市| 枝江市| 峨眉山市| 金平| 牡丹江市| 南澳县| 扶风县| 洛隆县| 察雅县| 蕉岭县| 竹溪县| 敦煌市| 绥中县| 双辽市| 苏尼特左旗| 集安市| 达拉特旗| 仙游县| 登封市| 肥西县|