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
• 12,690 points
3,521 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/

Hope this helps!

Check out the Azure certification to become certified.

Thanks!

answered Mar 29, 2022 by Edureka
• 13,620 points

edited Jun 27, 2023 by Khan Sarfaraz

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
• 12,690 points
504 views
0 votes
1 answer

How to create a service connection for Azure in Azure Devops (with pictures)

to create a service connection for Azure ...READ MORE

answered Mar 29, 2022 in Azure by Edureka
• 12,690 points

edited Jul 4, 2023 by Khan Sarfaraz 8,917 views
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
• 12,690 points
785 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
• 13,620 points
2,190 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