Skip to content
Discussion options

You must be logged in to vote

In case this helps here is a sample VNET and also VNET Peering template.

https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/VNET.bicep
https://github.com/brwilkinson/AzureDeploymentFramework/blob/main/ADF/bicep/VNET-Peering.bicep

If I look in the second file for the Peering I see.

resource VNETPeering 'Microsoft.Network/virtualNetworks/virtualNetworkPeerings@2017-10-01' = {
  name: peeringName
  parent: VNETHUB

Notice since I am using the parent, which references the VNET, I only need to provide the single segment for the peering name.

If I look at your sample:

resource vnetPeering_FooToBar 'Microsoft.Network/virtualNetworks/virtualNetworkPeerings@2020-11-01' = {
…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
5 replies
@jhoneill
Comment options

@brwilkinson
Comment options

@brwilkinson
Comment options

@jhoneill
Comment options

@brwilkinson
Comment options

Answer selected by jhoneill
Comment options

You must be logged in to vote
8 replies
@brwilkinson
Comment options

@jhoneill
Comment options

@brwilkinson
Comment options

@jhoneill
Comment options

@brwilkinson
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants