{"id":1715,"date":"2013-05-02T04:07:00","date_gmt":"2013-05-02T04:07:00","guid":{"rendered":"https:\/\/pipe2text.com\/?page_id=1715"},"modified":"2013-05-02T05:07:03","modified_gmt":"2013-05-02T05:07:03","slug":"creating-a-windows-azure-affinity-group","status":"publish","type":"page","link":"https:\/\/pipe2text.com\/?page_id=1715","title":{"rendered":"Creating a Windows Azure Affinity Group"},"content":{"rendered":"<p>A Windows Azure Affinity Group is a way of grouping Azure resources by geographical location or region and also keeping them as close together within that region as possible. If you were to only specify a region when creating VM&#8217;s Azure would, for example, place those VM&#8217;s in a datacenter that corresponds to that region. If you create an Affinity Group and assign VM&#8217;s to it those machines not only get placed in the same datacenter but also as close together as possible within that datacenter. This will increase in performance as Azure datacenters are quite large. Data does not have to travel as far and latency is decreased.<\/p>\n<p>Let\u2019s use an example of an application server that relies on a SQL server for the data it\u2019s presenting. Obviously you wouldn&#8217;t want that application server located in California and the SQL server in Atlanta. Placing the application and SQL server in the same affinity group ensure they are communicating with each other in the same location (region) and that they could potentially be located in the same rack. The screenshots below should bring some additional additional clarity.<\/p>\n<p>On the Azure homepage click on settings<\/p>\n<p><img decoding=\"async\" style=\"display: inline;\" alt=\"\" src=\"https:\/\/pipe2text.com\/wp-content\/plugins..\/..\/uploads\/media\/creating-a-windows-azure-affinity-group\/image1.png\" \/><\/p>\n<p>Then click on affinity groups on the top of the page (tabs)<\/p>\n<p><img decoding=\"async\" style=\"display: inline;\" alt=\"\" src=\"https:\/\/pipe2text.com\/wp-content\/plugins..\/..\/uploads\/media\/creating-a-windows-azure-affinity-group\/image2.png\" \/><\/p>\n<p>Then click on \u201cadd\u201d at the bottom<\/p>\n<p><img decoding=\"async\" style=\"display: inline;\" alt=\"\" src=\"https:\/\/pipe2text.com\/wp-content\/plugins..\/..\/uploads\/media\/creating-a-windows-azure-affinity-group\/image3.png\" \/><\/p>\n<p>Assign an appropriate Name and Description. Choose the Azure subscription you want to assign this Affinity Group to and pick a region<\/p>\n<p><img decoding=\"async\" style=\"display: inline;\" alt=\"\" src=\"https:\/\/pipe2text.com\/wp-content\/plugins..\/..\/uploads\/media\/creating-a-windows-azure-affinity-group\/image4.png\" \/><\/p>\n<p>Click the check in the lower right hand corner and your Affinity Group is complete. When creating Azure VM\u2019s you can now assign them to any Affinity group you have created.<\/p>\n<p>We curently have a East US and a West US Affinity Group for each subscription we\u2019ve created. This allows us to place machines in 2 regions or datacenters. Think of it in terms (theoretically) of having purchased a rack in a production site in Atlanta and a rack in a DR site in California.<\/p>\n<p>The complete list of options for Affinity Group regions are as follows:<\/p>\n<p><img decoding=\"async\" style=\"display: inline;\" alt=\"\" src=\"https:\/\/pipe2text.com\/wp-content\/plugins..\/..\/uploads\/media\/creating-a-windows-azure-affinity-group\/image5.png\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Windows Azure Affinity Group is a way of grouping Azure resources by geographical location or region and also keeping them as close together within that region as possible. If you were to only specify a region when creating VM&#8217;s &hellip; <a href=\"https:\/\/pipe2text.com\/?page_id=1715\">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-1715","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1715","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=1715"}],"version-history":[{"count":6,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1715\/revisions"}],"predecessor-version":[{"id":1717,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1715\/revisions\/1717"}],"wp:attachment":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}