Unable to allocate the required address spaces
Asked Answered
H

2

6

While deploying a new Web Role on Windows Azure i am getting this error: Unable to allocate the required address spaces for the deployment in a new or predefined subnet that is contained within the specified virtual network. I have searched for a solution, but didn't find one. Does any one have an idea?

My cscfg file looks like this:

<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration serviceName="Application.Cloud" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2013-03.2.0">
  <Role name="WebApplication" vmName="vm001">
    <Instances count="1" />
    <ConfigurationSettings>
        ...
    </ConfigurationSettings>
    <Certificates>
      <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="..." thumbprintAlgorithm="sha1" />
    </Certificates>
  </Role>
  <Role name="Application.ServiceOpdrachten" vmName="vm002">
    <Instances count="1" />
    <ConfigurationSettings>
      ...
    </ConfigurationSettings>
    <Certificates>
      <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint=".." thumbprintAlgorithm="sha1" />
    </Certificates>
  </Role>
  <NetworkConfiguration>
    <VirtualNetworkSite name="VirtualNetwork" />
    <!-- The virtual network name must match the name of the vvirtual network configured in your subscription. -->
    <AddressAssignments>
      <!-- You must map each role in your cloud service to a subnet or a collection of subnets which were defined in your network.-->
      <InstanceAddress roleName="WebApplication">
        <Subnets>
          <Subnet name="Subnet-1" />
        </Subnets>
      </InstanceAddress>
    </AddressAssignments>
  </NetworkConfiguration>
</ServiceConfiguration>

In the same cloudproject i have another instance that deploys fine.

<?xml version="1.0" encoding="utf-8"?>
<ServiceConfiguration serviceName="Ecare.Acasa.Cloud" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2013-03.2.0">
  <Role name="WebApplication">
    <Instances count="1" />
    <ConfigurationSettings>
      ...
    </ConfigurationSettings>
    <Certificates>
      <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="..." thumbprintAlgorithm="sha1" />
    </Certificates>
  </Role>
  <Role name="Ecare.Acasa.ServiceOpdrachten">
    <Instances count="1" />
    <ConfigurationSettings>
      ...
    </ConfigurationSettings>
    <Certificates>
      <Certificate name="Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption" thumbprint="..." thumbprintAlgorithm="sha1" />
    </Certificates>
  </Role>
  <NetworkConfiguration>
    <VirtualNetworkSite name="Ecare" />
    <!-- The virtual network name must match the name of the vvirtual network configured in your subscription. -->
    <AddressAssignments>
      <!-- You must map each role in your cloud service to a subnet or a collection of subnets which were defined in your network.-->
      <InstanceAddress roleName="WebApplication">
        <Subnets>
          <Subnet name="Subnet-1" />
        </Subnets>
      </InstanceAddress>
    </AddressAssignments>
  </NetworkConfiguration>
</ServiceConfiguration>
Halyard answered 17/5, 2013 at 7:42 Comment(9)
Just opening a bounty won't help you much. Provide as much information about your deployment as possible. Such as: your .csdef file. Are you using virtual network by mistake or on purpose? do you have any Virtual Machines in the same virtual network? if you use Virtual Network for your Cloud Service deployment, is your cloud service created within the same Affinity Group where the Virtual Network is defined?Inchoative
i have edited it. We need the virtual network.Halyard
Is the cloud service you are trying to deploy in the same affinity group as the Virtual Network? does the Virtual Network have enough free IP Addresses when you try to deploy the faulting Cloud Service package?Inchoative
yes, it is. One cloud service can be deployed, the other not.Halyard
Your samples are providing two totally different Virtual Networks! One is VirtualNetwork, other is ECare. Is this by mistake of posting, or by general mistake that prevents you from deploying to the required network?Inchoative
Both should be VirtualNetwork (i wanted to hide some information)Halyard
Is this an older virtual network? I've read that some people experienced this with pre-existing networks after Microsoft officially released the feature.Neuter
The virtual network is new.Halyard
The solution that seemed to fix it in the cases I found was the same one Vishalgiri suggested anyway. Good luck, hope you can solve your problem.Neuter
C
3

We had the same problem around three months ago. Back then may be after some update, the new IP Addresses were not being assigned, or when role or vm were deleted their IP address were not reusable.

We were not able to take help from Microsoft Support, as it was in Preview.

What worked for us was: We deleted the whole virtual network, and created it again.

If it is possible for you, see if it works.

Coatee answered 30/5, 2013 at 19:8 Comment(1)
I have to take this up with my colleague'sHalyard
E
0

I was facing this issue and found the issue can be fixed. It has been documented here.

Ecbolic answered 2/12, 2015 at 15:17 Comment(1)
Hi, site seems to be down. Any idea what the fix was?Hemorrhoidectomy

© 2022 - 2024 — McMap. All rights reserved.