Dissociate a public IP address from an Azure VM

In this article, you learn how to dissociate a public IP address from an Azure virtual machine (VM). Removing the public IP address of your VM removes access to the Internet.

You can use the Azure portal, the Azure CLI, or Azure PowerShell to dissociate a public IP address from a VM.

Prerequisites

  • An Azure account with an active subscription. Create an account for free.
  • A virtual machine with a public IP address associated to it.

Dissociate a public IP address from a VM

In this step, you dissociate a public IP address from a virtual machine using the Azure portal, Azure CLI, or Azure PowerShell. The IP address is associated to an IP configuration of a network interface attached to the VM.

  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.

    Screenshot of the Overview page of a virtual machine showing of the public IP.

  4. In the public IP address page, select Overview, and then select Dissociate.

  5. In Dissociate public IP address, select Yes.

    Screenshot of the Overview page of a public IP address resource showing how to dissociate it from the network interface of a virtual machine.

Next steps

In this article, you learned how to dissociate a public IP address from a virtual machine.