/move-vm-to-zone

Move an Azure VM to a specific zone. Based on scripts from https://github.com/Azure/SAP-on-Azure-Scripts-and-Utilities

Primary LanguagePowerShell

Move an Azure VM into a specific zone

The script does not move VM extensions or any identities assigned to the Virtual Machine. Also, the script will not work for VMs with public IP addresses. Remove these upfront manually.

Example:

./move-vm-to-zone.ps1 -SubscriptionName "Michael Mergell - Azure Subscription" -ResourceGroupName "S4H2020" -VirtualMachineName "s4h2020-j2e" -newAvailabilityZoneNumber "1"