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:
Remove the PublicIpAddressConfiguration prior to initiating migration
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.
"code": "SkuCannotBeUpdatedOnVMSSPublicIpAddresses",
"message": "Sku property for public IP addresses on VMSS is set at creation time and cannot be changed from Basic to Standard."
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:
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.