How to disable the Azure Bastion for Virtual Machine in Azure cloud

0 votes
In the Azure portal, I'm utilising a Virtual Machine. I connected the VM using RDP over there. Now, when I look at my credits, I see that $19 has been spent and that Azure Bastion is being used.

Following that, I performed some research and discovered how to remove all Azure Bastion resources using Azure PowerShell. I removed all Azure Bastion instances and verified the list using the command az network bastion network, and it was empty.

After a day, I connected to the VM again through RDP, and when I checked the utilised information today, it had climbed by $4.

My issue is, why is this occurring after I destroyed all bastion resources in Azure Portal, and how can I entirely stop it since I don't want to be paid again?
Mar 29 in Azure by Edureka
• 5,460 points
89 views

1 answer to this question.

0 votes

Please use the below command to check all the azure bastion hosts.

az network bastion list

If any bastion hosts are present, you can delete them using below command :

az network bastion delete --name MyBastionHost --resource-group MyResourceGroup

After deleting your bastion host, make sure to delete your public IP created for bastion host.

Please use the below command to delete public IP :

az network public-ip delete -g MyResourceGroup -n MyIp

For more details please refer to the below document for the pricing of Bastion :

https://azure.microsoft.com/en-us/pricing/details/azure-bastion/

answered Mar 29 by Edureka
• 5,760 points

Related Questions In Azure

0 votes
1 answer

How to get the percentage of the predicted labels in Azure Custom Vision?

It's calculated in the same way, except ...READ MORE

answered Mar 26 in Azure by Edureka
• 5,460 points
30 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Azure Pricing Calculator for Hours in Cloud Service

The best method to understand Cloud Service ...READ MORE

answered Mar 29 in Azure by Edureka
• 5,460 points
29 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP