Can Windows Azure roles determine which data centers the roles are in?

Our Windows Azure roles need to know programmatically in which data center the roles are.

I know the REST API ( http://msdn.microsoft.com/en-us/library/ee460806.aspx ) property return location. And if I deploy, say, in the West USA, the REST API will return West US as a location property. However, if I deploy to Anywhere US, this is the Anywhere US property. I would like to know in which data center our roles are, even if the location property is anywhere.

The reason I'm asking is because our roles need to download some data from the Windows Azure storage. The cost of downloading data from the same data center is free, but downloading data from another data center is not free.

+5
source share
3 answers

, . , ( "South Central US" "Anywhere US" ), RDFE, , Azure. , , "South Central US" "North Central US", , , , , "Anywhere US" , "South Center" " " , RDFE, .

, , , SM API Powershell ( Azure Portal "Anywhere US" , ), , .

@Sandrino , IP- IP-, Windows Azure.

+1

Microsoft XML IP . IP- , .

<?xml version="1.0" encoding="UTF-8"?>
<regions>
  ...
  <region name="USA">
    <subregion name="South Central US">
      <network>65.55.80.0/20</network>
      <network>65.54.48.0/21</network>
      ...
    </subregion>
    <subregion name="North Central US">
      <network>207.46.192.0/20</network>
      <network>65.52.0.0/19</network>
      ...
    </subregion>
  </region>
</regions>

. , ( ) XML , .

+1

I had some services deployed to Anywhere US, and to find out which data center was deployed, I had to register a support call with Microsoft. They were helpful and got me information, but even they had to leave and see. As a result of this, I would never use the place "Everywhere ...". To know which data center is working for you, it is very important to know where you can deploy things like SQL Azure and the service bus, which do not support affinity groups and do not have the Anywhere option.

0
source

All Articles