{"id":14448,"date":"2020-07-31T05:13:09","date_gmt":"2020-07-31T05:13:09","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=14448"},"modified":"2022-03-23T06:54:05","modified_gmt":"2022-03-23T06:54:05","slug":"know-about-windows-virtual-machine-and-template-library","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/","title":{"rendered":"Know about Windows virtual machine and Template Library"},"content":{"rendered":"\n<p>This tutorial will help you to learn how to create a Windows virtual machine by using an Azure Resource Manager template and Azure PowerShell from the Azure Cloud shell. The template used in this article creates a new virtual network with a single subnet and a single virtual machine running Windows Server.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-virtual-machine\"><strong>Create a virtual machine<\/strong><\/h3>\n\n\n\n<p>Creating an Azure virtual machine usually includes two steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, Create a resource group. An Azure resource group is a logical container into which Azure resources are deployed and managed. A resource group must be created before a virtual machine.<\/li><li>Lastly, Create a virtual machine.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What are ARM templates?<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Many teams have adopted agile development approaches as a result of the transition to the cloud. <\/li><li>These groups iterate often. As they must be able to deploy their solutions to the cloud on a regular basis and have confidence in their infrastructure. <\/li><li>Thirdly, the distinction between operations and development has vanished since infrastructure has become a part of the iterative process. Teams must use a single methodology to manage infrastructure and application code.<\/li><li>You may automate deployments and leverage the infrastructure as code methodology to overcome these difficulties. The infrastructure that needs to be installed is defined in code. Your infrastructure code is incorporated into your project. <\/li><li>Further, infrastructure code, like application code, is stored in a source repository and versioned. The code may be executed by anybody on your team, and comparable environments can be deployed.<\/li><li>Use Azure Resource Manager (ARM) templates to deploy infrastructure as code for your Azure solutions.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"why-choose-arm-templates\"><strong>Why choose ARM templates?<\/strong><\/h3>\n\n\n\n<p>Consider the following advantages of using templates:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Declarative syntax<\/li><li>Repeatable results<\/li><li>Orchestration<\/li><li>Modular files<\/li><li>Extensibility etc. <\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"210\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/template-processing.png\" alt=\"Know about Windows virtual machine and Template Library\" class=\"wp-image-14449\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"template-file\"><strong>Template file<\/strong><\/h3>\n\n\n\n<p>You may use template expressions to expand JSON&#8217;s capabilities within your template. The functions supplied by Resource Manager are used in these phrases.<\/p>\n\n\n\n<p>The template has the following sections:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Firstly, Parameters&nbsp;&#8211; Provide values during deployment that allow the same template to be used with different environments.<\/li><li>Secondly, Variables&nbsp;&#8211; Define values that are reused in your templates. They can be constructed from parameter values.<\/li><li>Thirdly, User-defined functions&nbsp;&#8211; Create customized functions that simplify your template.<\/li><li>Subsequently, Resources&nbsp;&#8211; Specify the resources to deploy.<\/li><li>Lastly, Outputs&nbsp;&#8211; Return values from the deployed resources.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"template-design\"><strong>Template design<\/strong><\/h3>\n\n\n\n<p>It&#8217;s totally up to you and how you want to manage your solution how you establish templates and resource groups. You may, for example, deploy your three-tier application to a single resource group using a single template.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-resource-manager\/templates\/media\/overview\/3-tier-template.png\" alt=\"three tier template\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>You don&#8217;t have to specify your complete architecture in one template, though. It&#8217;s often a good idea to break down your deployment needs into a set of targeted, purpose-specific templates. You may also simply reuse these templates for a variety of solutions. To deploy a solution, you must first construct a master template that connects all of the necessary templates. The graphic below illustrates how to install a three-tier solution using a parent template with three nested templates.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-resource-manager\/templates\/media\/overview\/nested-tiers-template.png\" alt=\"nested tier template Know about Windows virtual machine and Template Library\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<p>Also, If you envision your tiers having separate lifecycles, you can deploy your three tiers to separate resource groups. Notice the resources can still be linked to resources in other resource groups.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-resource-manager\/templates\/media\/overview\/tier-templates.png\" alt=\"tier template\"\/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\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\/virtual-machines\/windows\/ps-template\" target=\"_blank\" rel=\"noreferrer noopener\">Create a Windows virtual machine from a Resource Manager template<\/a><\/p>\n\n\n\n<p class=\"has-text-align-right\"><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-resource-manager\/templates\/overview\" target=\"_blank\" rel=\"noreferrer noopener\">What are ARM templates?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will help you to learn how to create a Windows virtual machine by using an Azure Resource Manager template and Azure PowerShell from the Azure Cloud shell. The template used in this article creates a new virtual network with a single subnet and a single virtual machine running Windows Server. Create a virtual&#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-14448","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>Know about Windows virtual machine and Template Library<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Know about Windows virtual machine and Template Library.\" \/>\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\/know-about-windows-virtual-machine-and-template-library\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Know about Windows virtual machine and Template Library\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Know about Windows virtual machine and Template Library.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-23T06:54:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/template-processing.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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/\",\"name\":\"Know about Windows virtual machine and Template Library\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-07-31T05:13:09+00:00\",\"dateModified\":\"2022-03-23T06:54:05+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Know about Windows virtual machine and Template Library.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Know about Windows virtual machine and Template Library\"}]},{\"@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":"Know about Windows virtual machine and Template Library","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Know about Windows virtual machine and Template Library.","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\/know-about-windows-virtual-machine-and-template-library\/","og_locale":"en_US","og_type":"article","og_title":"Know about Windows virtual machine and Template Library","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Know about Windows virtual machine and Template Library.","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-23T06:54:05+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/template-processing.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/","name":"Know about Windows virtual machine and Template Library","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-07-31T05:13:09+00:00","dateModified":"2022-03-23T06:54:05+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - Know about Windows virtual machine and Template Library.","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/know-about-windows-virtual-machine-and-template-library\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Know about Windows virtual machine and Template Library"}]},{"@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\/14448","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=14448"}],"version-history":[{"count":4,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14448\/revisions"}],"predecessor-version":[{"id":53395,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14448\/revisions\/53395"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=14448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=14448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=14448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}