Disable Vnet peering

Copper Contributor

Hi,

We have Vnet Peering set up for two Vnets. For the purpose of some testing, we need to disable it. I have set the below settings for both Vnets 

 

Asterixdev_1-1619770922473.png

 

The status of the Peering shows Connected, still. We are able to connect to the resources.

Please let me know if any further changes are required.

Thanks.

 

1 Reply

Hi it's not possible to disable a vnet peering you have to delete the peering if you don't want communication between Vnets .

"Disabling the Allow virtual network access setting only changes the definition of the VirtualNetwork service tag. It doesn't fully prevent traffic flow across the peer connection, as explained in this setting description."
https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-peering