{"id":1723,"date":"2013-05-02T04:40:00","date_gmt":"2013-05-02T04:40:00","guid":{"rendered":"https:\/\/pipe2text.com\/?page_id=1723"},"modified":"2013-05-22T16:11:45","modified_gmt":"2013-05-22T16:11:45","slug":"assigning-a-windows-azure-virtual-machine-to-an-affinity-group","status":"publish","type":"page","link":"https:\/\/pipe2text.com\/?page_id=1723","title":{"rendered":"Assigning a Windows Azure Virtual Machine to an Affinity Group"},"content":{"rendered":"<p><a id=\"_GoBack\"><\/a>Once you\u2019ve created your Azure Affinity Groups it\u2019s fairly simple to assign Azure Resources to a specific Affinity Group. First step is to add your virtual network and storage accounts to the Affinity Group. I will post articles on adding storage and network resources to Affinity groups shortly.<\/p>\n<p>This article assumes you have created an image to build an Azure VM from.\u00a0Highlight Virtual Machines on the left side of the Azure console.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: inline;\" alt=\"\" src=\"https:\/\/pipe2text.com\/wp-content\/plugins..\/..\/uploads\/media\/assigning-a-windows-azure-virtual-machine-to-an-affinity-group\/image1.png\" width=\"121\" height=\"423\" \/><\/p>\n<p>Click the \u201cNew\u201d button in the lower left corner.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: inline;\" alt=\"\" src=\"https:\/\/pipe2text.com\/wp-content\/plugins..\/..\/uploads\/media\/assigning-a-windows-azure-virtual-machine-to-an-affinity-group\/image2.png\" width=\"416\" height=\"22\" \/><\/p>\n<p>For this example we will choose a system \u201cFrom Gallery\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: inline;\" alt=\"\" src=\"https:\/\/pipe2text.com\/wp-content\/plugins..\/..\/uploads\/media\/assigning-a-windows-azure-virtual-machine-to-an-affinity-group\/image3.png\" width=\"416\" height=\"118\" \/><\/p>\n<p>We will choose the win2008r2 image from &#8220;My Images&#8221;. Click the -&gt; in the lower right hand corner. Notice that the image has already been placed in an Affinity Group. This is because the image was created on a storage account that was assigned to an Affinity Group already.<\/p>\n<p><a href=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1926 alignnone\" alt=\"assign2\" src=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign2.png\" width=\"322\" height=\"232\" srcset=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign2.png 894w, https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign2-300x215.png 300w\" sizes=\"auto, (max-width: 322px) 100vw, 322px\" \/><\/a><\/p>\n<p>Specify a name, size, user name, and password for the new VM. Click the -&gt; in the lower right hand corner.<\/p>\n<p><a href=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1925 alignnone\" alt=\"assign1\" src=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign1.png\" width=\"324\" height=\"232\" srcset=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign1.png 900w, https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign1-300x214.png 300w\" sizes=\"auto, (max-width: 324px) 100vw, 324px\" \/><\/a><\/p>\n<p>Specify the DNS Name and either the Affinity Group or Virtual network you want to assign the machine to. As we have a Virtual network created for our systems that is already assigned to an Affinity Group we will choose the &#8220;East&#8221; Virtual network.<\/p>\n<p>**On a side note this is an area where we had run into some confusion. As the Virtual Network gets assigned to an Affinity Group the thought was to select the Affinity Group instead of the Virtual Network. It ends up being the opposite. Doing that puts the machine into the specified Affinity Group but doesn&#8217;t attach it to your Virtual Network.**<\/p>\n<p><a href=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1927 alignnone\" alt=\"assign3\" src=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign3.png\" width=\"385\" height=\"278\" srcset=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign3.png 642w, https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign3-300x216.png 300w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign4.png\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1928 alignnone\" alt=\"assign4\" src=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign4.png\" width=\"242\" height=\"232\" srcset=\"https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign4.png 404w, https:\/\/pipe2text.com\/wp-content\/uploads\/2013\/05\/assign4-300x286.png 300w\" sizes=\"auto, (max-width: 242px) 100vw, 242px\" \/><\/a><\/p>\n<p>This system is now located in the US East datacenter as it is part of a Virtual Network and Storage Account that were assigned to our East Affinity Group. If this was an application server and we wanted to build in a multi-site level of redundancy we would build another set of machines and have them assigned to a Virtual Network and Storage Account\u00a0that are part of our West Affinity Group. Then you can load balance the application between multiple Azure datacenters using Azure Traffic Manager or other DNS load balancing services. I&#8217;ve been testing a Dyn\u00a0(Dynect) DNS load balancing service called <em>Active Failover<\/em> which so far has worked very well and is very easy to setup.<\/p>\n<p>We will detail DNS Load Balancing features in another article. Links to follow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once you\u2019ve created your Azure Affinity Groups it\u2019s fairly simple to assign Azure Resources to a specific Affinity Group. First step is to add your virtual network and storage accounts to the Affinity Group. I will post articles on adding &hellip; <a href=\"https:\/\/pipe2text.com\/?page_id=1723\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"class_list":["post-1723","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1723"}],"version-history":[{"count":19,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1723\/revisions"}],"predecessor-version":[{"id":1726,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1723\/revisions\/1726"}],"wp:attachment":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}