We are trying to remove an Address Space and subnet which are not in use by the VMs. (we have previously moved them all to a new address space and subnet in the same VNET). But when we try to do the remove operation with the set-azurevmconfig command, an error message is saying this:
VERBOSE: 15:56:00 - Begin Operation: Set-AzureVNetConfig
set-AzureVNetConfig : BadRequest : Cannot delete or modify subnet while in use 'Subnet-1'.
At line:1 char:1
+ set-AzureVNetConfig -ConfigurationPath "C:\temp\MyAzureNetworks.netcfg"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzureVNetConfig], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.SetAzureVNetConfigCommand
VERBOSE: 15:56:33 - Completed Operation: Set-AzureVNetConfig
We have tried this operation in another Azure subscrition and it is working ok...
We want to avoid recreating the machines in another network.
Please help!
williamg