TL;DR
- VM's "Availability options" should be "No infrastructure redundancy required". Or will meet error:
Failed to update network interface 'something'. Error: Compute resource /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Compute/virtualMachines/xxx has a zone constraint 1 but the PublicIPAddress /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/publicIPAddresses/xxx-ip used by the compute resource via NetworkInterface or LoadBalancer has a different zone constraint Regional.
Here is a post that talks about this error
- Disassociate the old IP from VM and delete it.
- Create a new IP in the same resource group and the same Region as the old IP was by selecting:
- "Basic" for SKU
- "Dynamic" for IP address assignment
WARNING: On 30 September 2025, Azure Basic (SKU) Public IP will be retired.
- Associate new IP to Network Interface by editing IP configuration (usually the name is "ipconfig1")
Next time you create a VM, create a Basic SKU Dynamic IP directly by click "Create new" in Network interface section: