Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"peeringSyncLevel": "FullyInSync",
"provisioningState": "Succeeded"
}
}
Expand All @@ -61,11 +67,17 @@
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"peeringSyncLevel": "FullyInSync",
"provisioningState": "Succeeded"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"peeringSyncLevel": "FullyInSync",
"provisioningState": "Succeeded"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,17 @@
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"peeringSyncLevel": "FullyInSync",
"provisioningState": "Succeeded"
}
},
Expand All @@ -49,11 +55,17 @@
"13.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"13.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20003",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"peeringSyncLevel": "FullyInSync",
"provisioningState": "Succeeded"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"parameters": {
"virtualNetworkPeeringName": "peer",
"virtualNetworkName": "vnet1",
"resourceGroupName": "peerTest",
"api-version": "2021-01-01",
"subscriptionId": "subid",
"VirtualNetworkPeeringParameters": {
"properties": {
"allowVirtualNetworkAccess": true,
"allowForwardedTraffic": true,
"allowGatewayTransit": false,
"useRemoteGateways": false,
"remoteVirtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer",
"name": "peer",
"properties": {
"allowVirtualNetworkAccess": true,
"allowForwardedTraffic": true,
"allowGatewayTransit": false,
"useRemoteGateways": false,
"remoteVirtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2"
},
"remoteAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"peeringSyncLevel": "FullyInSync",
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet1/virtualNetworkPeerings/peer",
"name": "peer",
"properties": {
"allowVirtualNetworkAccess": true,
"allowForwardedTraffic": true,
"allowGatewayTransit": false,
"useRemoteGateways": false,
"remoteVirtualNetwork": {
"id": "/subscriptions/subid/resourceGroups/peerTest/providers/Microsoft.Network/virtualNetworks/vnet2"
},
"remoteAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteVirtualNetworkAddressSpace": {
"addressPrefixes": [
"12.0.0.0/8"
]
},
"remoteBgpCommunities": {
"virtualNetworkCommunity": "12076:20002",
"regionalCommunity": "12076:50004"
},
"peeringState": "Initiated",
"peeringSyncLevel": "FullyInSync",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,13 @@
},
"description": "Parameters supplied to the create or update virtual network peering operation."
},
{
"name": "syncRemoteAddressSpace",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide an example with this parameter in use.

"in": "query",
"required": false,
"type": "string",
"description": "Parameter indicates the intention to sync the peering with the current address space on the remote vNet after it's updated."
},
{
"$ref": "./network.json#/parameters/ApiVersionParameter"
},
Expand Down Expand Up @@ -1068,6 +1075,9 @@
"x-ms-examples": {
"Create peering": {
"$ref": "./examples/VirtualNetworkPeeringCreate.json"
},
"Sync Peering": {
"$ref": "./examples/VirtualNetworkPeeringSync.json"
}
},
"x-ms-long-running-operation": true,
Expand Down Expand Up @@ -1550,7 +1560,11 @@
},
"remoteAddressSpace": {
"$ref": "#/definitions/AddressSpace",
"description": "The reference to the remote virtual network address space."
"description": "The reference to the address space peered with the remote virtual network."
},
"remoteVirtualNetworkAddressSpace": {
"$ref": "#/definitions/AddressSpace",
"description": "The reference to the current address space of the remote virtual network."
},
"remoteBgpCommunities": {
"$ref": "#/definitions/VirtualNetworkBgpCommunities",
Expand All @@ -1570,6 +1584,20 @@
"modelAsString": true
}
},
"peeringSyncLevel": {
"type": "string",
"description": "The peering sync status of the virtual network peering.",
"enum": [
"FullyInSync",
"RemoteNotInSync",
"LocalNotInSync",
"LocalAndRemoteNotInSync"
],
"x-ms-enum": {
"name": "VirtualNetworkPeeringLevel",
"modelAsString": true
}
},
"provisioningState": {
"readOnly": true,
"$ref": "./network.json#/definitions/ProvisioningState",
Expand Down