Working With Azure Bastion (Preview) Service

Introduction to Azure Bastion service

 
Azure Bastion Service is in the Preview mode. It only supports to Azure Public preview. In this feature, we can access our Azure Virtual Machine through the internet browser and we never consider our Public IP address.
 
Step 1
 
Log into your Azure Public Preview portal here. The portal is of orange colour. Open your “Cloud Shell” and select “PowerShell”.
 
Now, we need to register the Bastion Host feature so enter the following command to register the Bastion Host.
 
“Register-AzureRmProviderFeature -FeatureName AllowBastionHost -ProviderNamespace Microsoft.Network”
 
Azure Bastion (Preview) Service
 
Step 2
 
Now, we need to register the Azure Bastion feature to our subscription to the Microsoft.Network so enter the following command to register this service.
 
“Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Network”
 
Note
Azure Bastion Feature is supported only in the following regions - West US, East US, North Europe, and West Europe.
 
Azure Bastion (Preview) Service
 
Step 3
 
Now, we need to allow the Bastion feature to our subscription so let us enter the following command to register it.
 
“Get-AzureRmProviderFeature -ProviderNamespace Microsoft.Network”
 
Azure Bastion (Preview) Service
 
Step 4
 
Click the “+ Create a Resource” and search “Bastion”. It is available in the Marketplace, so click “Bastion (Preview)”.
 
Azure Bastion (Preview) Service
 
Step 5
 
Now, we are ready to deploy the “Bastion (Preview)”. Click the “Create” button to start the deployment.
 
Azure Bastion (Preview) Service
 
Step 6
 
In the Instance Details, we can enter the name for our Bastion. Here, we need to create a Virtual Network. Click “Create new”.
 
Azure Bastion (Preview) Service
 
Step 7
 
The Address Space is already configured so I want to configure SubNet. My SubNet name is “AzureBatstionSubnet” and the range is “10.1.10.0/24”. Finally, click “OK”.
 
Azure Bastion (Preview) Service
 
Step 8
 
Now that we have successfully configured the Virtual Network, we can create the Bastion service. Click the “Review+Create” button to deploy the Bastion service.
 
Azure Bastion (Preview) Service
 
Step 9
 
Let us check the Bastion Network, i.e., “MyBastion” under the Virtual Networks.
 
Azure Bastion (Preview) Service
 
Step 10
 
We can access our server using the “Bastion” service now. Under our Virtual Machines, the “TechNetViki” server is running in the East US region, so I can access the Virtual Machine through “Bastion” service.
 
Azure Bastion (Preview) Service
 
Step 11
 
Open the “TechNetViki” virtual machine and click “Connect”.
In the "Connect to Virtual Machine" wizard, we can select “Bastion” and enter the Username and Password.
Make sure you need to open the virtual machine in the “New Tab”.
Now, click “Connect”.
 
Azure Bastion (Preview) Service
 
Step 12
 
The first time, the pop-up is blocked. So, let us click the notification and select "Allow" >> “Done”. Now again, click “Connect”.
 
Azure Bastion (Preview) Service
 
Step 13
 
Yes, now we can successfully access our server on the internet browser.
 
Azure Bastion (Preview) Service
 

Summary

 
In this article, we learned how to access our Azure Virtual Machine on the internet browser using Azure Bastion (Preview) feature. Make sure of the Region and change the Virtual Network to “Bastion” and try it.


Similar Articles
IFS R&D International (Private) Limited
IFS is a global enterprise software vendor providing solutions that help companies get better return