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.
Azure Bastion maintaining a static public IP
Jevon Davis
141
Reputation points
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.