Changing Bastion Subnet

Randall, David 1 Reputation point
2020-11-05T14:56:14.323+00:00

Hi there,

Changing an existing Bastion subnet doesn't appear to be covered in the documentation.

We have an existing AzureBastionSubnet which someone has created with an incorrect address range.

It says in the subnet configuration: "The subnet's address range in CIDR notation (e.g. 192.168.1.0/24). It must be contained by the address space of the virtual network. The address range of a subnet which is in use can't be edited"

So to change the IP range do I have to delete the existing Bastion Subnet and recreate through a new connection attempt? If I just delete the current Bastion subnet do I need to do any further housekeeping before re-creating, will a new connection attempt just realise it isn't defined any more?

Anybody have any experience of this?

Thanks in advance.

David

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
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,427 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,231 Reputation points
    2020-11-06T21:05:44.177+00:00

    @Randall, David

    In order to change the subnet of the Bastion, you have to create a new VNET/subnet and create a new Bastion using that new subnet. You can then delete the old Bastion subnet and or vnet depending upon your setup. If you have any further questions, please let us know. Thank you!

    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.