question

RandallDavid-1912 avatar image
0 Votes"
RandallDavid-1912 asked SaiKishor-MSFT commented

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

azure-virtual-networkazure-bastion
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RandallDavid-1912

Please let us know if you have any further questions/concerns.

Remember:

Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

Want a reminder to come back and check responses? Here is how to subscribe to a notification.


0 Votes 0 ·

1 Answer

SaiKishor-MSFT avatar image
0 Votes"
SaiKishor-MSFT answered

@RandallDavid-1912

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!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.