{"id":14463,"date":"2020-07-31T06:40:25","date_gmt":"2020-07-31T06:40:25","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=14463"},"modified":"2022-03-16T05:50:05","modified_gmt":"2022-03-16T05:50:05","slug":"deploying-azure-resource-manager-templates-in-powershell-runbook","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/","title":{"rendered":"Deploying Azure Resource Manager templates in PowerShell runbook?"},"content":{"rendered":"\n<p>This article will teach you how to use a PowerShell runbook to deploy Azure Resource Manager templates. Using an Azure Resource Management template, you may create an Azure Automation PowerShell runbook that installs an Azure resource. You may use Azure Automation and Azure Storage to automate the deployment of your Azure resources by using the template. You may keep your Resource Manager templates in Azure Storage, which is a central, safe place.<\/p>\n\n\n\n<p>It&#8217;s not straightforward to create an ARM template from scratch, especially if you&#8217;re new to Azure deployment and unfamiliar with the JSON format. You may configure a resource, such as an Azure Storage account, using the Azure portal. You can save your settings as a template before deploying the resource. And, you may save and reuse the template in the future.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"340\" height=\"142\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/azure-resource-manager-export-deploy-template-portal-1.png\" alt=\"How to Deploy Azure Resource Manager templates in PowerShell runbook?\" class=\"wp-image-14465\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"prerequisites\"><strong>Prerequisites<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, get Azure subscription. If you don&#8217;t have one yet, you can&nbsp;activate your MSDN subscriber benefits&nbsp;or&nbsp;sign up for a free account.<\/li><li>Secondly, Automation account&nbsp;to hold the runbook and authenticate to Azure resources. This account must have permission to start and stop the virtual machine.<\/li><li>Subsequently, Azure Storage account&nbsp;in which to store the Resource Manager template<\/li><li>Lastly, Azure PowerShell installed on a local machine. See&nbsp;Install the Azure PowerShell Module&nbsp;for information about how to get Azure PowerShell.<\/li><\/ul>\n\n\n\n<p>The Following steps are involved &#8211; <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li> Firstly, Creating the Resource Manager template<\/li><li>Secondly, Save the Resource Manager templates in Azure Storage<\/li><li>Thirdly, Creating the PowerShell runbook script<\/li><li>Subsequently, Import and publish the runbook into your Azure Automation account<\/li><li>Finally, Start the runbook and complete the process. and you are done!<\/li><\/ul>\n\n\n\n<p>The runbook obtains the Resource Manager template and deploys a new Azure Storage account using it.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.testpreptraining.ai\/microsoft-azure-architect-technologies-az-303-free-practice-test\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"150\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png\" alt=\"free practice test for AZ- 303\" class=\"wp-image-13928\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5.png 960w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/Untitled-design-5-750x117.png 750w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/figure><\/div>\n\n\n\n<p><a href=\"https:\/\/www.testpreptraining.ai\/tutorial\/exam-az-303-microsoft-azure-architect-technologies\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Go back to home page <\/strong><\/a><\/p>\n\n\n\n<p class=\"has-text-align-right\"><strong>Reference documentation &#8211;  <\/strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/automation\/automation-deploy-template-runbook\" target=\"_blank\" rel=\"noreferrer noopener\">Deploy an Azure Resource Manager template in a PowerShell runbook<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will teach you how to use a PowerShell runbook to deploy Azure Resource Manager templates. Using an Azure Resource Management template, you may create an Azure Automation PowerShell runbook that installs an Azure resource. You may use Azure Automation and Azure Storage to automate the deployment of your Azure resources by using the&#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-14463","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>Deploying Azure Resource Manager templates in PowerShell runbook?<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial -How to Deploy Azure Resource Manager templates in PowerShell runbook?\" \/>\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\/deploying-azure-resource-manager-templates-in-powershell-runbook\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploying Azure Resource Manager templates in PowerShell runbook?\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial -How to Deploy Azure Resource Manager templates in PowerShell runbook?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-16T05:50:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/azure-resource-manager-export-deploy-template-portal-1.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/\",\"name\":\"Deploying Azure Resource Manager templates in PowerShell runbook?\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-07-31T06:40:25+00:00\",\"dateModified\":\"2022-03-16T05:50:05+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial -How to Deploy Azure Resource Manager templates in PowerShell runbook?\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deploying Azure Resource Manager templates in PowerShell runbook?\"}]},{\"@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":"Deploying Azure Resource Manager templates in PowerShell runbook?","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial -How to Deploy Azure Resource Manager templates in PowerShell runbook?","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\/deploying-azure-resource-manager-templates-in-powershell-runbook\/","og_locale":"en_US","og_type":"article","og_title":"Deploying Azure Resource Manager templates in PowerShell runbook?","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial -How to Deploy Azure Resource Manager templates in PowerShell runbook?","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-16T05:50:05+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/azure-resource-manager-export-deploy-template-portal-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/","name":"Deploying Azure Resource Manager templates in PowerShell runbook?","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-07-31T06:40:25+00:00","dateModified":"2022-03-16T05:50:05+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial -How to Deploy Azure Resource Manager templates in PowerShell runbook?","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/deploying-azure-resource-manager-templates-in-powershell-runbook\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Deploying Azure Resource Manager templates in PowerShell runbook?"}]},{"@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\/14463","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=14463"}],"version-history":[{"count":6,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14463\/revisions"}],"predecessor-version":[{"id":52930,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14463\/revisions\/52930"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=14463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=14463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=14463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}