Disable Vnet peering

%3CLINGO-SUB%20id%3D%22lingo-sub-2309647%22%20slang%3D%22en-US%22%3EDisable%20Vnet%20peering%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2309647%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20have%20Vnet%20Peering%20set%20up%20for%20two%20Vnets.%20For%20the%20purpose%20of%20some%20testing%2C%20we%20need%20to%20disable%20it.%20I%20have%20set%20the%20below%20settings%20for%20both%20Vnets%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Asterixdev_1-1619770922473.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276990i89CCB0CE813F27B1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Asterixdev_1-1619770922473.png%22%20alt%3D%22Asterixdev_1-1619770922473.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20status%20of%20the%20Peering%20shows%20Connected%2C%20still.%20We%20are%20able%20to%20connect%20to%20the%20resources.%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20if%20any%20further%20changes%20are%20required.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2311696%22%20slang%3D%22en-US%22%3ERe%3A%20Disable%20Vnet%20peering%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2311696%22%20slang%3D%22en-US%22%3EHi%20it's%20not%20possible%20to%20disable%20a%20vnet%20peering%20you%20have%20to%20delete%20the%20peering%20if%20you%20don't%20want%20communication%20between%20Vnets%20.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-network-manage-peering%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-network%2Fvirtual-network-manage-peering%3C%2FA%3E%3C%2FLINGO-BODY%3E
New 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