{"id":13099,"date":"2020-07-23T09:02:23","date_gmt":"2020-07-23T09:02:23","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=13099"},"modified":"2020-08-28T04:28:54","modified_gmt":"2020-08-28T04:28:54","slug":"create-and-manage-azure-policy","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/","title":{"rendered":"Create and Manage Azure Policy"},"content":{"rendered":"\n<p class=\"has-text-align-right\"><strong><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-104-microsoft-azure-administrator-associate\/\" target=\"_blank\" rel=\"noreferrer noopener\">Return to AZ-104 Tutorial<\/a><\/strong><\/p>\n\n\n\n<p>It is crucial to have a good understanding of how to create and manage policies in Azure Environment. This helps to stay complaisant with the corporate standards and service level agreements. We shall now highlight the steps to use Azure Policy to create, assign, and manage policies across an organization.<\/p>\n\n\n\n<p>Before you begin it is important to have Azure subscription, else it is suggested to create a free account before you begin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Steps to Assign a Azure Policy<\/strong><\/h3>\n\n\n\n<p>Before we begin assigning a policy it is important to enforce compliance with Azure Policy by assigning a policy definition. The policy definition primarily defines under what condition policy is enforced and what effect to take.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Go to the Azure portal to assign policies. Search for and select\u00a0<strong>Policy<\/strong>.<\/li><li>Select\u00a0<strong>Assignments<\/strong>\u00a0on the left side of the Azure Policy page. An assignment is a policy that has been assigned to take place within a specific scope.<\/li><li>Select\u00a0<strong>Assign Policy<\/strong>\u00a0from the top of the\u00a0<strong>Policy &#8211; Assignments<\/strong>\u00a0page.<\/li><li>On the\u00a0<strong>Assign Policy<\/strong>\u00a0page and\u00a0<strong>Basics<\/strong>\u00a0tab, select the\u00a0<strong>Scope<\/strong>\u00a0by selecting the ellipsis and selecting either a management group or subscription.Then select\u00a0<strong>Select<\/strong>\u00a0at the bottom of the\u00a0<strong>Scope<\/strong>\u00a0page.<\/li><li>Resources can be excluded based on the\u00a0<strong>Scope<\/strong>.\u00a0<strong>Exclusions<\/strong>\u00a0start at one level lower than the level of the\u00a0<strong>Scope<\/strong>.\u00a0<strong>Exclusions<\/strong>\u00a0are optional.<\/li><li>Select the\u00a0<strong>Policy definition<\/strong>\u00a0ellipsis to open the list of available definitions. You can filter the policy definition\u00a0<strong>Type<\/strong>\u00a0to\u00a0<em>Built-in<\/em>\u00a0to view all and read their descriptions.<\/li><li>Select\u00a0<strong>Inherit a tag from the resource group if missing<\/strong>. If you can&#8217;t find it right away, type\u00a0<strong>inherit a tag<\/strong>\u00a0into the search box and then press ENTER or select out of the search box. <\/li><li>Select\u00a0the <strong>Select<\/strong> option at the bottom of the\u00a0<strong>Available Definitions<\/strong>\u00a0page once you have found and selected the policy definition.<\/li><li>The\u00a0<strong>Assignment name<\/strong>\u00a0is automatically populated with the policy name you selected, but you can change it.\u00a0<\/li><li>Leave\u00a0<strong>Policy enforcement<\/strong>\u00a0as\u00a0<em>Enabled<\/em>. When\u00a0<em>Disabled<\/em>, this setting allows testing the outcome of the policy without triggering the effect.\u00a0<\/li><li><strong>Assigned by<\/strong>\u00a0is automatically filled based on who is logged in. This field is optional, so custom values can be entered.<\/li><li>Select the\u00a0<strong>Parameters<\/strong>\u00a0tab at the top of the wizard.<\/li><li>For\u00a0<strong>Tag Name<\/strong>, enter\u00a0<em>Environment<\/em>.<\/li><li>Select the\u00a0<strong>Remediation<\/strong>\u00a0tab at the top of the wizard.<\/li><li>Leave\u00a0<strong>Create a remediation task<\/strong>\u00a0unchecked. This box allows you to create a task to alter existing resources in addition to new or updated resources. <\/li><li><strong>Create a Managed Identity<\/strong>\u00a0is automatically checked since this policy definition uses the\u00a0modify\u00a0the effect.\u00a0<strong>Permissions<\/strong>\u00a0are set to\u00a0<em>Contributor<\/em>\u00a0automatically based on the policy definition. For more information, see\u00a0managed identities\u00a0and\u00a0how remediation security works.<\/li><li>Select the\u00a0<strong>Review + Create<\/strong>\u00a0Tab at the top of the wizard.<\/li><li>Review your selections, then select\u00a0<strong>Create<\/strong>\u00a0at the bottom of the page.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-administrator-associate-az-104-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/06\/practice-test-2.png\" alt=\"Practice Test for AZ-104\"\/><\/a><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Steps to implement a New Custom Policy<\/strong><\/h3>\n\n\n\n<p>We can create a new custom policy and thereby save costs by validating that virtual machines created in your environment. In this way, every time a user in the organization plans to create a virtual machine in the G series, the request is denied.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/policy\/media\/create-and-manage\/definition-under-authoring.png\" alt=\"Azure Policy Page\"\/><figcaption>Source: Microsoft<\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>Select&nbsp;<strong>Definitions<\/strong>&nbsp;under&nbsp;<strong>Authoring<\/strong>&nbsp;in the left side of the Azure Policy page.<\/li><li>Select&nbsp;<strong>+ Policy definition<\/strong>&nbsp;at the top of the page. This button opens to the&nbsp;<strong>Policy definition<\/strong>&nbsp;page.<\/li><li>Enter the information including management group or subscription, name of the policy definition, policy definition, Copy the following JSON code and then update.<\/li><li>Select Save Option<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-administrator-associate-az-104-online-course\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/testpreptraining.ai-2-1-750x117.png\" alt=\"\" class=\"wp-image-12856\"\/><\/a><\/figure>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference: <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/policy\/tutorials\/create-and-manage\" target=\"_blank\" rel=\"noreferrer noopener\">Microsoft Documentation<\/a><\/strong><\/p>\n\n\n\n<p><strong><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-104-microsoft-azure-administrator-associate\/\" target=\"_blank\" rel=\"noreferrer noopener\">Return to AZ-104 Tutorial<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Return to AZ-104 Tutorial It is crucial to have a good understanding of how to create and manage policies in Azure Environment. This helps to stay complaisant with the corporate standards and service level agreements. We shall now highlight the steps to use Azure Policy to create, assign, and manage policies across an organization. Before&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-13099","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create and Manage Azure Policy - Testprep Training Tutorials<\/title>\n<meta name=\"description\" content=\"Learn to create and manage Azure Policy with expert tutorials and practice series to boost your chances. Start preparing for AZ-104 Exam Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create and Manage Azure Policy - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"Learn to create and manage Azure Policy with expert tutorials and practice series to boost your chances. Start preparing for AZ-104 Exam Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-28T04:28:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/06\/practice-test-2.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/\",\"name\":\"Create and Manage Azure Policy - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-07-23T09:02:23+00:00\",\"dateModified\":\"2020-08-28T04:28:54+00:00\",\"description\":\"Learn to create and manage Azure Policy with expert tutorials and practice series to boost your chances. Start preparing for AZ-104 Exam Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create and Manage Azure Policy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create and Manage Azure Policy - Testprep Training Tutorials","description":"Learn to create and manage Azure Policy with expert tutorials and practice series to boost your chances. Start preparing for AZ-104 Exam Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/","og_locale":"en_US","og_type":"article","og_title":"Create and Manage Azure Policy - Testprep Training Tutorials","og_description":"Learn to create and manage Azure Policy with expert tutorials and practice series to boost your chances. Start preparing for AZ-104 Exam Now!","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-08-28T04:28:54+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/06\/practice-test-2.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/","name":"Create and Manage Azure Policy - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-07-23T09:02:23+00:00","dateModified":"2020-08-28T04:28:54+00:00","description":"Learn to create and manage Azure Policy with expert tutorials and practice series to boost your chances. Start preparing for AZ-104 Exam Now!","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/create-and-manage-azure-policy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Create and Manage Azure Policy"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/13099","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=13099"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/13099\/revisions"}],"predecessor-version":[{"id":18358,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/13099\/revisions\/18358"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=13099"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=13099"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=13099"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}