Azure bastion

SunderSwaminathanYadav-1041 0 Reputation points
2025-05-12T09:22:12.97+00:00

Azure bastion I was deleted but it was still charging without reason why its happening this was wrong I need help please

Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
{count} votes

2 answers

Sort by: Most helpful
  1. Shikha Ghildiyal 6,715 Reputation points Microsoft Employee Moderator
    2025-05-12T09:46:24.6166667+00:00

    Hi SunderSwaminathanYadav-1041

    Thanks for reaching out to Microsoft Q&A.

    Kindly check if associated resources such as public ip, virtual network, or diagnostic settings is still active. You need to delete all these associated resources otherwise you will be charged

    Run below command to check list of all azure bastion host machines in a RG and verify nothing exists

    az network bastion list -g MyResourceGroup

    If you still see issues, kindly raise support ticket - https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  2. Sindhuja Dasari 1,520 Reputation points Microsoft External Staff Moderator
    2025-05-12T10:17:36.62+00:00

    Hello SunderSwaminathanYadav-1041

    Adding further info to the answer provided by Shikha Ghildiyal.

    It sounds frustrating to be charged for Azure Bastion even after deleting it! The issue might be that Azure Bastion continues to reserve resources like computing power and a public IP address, even after the virtual machine is removed. To completely stop charges, you need to delete the Bastion resource itself, not just the VM.

    Here’s what you can do:

    1. Check if Bastion is still active in your Azure portal.
    2. Delete the Bastion resource manually.
    3. Remove any associated public IP addresses to prevent further charges.
    4. If you’re still being charged, review your cost analysis in Azure to see if any lingering resources are causing the issue. Bastion starts charging when the resource gets created. To stop the charge, you will need to delete the resource. Besides the normal hourly pricing based on SKU and instances (scale units), data transfer rates are also charged. You can use Azure Portal/PowerShell/CLI to delete the Bastion resource.

    Troubleshooting steps:
    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
    
    

    Refer: https://learn.microsoft.com/en-us/powershell/module/az.network/remove-azbastion?view=azps-9.1.0

    https://learn.microsoft.com/en-us/cli/azure/network/bastion?view=azure-cli-latest#az_network_bastion_delete

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


    Please don’t forget to close the thread by clicking "Accept the answer" and "Yes" wherever the information provided helps you, as this can be beneficial to other community members.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.