{"id":624,"date":"2019-02-07T12:12:51","date_gmt":"2019-02-07T18:12:51","guid":{"rendered":"http:\/\/www.sqlfreelancer.com\/blog\/?p=624"},"modified":"2019-02-07T12:12:51","modified_gmt":"2019-02-07T18:12:51","slug":"create-azure-windows-vm","status":"publish","type":"post","link":"https:\/\/www.sqlfreelancer.com\/blog\/create-azure-windows-vm\/","title":{"rendered":"Create Azure Windows VM"},"content":{"rendered":"<p>Creating an Azure Windows VM seems pretty easy, but there are a lot of settings to be careful of before hitting the Create button. In this post, we\u2019ll go over some of those so the next (or first) time you create an Azure VM, you\u2019ll be ready!<\/p>\n<p>Here we go\u2026.<\/p>\n<p>Log into the Azure portal and click Virtual Machines and Create Virtual Machine:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-625\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-1.png\" alt=\"Azure VM 1\" width=\"1038\" height=\"611\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-1.png 1038w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-1-300x177.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-1-1024x603.png 1024w\" sizes=\"auto, (max-width: 1038px) 100vw, 1038px\" \/><\/a><\/p>\n<p>Note: I\u2019m using a free trial.<\/p>\n<p>Under the Basics tab, there are a few options. Let\u2019s start at the top.<\/p>\n<p>Subscription: An Azure subscription is the agreement with Microsoft to use Azure, for which charges accrue. You can create multiple subscriptions to separate billing or management.<\/p>\n<p>Resource Group: A container that holds related resources for an Azure solution. The resource group includes those resources that you want to manage as a group. You decide how to allocate resources to resource groups based on what makes the most sense for your organization.<\/p>\n<p>Virtual machine Name: The identifier and host name for the VM.<\/p>\n<p>Region: The region in which your VM will reside. To see more go here: <a href=\"https:\/\/azure.microsoft.com\/en-us\/global-infrastructure\/regions\/\">https:\/\/azure.microsoft.com\/en-us\/global-infrastructure\/regions\/<\/a><\/p>\n<p>Availability Options:<\/p>\n<ul>\n<li>No infrastructure redundancy required: No High Availability.<\/li>\n<li>Availability Zone: VM\u2019s are in a different physical location within an Azure region. This offers 99.99% SLA.<\/li>\n<li>Availability Set: A group with two or more virtual machines in the same Data Center is called Availability Set, this ensures that at least one of the virtual machines hosted on Azure will be available if something happens. This configuration offers 99.95% SLA.<\/li>\n<\/ul>\n<p>Image: The base Operating System for the VM. The following Windows versions are supported. <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-stack\/azure-stack-supported-os\">https:\/\/docs.microsoft.com\/en-us\/azure\/azure-stack\/azure-stack-supported-os<\/a><\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-626\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-2.png\" alt=\"Azure VM 2\" width=\"874\" height=\"348\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-2.png 874w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-2-300x119.png 300w\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" \/><\/a>Size: This is the size of the VM. Here\u2019s a good chart to use when sizing. Remember, pricing! Another cool thing with Azure is that you can resize pretty easy by shutting down the VM, resizing it, and restarting. Of course, this depends on your region and availability options. <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/sizes\">https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/sizes<\/a><\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-627\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-3.png\" alt=\"Azure VM 3\" width=\"981\" height=\"485\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-3.png 981w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-3-300x148.png 300w\" sizes=\"auto, (max-width: 981px) 100vw, 981px\" \/><\/a><\/p>\n<p>There\u2019s also a free tool on the web that will help you size your VM based on certain resources. <a href=\"https:\/\/www.vmchooser.com\/vmchooser\">https:\/\/www.vmchooser.com\/vmchooser<\/a><\/p>\n<p>Username: The administrator username for the VM<\/p>\n<p>Password: The administrator password for the VM<\/p>\n<p>Public inbound ports: Ports that are accessible from the public internet.<\/p>\n<p>Already have a Windows license?: You can save money if you already have a Software Assurance license or an Active Windows server subscription.<\/p>\n<p>&nbsp;<\/p>\n<p>In my example, I\u2019m using a Free Trial, so that\u2019s the only option for Subscription. For Resource Group, let\u2019s create a new group (by clicking Create New), named SQLFreelancerRG.<\/p>\n<p>I\u2019ll name my VM SQLVM, put it in the East Region, with no redundancy and a fresh copy of Windows Server 2016 DataCenter.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-628\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-4.png\" alt=\"Azure VM 4\" width=\"765\" height=\"386\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-4.png 765w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-4-300x151.png 300w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/a><\/p>\n<p>Next, I\u2019ll size this VM with the Standard DS1 v2, which is going to give me 1vCPU and 3.5GB RAM. I\u2019ll create an Administrator account, allow no ports from the public internet and choose No for the Azure Hybid Benefit.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-629\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-5.png\" alt=\"Azure VM 5\" width=\"803\" height=\"595\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-5.png 803w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-5-300x222.png 300w\" sizes=\"auto, (max-width: 803px) 100vw, 803px\" \/><\/a><\/p>\n<p>The next page is all about the Disks. <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/about-disks-and-vhds\">https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/about-disks-and-vhds<\/a><\/p>\n<p>OS disk type: This is type of disks we can use for the VM. Let\u2019s look at Standard vs. Premium:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-630\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-6.png\" alt=\"Azure VM 6\" width=\"846\" height=\"408\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-6.png 846w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-6-300x145.png 300w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/a><\/p>\n<p>You can also create and attach a new disk or attach an existing disk (from snapshot of another disk or BLOB storage)<\/p>\n<p>In my example, I\u2019ll use a Premium SSD disk and I\u2019ll create a second disk called SQLVM_DataDisk_1.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-631\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-7.png\" alt=\"Azure VM 7\" width=\"810\" height=\"352\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-7.png 810w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-7-300x130.png 300w\" sizes=\"auto, (max-width: 810px) 100vw, 810px\" \/><\/a><\/p>\n<p>The next page gets into a little Networking. <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/network-overview\">https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/network-overview<\/a><\/p>\n<p>Virtual Network: A virtual network enables VM\u2019s to communicate privately with each other, and with the internet.<\/p>\n<p>Subnet: The subnet is the range of IP addresses in the Virtual Network.<\/p>\n<p>Public IP: Public IP addresses allow Internet resources to communicate inbound to Azure resources. Public IP addresses also enable Azure resources to communicate outbound to Internet and public-facing Azure services with an IP address assigned to the resource. The address is dedicated to the resource, until it is unassigned by you. If a public IP address is not assigned to a resource, the resource can still communicate outbound to the Internet, but Azure dynamically assigns an available IP address that is not dedicated to the resource.<\/p>\n<p>NIC network security group: Security rules in network security groups enable you to filter the type of network traffic that can flow in and out of virtual network subnets and network interfaces.<\/p>\n<p>Public inbound ports: Ports that are accessible from the public internet.<\/p>\n<p>Accelerated Networking: Enables low latency and high throughput on the network interface.<\/p>\n<p>Load Balancing: <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/load-balancer\/load-balancer-overview\">Azure Load Balancer<\/a> delivers high availability and network performance to your applications. A load balancer can be configured to <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/load-balancer\/load-balancer-internet-overview\" data-linktype=\"relative-path\">balance incoming Internet traffic<\/a> to VMs or <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/load-balancer\/load-balancer-internal-overview\" data-linktype=\"relative-path\">balance traffic between VMs in a VNet<\/a>. A load balancer can also balance traffic between on-premises computers and VMs in a cross-premises network, or forward external traffic to a specific VM.<\/p>\n<p>For this post, I\u2019m just going to use the defaults and move forward.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-632\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-8.png\" alt=\"Azure VM 8\" width=\"770\" height=\"690\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-8.png 770w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-8-300x269.png 300w\" sizes=\"auto, (max-width: 770px) 100vw, 770px\" \/><\/a><\/p>\n<p>Next up is Monitoring. <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/monitor\">https:\/\/docs.microsoft.com\/en-us\/azure\/virtual-machines\/windows\/monitor<\/a><\/p>\n<p>Boot diagnostics: As VMs boot, the boot diagnostic agent captures boot output and stores it in Azure storage. This data can be used to troubleshoot VM boot issues.<\/p>\n<p>OS guest diagnostics: Allows you to get metrics every minute for your VM. You can use them to create alerts and stay informed.<\/p>\n<p>Diagnostics storage account: The storage account in which your diagnostics are stored.<\/p>\n<p>System assigned managed identity: Managed identities for Azure resources provides Azure services with an automatically managed identity in Azure Active Directory. You can use this identity to authenticate to any service that supports Azure AD authentication, without having credentials in your code. <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/managed-identities-azure-resources\/qs-configure-portal-windows-vm\">https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/managed-identities-azure-resources\/qs-configure-portal-windows-vm<\/a><\/p>\n<p>Enabled auto-shutdown: Configures your VM to automatically shutdown each day.<\/p>\n<p>Enable backup: Auto backup for your VM.<\/p>\n<p>I\u2019m going to keep defaults and click Next.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-633\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-9.png\" alt=\"Azure VM 9\" width=\"818\" height=\"490\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-9.png 818w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-9-300x180.png 300w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><\/a><\/p>\n<p>The next page is Guest Config where you can add additional configuration, scripts, agents, or applications via VM extensions. Click Next.<\/p>\n<p>Tags are name values pairs that enable you to categorize resources and view consolidated billing. Think of this as Twitter hashtag.<\/p>\n<p>Last page is Review and Create. This is the page that displays a summary of our selections including price per hour of uptime. You\u2019ll also notice at the bottom there is a link that will allow you to download a template for automation. This will allow you to use the same specs that you created for this VM on other VM\u2019s. Click Create to build your new VM.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-634\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-10.png\" alt=\"Azure VM 10\" width=\"799\" height=\"699\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-10.png 799w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-10-300x262.png 300w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/a><\/p>\n<p>If you click on the Notification Bell at the top of the portal, you\u2019ll see that Deployment is in progress.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-635\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-11.png\" alt=\"Azure VM 11\" width=\"509\" height=\"219\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-11.png 509w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-11-300x129.png 300w\" sizes=\"auto, (max-width: 509px) 100vw, 509px\" \/><\/a><\/p>\n<p>Once the VM is created, you can click Virtual Machines from the Favorite Bar and view your newly created VM:<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-636\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-12.png\" alt=\"Azure VM 12\" width=\"1136\" height=\"309\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-12.png 1136w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-12-300x82.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-12-1024x279.png 1024w\" sizes=\"auto, (max-width: 1136px) 100vw, 1136px\" \/><\/a><\/p>\n<p>If you click on the new VM it will bring up the Overview page (along with tons of other pages to choose from).<\/p>\n<p>Click on the Networking tab and Add inbound port rule. Under Destination Port Range type 3389 and under Name type RDP inbound. This will allow RDP access.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-637\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-13.png\" alt=\"Azure VM 13\" width=\"568\" height=\"658\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-13.png 568w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-13-259x300.png 259w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/a><\/p>\n<p>Click Connect and Download RDP file to remote into the server.<\/p>\n<p><a href=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-638\" src=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-14.png\" alt=\"Azure VM 14\" width=\"1363\" height=\"399\" srcset=\"https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-14.png 1363w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-14-300x88.png 300w, https:\/\/www.sqlfreelancer.com\/blog\/wp-content\/uploads\/2019\/02\/Azure-VM-14-1024x300.png 1024w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><\/a><\/p>\n<p>TADA!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating an Azure Windows VM seems pretty easy, but there are a lot of settings to be careful of before hitting the Create button. In this post, we\u2019ll go over some of those so the next (or first) time you create an Azure VM, you\u2019ll be ready! Here we go\u2026. Log into the Azure portal [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[77],"class_list":["post-624","post","type-post","status-publish","format-standard","hentry","category-azure","tag-azure"],"_links":{"self":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/comments?post=624"}],"version-history":[{"count":2,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/624\/revisions"}],"predecessor-version":[{"id":640,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/posts\/624\/revisions\/640"}],"wp:attachment":[{"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/media?parent=624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/categories?post=624"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sqlfreelancer.com\/blog\/wp-json\/wp\/v2\/tags?post=624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}