i can't able to assosiate the public ip to the vm

Tamil Selvan M 0 Reputation points
2024-04-23T13:32:54.6333333+00:00

i have two vm's one is have have public ip , the vm is createed 3 years before so the vm don't have zone option, when i am trying to move the public ip from there to new vm , it's not allow assosiate.

this is the error

Failed to update network interface Failed to update network interface 'STG-Productiontools-App-nic- f0157e7d4bc34ca686c9d712398656fc'. Error: Compute resource /subscriptions/748d597b-d473-47c4-b207- X d7060e586499/resourceGroups/elastic/providers/Microsoft.Compute/vir... Productiontools-App has a zone constraint 1 but the PublicIPAddress /subscriptions/748d597b-d473-47c4-b207- d7060e586499/resourceGroups/elastic/providers/Microsoft.Network/pu... producti-pip-f7d24e1970f547929faba8045aae468b used by the compute resource via NetworkInterface or LoadBalancer has a different zone constraint Regional.

kindly please give me a solution...

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,156 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dan Rios 1,345 Reputation points MVP
    2024-04-23T14:42:30.2933333+00:00

    Hi,

    On the overview page of the 'new' VM it will say what zone it is in. If your public IP is not zone specific then you may need to create a new public IP and either make it zone-redundant, or deploy to that specific zone that the VM is also deploy into in order to be able to associate it. User's image

    Once the new Public IP is created either as zone-redundant or in the particular zone that the VM is deployed in ( the new one) then you will be able to associate it (providing it's disassociated already).

    See also a similar topic here: https://stackoverflow.com/questions/58189275/failed-to-save-ip-address-changes-for-network-interface

    Any questions please comment and I'll try and help further if you need. If this answers your question then please mark it as accepted to help others.

    Thanks

    0 comments No comments