Azure Bastion maintaining a static public IP

Jevon Davis 141 Reputation points
2021-09-30T16:43:40.857+00:00

I have setup Azure Bastion on one of the VMs and currently troubleshooting. Due to the nature of tasks I do I am often asked to provide the IP in which I will sending traffic from in order to be whitelisted. I am aware Bastion does not need a public IP and I have since removed it but is there a way to maintain one while browsing the web on the VM etc? This is to facilitate having a static public IP vs of it changing each time the VM is restarted.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,873 questions
Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
262 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alan Kinane 16,906 Reputation points MVP
    2021-09-30T18:02:03.13+00:00

    If you create a static public IP address and assign it to the NiC of the virtual machine then this will be your IP address even when using Azure Bastion. As long as you set the IP address to static it will not change when the VM is restarted.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.