Azure / AzLoadBalancerMigration

This repo contains a PowerShell module to support Azure Load Balancer migration from Basic to Standard SKU
MIT License
10 stars 9 forks source link

VMSSes with PublicIpAddressConfigurations cannot be migrated #11

Closed mbrat2005 closed 1 year ago

mbrat2005 commented 1 year ago

VMSSes with PublicIpAddressConfigurations added to the network profile cannot be migrated because assigned public IP address SKUs must match the load balancer and therefore will be 'basic'. With these basic IPs assigned to the VMSS instance, migration to a Standard SKU LB will fail.

Different basic sku and standard sku load balancer or public Ip resources in VMSS is not allowed

Workaround:

  1. Remove the PublicIpAddressConfiguration prior to initiating migration
  2. Add the PublicIpAddressConfiguration back to the VMSS post migration

Recommend extending the module to make Public IP Configuration possible through automation. The public IP configu would need to be removed from the VMSS, the LB migrated, then the public IP configuration added back. This would likely cause the IP addresses to change.

mbrat2005 commented 1 year ago

SKU is set on creation:

"code": "SkuCannotBeUpdatedOnVMSSPublicIpAddresses",
"message": "Sku property for public IP addresses on VMSS is set at creation time and cannot be changed from Basic to Standard."