You cannot rename a Virtual Network after creation. You must create a new Virtual Network and reassign the resources to it.
-------------------------
If this is helpful please accept answer.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi
Is there a way to rename the Virtual Network?
Thanks for help in advance.
Radek
You cannot rename a Virtual Network after creation. You must create a new Virtual Network and reassign the resources to it.
-------------------------
If this is helpful please accept answer.
@Mrskos, Radek out of my curiosity... why are you performing this action via a script?
Did you try selecting all the Azure resources –> Click on the More option –> Select Move option –> Then choose Move to another resource group option.
?
Hello Nico
I did not know, now I know thanks. But at least I know how to do it now with powershell.
I could move almost everything, except the Virtual Network, is there a reason why it can not be moved?
@Mrskos, Radek
is there any resource still attached to the VNET (if you take a look at the source RG)?
can you please try moving the VNET (from the source RG to the destination one) using the way I showed in my previous comment?
Yes, the Peering. Because the checks are done per VNET, Azure can not move VNET after VNET, so I have deleted the Peering between the two VNETs. Now I could move it to the new RG.