{"id":36854,"date":"2019-05-29T06:00:36","date_gmt":"2019-05-29T13:00:36","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/premier-developer\/?p=36854"},"modified":"2019-05-29T12:30:59","modified_gmt":"2019-05-29T19:30:59","slug":"getting-started-with-azure-blueprints","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/getting-started-with-azure-blueprints\/","title":{"rendered":"Getting Started with Azure Blueprints"},"content":{"rendered":"<p>In this post, Premier Developer Consultants, <a href=\"https:\/\/www.linkedin.com\/in\/nswitzer1\/\">Nicholas Switzer<\/a> and <a href=\"https:\/\/www.linkedin.com\/in\/kunalsin\/\">Kunal Sinha<\/a>,\u00a0outline steps to integrate Azure Blueprints to quickly deploy and update your cloud environments.<\/p>\n<hr \/>\n<p>If you\u2019ve ever struggled with managing multiple deployment\u00a0pipelines,\u00a0Azure Blueprints\u00a0now\u00a0makes it possible for development teams to rapidly build and stand up new environments with a set of built-in components &#8212; such as networking &#8212; to speed up development and delivery.<\/p>\n<p>Blueprints are a declarative way to orchestrate the deployment of various resource templates and other artifacts such as:<\/p>\n<ul>\n<li>Role Assignments<\/li>\n<li>Policy Assignments<\/li>\n<li>Azure Resource Manager templates<\/li>\n<li>Resource Groups<\/li>\n<\/ul>\n<p>In this blog, we\u2019ll be talking about how to\u00a0get started with the\u00a0Azure Blueprints service by creating and publishing blueprints.<\/p>\n<p><strong>Create a blueprint<\/strong><\/p>\n<ul>\n<li>Select\u00a0<strong>All services<\/strong>\u00a0in\u00a0the left pane. Search for and select\u00a0<strong>Blueprints<\/strong>.\n<ol style=\"list-style-type: lower-alpha;\">\n<li>Select\u00a0<strong>Blueprint definitions<\/strong>\u00a0from the page on the left and select the\u00a0<strong>+ Create\u00a0blueprint\u00a0<\/strong>button\u00a0at the top of the page.<\/li>\n<li>Or, select\u00a0<strong>Create<\/strong>\u00a0from the\u00a0<strong>Getting started<\/strong>\u00a0page to go straight to creating a blueprint.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" width=\"509\" height=\"216\" class=\"wp-image-36861\" src=\"http:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-3.png\" alt=\"C:\\Users\\kusinha\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.MSO\\7D1E5F4E.tmp\" srcset=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-3.png 509w, https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-3-300x127.png 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/p>\n<ul>\n<li>Add a role assignment at the subscription level\n<ol style=\"list-style-type: lower-alpha;\">\n<li>Select the\u00a0<strong>+ Add artifact<\/strong>\u00a0row under\u00a0<strong>Subscription<\/strong>. The\u00a0<strong>Add artifact<\/strong>\u00a0window opens on the right side of the browser.<\/li>\n<li>Select\u00a0<strong>Role assignment<\/strong>\u00a0for\u00a0<strong>Artifact type<\/strong>.<\/li>\n<li>Under\u00a0<strong>Role<\/strong>, select\u00a0<strong>Contributor<\/strong>. Leave the\u00a0<strong>Add user, app or group<\/strong>\u00a0box with the check box that indicates a dynamic parameter.<\/li>\n<li>Select\u00a0<strong>Add<\/strong>\u00a0to add this artifact to the blueprint.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" width=\"561\" height=\"303\" class=\"wp-image-36862\" src=\"http:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-4.png\" alt=\"C:\\Users\\kusinha\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.MSO\\5E76588C.tmp\" srcset=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-4.png 561w, https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-4-300x162.png 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/p>\n<p>Add policy assignments and resource groups using the same process if required. Once you have added the specifications you need for your blueprint, your completed blueprint should look like the following.<\/p>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" width=\"940\" height=\"401\" class=\"wp-image-36863\" src=\"http:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-5.png\" alt=\"C:\\Users\\kusinha\\AppData\\Local\\Microsoft\\Windows\\INetCache\\Content.MSO\\D6AC2A7A.tmp\" srcset=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-5.png 940w, https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-5-300x128.png 300w, https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/05\/c-users-kusinha-appdata-local-microsoft-windows-i-5-768x328.png 768w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/p>\n<p>Notice that each artifact has\u00a0x\u00a0out of\u00a0y\u00a0parameters populated\u00a0in the\u00a0Parameters\u00a0column. The dynamic parameters are set during each assignment\u00a0of\u00a0the blueprint.<\/p>\n<p>Now that all planned artifacts have been added, select\u00a0<strong>Save Draft<\/strong>\u00a0at the bottom of the page.<\/p>\n<p><strong>Publish a blueprint<\/strong><\/p>\n<p>Publishing makes the blueprint available to be assigned\u00a0to\u00a0a subscription.<\/p>\n<ol>\n<li>Select\u00a0<strong>Blueprint definitions<\/strong>\u00a0from the page on the left.<\/li>\n<li>In the list of blueprints, right-click the one you previously created and select\u00a0<strong>Publish blueprint<\/strong>.<\/li>\n<li>In the pane that opens, provide a\u00a0<strong>Version<\/strong>\u00a0(letters, numbers, and hyphens with a maximum length of 20 characters), such as\u00a0<strong>v1<\/strong>. Optionally, enter text in\u00a0<strong>Change notes<\/strong>, such as\u00a0<strong>First publish<\/strong>.<\/li>\n<li>Select\u00a0<strong>Publish<\/strong>\u00a0at the bottom of the page.<\/li>\n<\/ol>\n<p><strong>Troubleshooting<\/strong><\/p>\n<p>Many errors will be the result of assigning a blueprint to a scope. When an assignment fails, the blueprint provides details about the failed deployment. This information indicates the issue so that it can be\u00a0fixed\u00a0and the next deployment succeeds. If you run into issues, reference\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/troubleshoot\/general\" target=\"_blank\" rel=\"noopener\">this<\/a>\u00a0troubleshooting guide.<\/p>\n<p><strong>Summary:<\/strong><em>\u00a0<\/em><\/p>\n<p>As you can see, the process of\u00a0creating and publishing blueprints is\u00a0very\u00a0customizable and straightforward\u00a0and allows you to\u00a0quickly\u00a0deploy and manage your cloud environments. Blueprints also manage state when they\u2019re published and can update existing artifacts back to their original state if they get modified. For more details, see references below.<\/p>\n<p><strong>References:<\/strong><em>\u00a0<\/em><\/p>\n<p>Azure Blueprints service &#8211;\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/governance\/blueprints\/\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.microsoft.com\/enus\/azure\/governance\/blueprints\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure Blueprints now makes it possible for development teams to rapidly build and stand up new environments with a set of built-in components &#8212; such as networking &#8212; to speed up development and delivery.<\/p>\n","protected":false},"author":582,"featured_media":36861,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[25,129,1],"tags":[24,3],"class_list":["post-36854","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-premier","category-permierdev","tag-azure","tag-team"],"acf":[],"blog_post_summary":"<p>Azure Blueprints now makes it possible for development teams to rapidly build and stand up new environments with a set of built-in components &#8212; such as networking &#8212; to speed up development and delivery.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/36854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=36854"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/36854\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/36861"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=36854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=36854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=36854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}