Configuring Bastion

Configure Bastion and connect to a Windows VM through a browser

Search for Bastion and click on add new

You would need a subnet named “AzureBastionSubnet” minimum of /27

you can see as soon as I selected the Vnet, I got an error stating the same.
Create a new subnet in the same wizard
Select the newly created subnet and assign a public IP address

Connecting from Bastion

Navigate to the virtual machine that you want to connect to, then select Connect. Select Bastion from the dropdown and enter the credentials

Successfully connected to the vm from Bastion

If you get an error stating couldn’t connect to the VM

Check if any NSG is blocking the communication