How to make VM IP to Dynamic

Abdelrahman Zaghloul 5 Reputation points
2023-03-21T14:49:36.16+00:00

Hi

I want to change my VM's IP to me dynamic not static to reduce the cost

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,791 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Sina Salam 10,111 Reputation points
    2023-03-27T22:16:15.7933333+00:00

    @Abdelrahman Zaghloul

    Welcome to Microsoft Q&A and thank you for posting your question here!

    I understand that you would like to delete the static IP Address associated with your VM and start using dynamic IP Address to reduce the cost.

    Try to review what @deherman-MSFT have stated earlier. However, if you do not care about your SKU status, here is a simple workaround.

    You can use Azure Portal, Azure CLI or PowerShell to achieve this, from Azure Portal:

    1. Sign in to the Azure portal.
    2. Browse to, or search for the virtual machine that you want to disassociate the public IP address from and then select it.
    3. In the VM page, select Overview, and then select the public IP address.
    4. In the public IP address page, select Overview, and then select Delete.
    5. In Delete public IP address, select Yes.

    NOTICE AND CRITICAL WARNING:

    Remove the address from any applicable IP configurations (see Delete section) to change assignment for a public IP from static to dynamic. When you change the assignment method from static to dynamic, you lose the IP address that was assigned to the public IP resource. While the Azure public DNS servers maintain a mapping between static or dynamic addresses and any DNS name label (if you defined one), a dynamic IP address can change when the virtual machine is started after being in the stopped (deallocated) state. To prevent the address from changing, assign a static IP address.

    You can read more on Create, change, or delete an Azure public IP address and how to Dissociate a public IP address from an Azure VM instead of deletion.

    Hope this is helpful.

    Kindly let me know if the above helps or you need further assistance or explanation on this issue.

    Best Regards,

    Sina

    0 comments No comments

  2. deherman-MSFT 36,836 Reputation points Microsoft Employee
    2023-04-04T17:38:41.0733333+00:00

    Can you confirm the SKU of the public IP address you are using for your VM? Is this a Basic SKU or Standard SKU? You can confirm by selecting the public IP address from the VM Overview page then selecting Overview for the public IP. If this is a Standard SKU then dynamic IP is not an option. You can review the pricing here, you might find that the Static IP is actually cheaper.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.