A2oz

How Do I Make My Azure Private IP Static?

Published in Azure Networking 2 mins read

You can make your Azure private IP static by using a static private IP address. This is a dedicated IP address that is permanently assigned to a virtual machine (VM) or other Azure resource. This ensures that the IP address remains the same even if the VM is restarted or redeployed.

Here's how to make your Azure private IP static:

1. Create a Static Private IP Address:

  • Go to the Azure portal and navigate to the Virtual Networks section.
  • Select the virtual network that your VM is connected to.
  • Go to IP addresses and click + Add.
  • Choose Static as the Allocation Method.
  • Enter a unique IP address within the subnet range.
  • Save the configuration.

2. Assign the Static IP Address to a VM:

  • Go to the Virtual Machines section in the Azure portal.
  • Select the VM you want to assign the static IP address to.
  • Go to Networking and click Network interfaces.
  • Select the network interface associated with your VM.
  • Under IP configurations, click + Add.
  • Choose the static IP address you created earlier.
  • Save the configuration.

3. Verify the Static IP Address:

  • Go back to the VM overview page.
  • Under Networking, you should see the static IP address assigned to your VM.

4. Additional Considerations:

  • Subnet Range: Ensure that the IP address you choose falls within the range of your subnet.
  • Reserved IP Addresses: Some IP addresses within a subnet are reserved for specific purposes. Avoid using these addresses.
  • IP Address Conflicts: Make sure the IP address is not already assigned to another resource within the same subnet.

By following these steps, you can ensure that your Azure private IP address remains static and consistent.

Related Articles