Friday, July 25, 2014

Moving an Azure VM between networks

 

Moving an Azure VM between networks was before, delete, recreate, reattached disk as documented here:

http://blogs.msdn.com/b/walterm/archive/2013/05/29/moving-a-virtual-machine-from-one-virtual-network-to-another.aspx

Which works a charm by the way, however you can now powershell it as documented here:

https://fabriccontroller.net/blog/posts/migrating-your-microsoft-azure-virtual-machine-to-a-different-subnet-with-the-new-powershell-cmdlets/

$context = Get-AzureVM -ServiceName contosomed -Name server01

Set-AzureSubnet -SubnetNames "WFE" -VM $context

Update-AzureVM -ServiceName contosomed -Name server01 -VM $context.VM

No comments:

Blog Archive