Delete Bastion from azure message - is in preview and under development

Dustin Kehrli 1 Reputation point
2021-12-01T18:04:54.383+00:00

Trying to delete Azure Bastion, however I am getting this error:

Command group 'network bastion' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus

I am running this from the cloud shell.

Trying to delete the Azure Bastion so we are no longer charged for this service that we no longer need.

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.
262 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 49,591 Reputation points Microsoft Employee
    2021-12-02T14:16:46.82+00:00

    Hello @Dustin Kehrli ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    "*Command group 'network bastion' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus*" is just a warning from Azure CLI and should not affect the successful execution of the actual command.
    These warnings are common in Azure CLI and often gets fixed in the future releases.
    Reference : https://developercommunity.visualstudio.com/t/issue-upgrading-azure-cli-from-2240-to-2242-on-dev/1440938
    https://video2.skills-academy.com/en-us/answers/questions/256174/index.html

    Please let the command run successfully and then confirm the deletion by checking the Azure Bastion in your resource group/subscription.
    You can use the "az network bastion list" command to list the bastion hosts in a resource group/subscription.
    Refer : https://video2.skills-academy.com/en-us/cli/azure/network/bastion?view=azure-cli-latest#az_network_bastion_list

    I tried the same in lab and can confirm that the Azure Bastion resource was deleted successfully despite the Azure CLI warning. The command kept running for about 5 minutes and did not give any output regarding the deletion but it worked:

    154496-image.png

    154439-image.png

    NOTE : The command will delete the Bastion host but the associated Public IP will not be deleted along with it. If you do not want to keep the created Public IP, you need to delete that IP separately.

    Kindly let us know if the above helps or you need further assistance on this issue.

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

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.