{"id":14211,"date":"2020-07-30T09:01:56","date_gmt":"2020-07-30T09:01:56","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=14211"},"modified":"2022-03-21T11:50:07","modified_gmt":"2022-03-21T11:50:07","slug":"how-to-create-and-deploy-highly-available-virtual-machines","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/","title":{"rendered":"How to Create and deploy highly available virtual machines?"},"content":{"rendered":"\n<p>In this tutorial, you&#8217;ll learn how to use Availability Sets to improve the availability and dependability of your Virtual Machines (VMs). The VMs you install on Azure are deployed across numerous, separated hardware nodes in a cluster using Availability Sets.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"availability-set-overview\"><strong>Availability Set &#8211; An Overview<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>When VM resources are deployed, an Availability Set is a logical grouping capability for isolating them from each other. <\/li><li>Azure ensures that VMs in an Availability Set is distributed over numerous physical servers, compute racks, storage units, and network switches. <\/li><li>Only a fraction of your VMs are affected by a hardware or software failure, and your entire solution remains functioning. Building dependable cloud solutions necessitate the use of Availability Sets.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"launch-azure-cloud-shell\"><strong>Launching Azure Cloud Shell<\/strong><\/h3>\n\n\n\n<p>You may perform the instructions in this tutorial using the Azure Cloud Shell, which is a free interactive shell. It comes with pre-installed and configured Azure tools for usage with your account.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>To begin, select Try it from the upper right corner of a code block to launch the Cloud Shell. <\/li><li>By navigating to https:\/\/shell.azure.com\/powershell, you may easily run Cloud Shell in a new browser tab. <\/li><li>After that, select Copy to copy the code blocks, paste them into the Cloud Shell, then hit Enter to launch them<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-an-availability-set\"><strong>Creating an availability set<\/strong><\/h3>\n\n\n\n<p>A location&#8217;s hardware is split into several update domains and fault domains. An update domain is a collection of virtual machines (VMs) and real hardware that may all be restarted at the same time. In addition, VMs in the same fault domain share common storage, power, and a network switch.<\/p>\n\n\n\n<p>New-AzAvailabilitySet can be used to build an availability set. The number of update and fault domains in this example is two, and the availability set is called <em>myAvailabilitySet<\/em>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-vms-inside-an-availability-set\"><strong>Creating VMs inside an availability set<\/strong><\/h3>\n\n\n\n<p>To ensure that VMs are distributed evenly throughout the hardware, they must be generated inside the availability set. After you&#8217;ve created an availability set, you can&#8217;t add an existing VM to it.<\/p>\n\n\n\n<p>When you create a VM with&nbsp;New-AzVM, you use the&nbsp;<code>-AvailabilitySetName<\/code>&nbsp;parameter to specify the name of the availability set.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>To begin, use Get-Credential to create an administrator login and password for the VM.<\/li><li>Then, create two VMs in the availability set using New-AzVM.<\/li><li>In addition, creating and configuring both VMs takes only a few minutes. When you&#8217;re done, you&#8217;ll have two virtual computers spread over the hardware.<\/li><li>Following that, you should be able to view how the VMs are split over the two fault and update domains by heading to Resource Groups > myResourceGroupAvailability > myAvailabilitySet on the portal.<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1286\" height=\"430\" src=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/fd-ud-1.png\" alt=\"How to Create and deploy highly available virtual machines?\" class=\"wp-image-14216\" srcset=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/fd-ud-1.png 1286w, https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/fd-ud-1-750x251.png 750w\" sizes=\"auto, (max-width: 1286px) 100vw, 1286px\" \/><figcaption>Image Source &#8211; Microsoft<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"check-for-available-vm-sizes\"><strong>Checking for available VM sizes<\/strong><\/h3>\n\n\n\n<p>You need to know what VM sizes are available on the hardware before you can construct a VM inside an availability set. Use the Retrieve-AzVMSize command to get a list of all available sizes for virtual machines in the availability set.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"check-azure-advisor\"><strong>Checking Azure Advisor<\/strong><\/h3>\n\n\n\n<p>You may also use Azure Advisor to learn more about how to make your VMs more available. Following that, Azure Advisor examines your setup and use data before recommending solutions to help you enhance the cost-effectiveness, performance, availability, and security of your Azure resources.<\/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; <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/tutorial-availability-sets\" target=\"_blank\" rel=\"noreferrer noopener\">Tutorial: Create and deploy highly available virtual machines with Azure PowerShell<\/a> <\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you&#8217;ll learn how to use Availability Sets to improve the availability and dependability of your Virtual Machines (VMs). The VMs you install on Azure are deployed across numerous, separated hardware nodes in a cluster using Availability Sets. Availability Set &#8211; An Overview When VM resources are deployed, an Availability Set is a&#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-14211","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>How to Create and deploy highly available virtual machines?<\/title>\n<meta name=\"description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - How to Create and deploy highly available virtual machines?\" \/>\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\/how-to-create-and-deploy-highly-available-virtual-machines\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create and deploy highly available virtual machines?\" \/>\n<meta property=\"og:description\" content=\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - How to Create and deploy highly available virtual machines?\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-21T11:50:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/fd-ud-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=\"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\/how-to-create-and-deploy-highly-available-virtual-machines\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/\",\"name\":\"How to Create and deploy highly available virtual machines?\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2020-07-30T09:01:56+00:00\",\"dateModified\":\"2022-03-21T11:50:07+00:00\",\"description\":\"Enhance and upgrade your Azure Architect skills by preparing from tutorial - How to Create and deploy highly available virtual machines?\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create and deploy highly available virtual machines?\"}]},{\"@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":"How to Create and deploy highly available virtual machines?","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - How to Create and deploy highly available virtual machines?","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\/how-to-create-and-deploy-highly-available-virtual-machines\/","og_locale":"en_US","og_type":"article","og_title":"How to Create and deploy highly available virtual machines?","og_description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - How to Create and deploy highly available virtual machines?","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2022-03-21T11:50:07+00:00","og_image":[{"url":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-content\/uploads\/2020\/07\/fd-ud-1.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\/how-to-create-and-deploy-highly-available-virtual-machines\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/","name":"How to Create and deploy highly available virtual machines?","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2020-07-30T09:01:56+00:00","dateModified":"2022-03-21T11:50:07+00:00","description":"Enhance and upgrade your Azure Architect skills by preparing from tutorial - How to Create and deploy highly available virtual machines?","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/how-to-create-and-deploy-highly-available-virtual-machines\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"How to Create and deploy highly available virtual machines?"}]},{"@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\/14211","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=14211"}],"version-history":[{"count":4,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14211\/revisions"}],"predecessor-version":[{"id":53273,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/14211\/revisions\/53273"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=14211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=14211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=14211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}