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, 2022 in Azure by Edureka
• 11,450 points
1,247 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, 2022 by Edureka
• 12,880 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, 2022 in Azure by Edureka
• 11,450 points
107 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, 2022 in Azure by Edureka
• 11,450 points
180 views
0 votes
1 answer

Can I create virtual machine without virtual network in Azure Resource Manager?

A VNet is used to provide the ...READ MORE

answered Mar 4, 2022 in Azure by Edureka
• 12,880 points
593 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP