Affinity groups allow you to group your Windows Azure services to optimize performance.
All services within an affinity group will be located in the same data center. An affinity group is required in order to create a virtual network. For more information about affinity groups, see About Affinity Groups for Virtual Network and Operations on Affinity Groups (REST API).
When you create affinity groups, keep the following in mind:
- Affinity group names must be unique within a Windows Azure subscription.
- A virtual network must be placed within an affinity group.
- If you plan to create a virtual network by using the Custom Create wizard in the Management Portal, you can create an affinity group within the wizard. You don’t need to create it beforehand.
- If you plan to import a configuration file to create a virtual network, you must first create an affinity group before you import the file. To create an affinity group, use the following procedure: