Is Azure Bastion common across resource groups

Raghava Sai Akula 351 Reputation points
2023-03-17T14:36:16.4333333+00:00

Hi , I have two resource groups(RG1 and RG2 ) and I am using Azure Bastion in RG2 and I don't want to use Azure Bastion in RG1(old Resource group).

Can I delete Azure Bastion from RG1 with out affecting RG2

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.
243 questions
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 23,341 Reputation points Microsoft Employee
    2023-03-17T21:37:13.63+00:00

    @Raghava Sai Akula

    Thank you for reaching out.

    Based on your question above

    Can I delete Azure Bastion from RG1 with out affecting RG2

    Yes, you can delete Azure Bastion in RG1 without affecting RG2 but It will help if you can validate a few things before deleting the resource.

    • Validate that you are able to access all the required VMs via Azure Bastion in RG2.
    • If you are not able to access any required VMs that maybe because your Virtual Networks are not peered. Azure Bastion works over peered virtual networks, so if you establish peering between the Virtual Networks present in RG1 and RG2 you can use one Bastion resource to access all the VMs present in these Virtual Networks. You find more details here.

    You can follow the links below to delete your Bastion resource via CLI / PowerShell

    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

    Hope this helps! Please let me kniw you have any additional questions.


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


0 additional answers

Sort by: Most helpful