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!
Changing Bastion Subnet
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