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

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.

主站蜘蛛池模板: 博白县| 泸溪县| 怀宁县| 三亚市| 建湖县| 天水市| 东安县| 汤原县| 英德市| 寿宁县| 米易县| 龙口市| 稻城县| 大连市| 富川| 阳谷县| 简阳市| 循化| 八宿县| 罗田县| 汉阴县| 蚌埠市| 宁明县| 大冶市| 桂平市| 南宁市| 腾冲县| 镇安县| 隆昌县| 临漳县| 大丰市| 青岛市| 乐清市| 晋江市| 鹤岗市| 桐乡市| 海门市| 特克斯县| 柘城县| 丹东市| 鹤庆县|