Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Cannot delete or modify subnet while in use

$
0
0

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


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>