Thursday, July 24, 2014

Azure - Deleting VNet

Trying to delete a Virtual Network in Azure

Powershell command:
Note this removes all Virtual Networks from your active Azure Subscription
Remove-AzureVNetConfig

But then:
Remove-AzureVNetConfig : BadRequest : Cannot delete or modify virtual network while in use 'xxxxx'.

I do not have Virtual Machines as I removed them all. But then I noticed the VNetwork has a Gateway assigned to it.

So remove the gateway before removing the VNetwork.


Delete the Gateway


By the way, the Powershell command for deleting a VNet Gateway:
Remove-AzureVNetGateway -VNetName "SPAutoVNet"


Push!

This blog just received a serious push into the future. I have been busy for the past 3 or so months with SharePoint 2013 and Azure Cloud Services.


Leaving the old technology behind and going forward, where I have not been yet!


While I believe Cloud technology has a serious place in the future (as it currently does), it has room for improvement.


On this blog I will post about my stumbles and falls with SharePoint 2013 and Azure.


Here we (or I) go!