iTranslated by AI
You No Longer Need Public IPs for Test Azure VMs
TL;DR
- In the past, I used to attach a Public IP to an Azure VM for testing purposes and connect via Remote Desktop.
- Now, it has become possible to connect seamlessly even to an Azure VM that does not have a Public IP address associated with it.
- If this is a concern, it can be controlled using Azure Policy.
Introduction
I noticed recently while setting up an environment for a customer that the method of "setting up a quick test Azure VM and logging in by using a Public IP" has become a thing of the past.
What do I use instead? It's Azure Bastion, of course, but the deployment was so seamless that I didn't even notice it was being created.
Furthermore, what is created here is the free Developer SKU, which is great because it allows you to enhance security for free.
I'm worried about the downsides
In the case of a standard Azure Bastion, you need to create a dedicated subnet called AzureBastionSubnet, but in this case, it is not required.
You might think, "Isn't it basically the same thing if you can connect via Remote Desktop from the internet even though you didn't attach a Public IP address?" However, security is actually higher than connecting directly via a Public IP.
Authentication when a Public IP address is attached is based solely on the account information of the target Azure VM, but when going through Azure Bastion, an additional layer of access control based on Microsoft Entra ID authentication—or more accurately, Azure RBAC—is added.
In short, it's a very welcome feature: it's free, it eliminates the need for a Public IP (attack surface reduction!), and it adds an extra layer of access control via RBAC.
It's in Microsoft Learn
I believe the relevant section in Microsoft Learn is the following part of Quickstart: Connect to a VM using Azure Bastion Developer: Azure portal | Microsoft Learn.

Bastion Developer automatically deploys to your virtual network at no cost
Image of operation on the Azure portal
As for the actual operational image, first, I prepared an Azure VM without an associated Public IP address as shown below.

overview page for the Azure VM
Next, I moved to the Bastion menu, and even though I hadn't created an Azure Bastion yet, I entered the Username and VM Password and tried to "Connect."

before Azure Bastion is created
Doing this, it seems that an Azure Bastion Developer SKU is automatically created in just a few seconds, allowing me to connect to the target Azure VM without any wait time.
For peace of mind, I checked the Notifications and the log is there, but it happens so quickly that you might miss it if you look away for a moment.

Azure Bastion Developer is automatically deployed
Potential for dislike
Some people might feel that "I don't like it when resources I didn't intend to create are created behind my back."
I think I'll add this later, but in such cases, you can stop this behavior using Azure Policy, so you should define and assign it as needed.
Conclusion
I feel like saying "So what?", but it was a very nice update—which is rare (?) for the Azure portal that often receives complaints—so I wanted to share it.
Of course, there are limitations such as not supporting VNet Peering or native clients (like mstsc), but being able to set up a test environment without a Public IP is a good balance, even setting aside the cost aspect.
Reference
- Quickstart: Connect to a VM using Azure Bastion Developer: Azure portal | Microsoft Learn
Discussion