diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringCreate.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringCreate.json index ad935433c3cf..d68bae9b4f5a 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringCreate.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringCreate.json @@ -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" } } @@ -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" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringGet.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringGet.json index 3b0aff5c4aee..27b13fd5ca68 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringGet.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringGet.json @@ -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" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringList.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringList.json index f5f2d19d15f4..4756d026bc34 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringList.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringList.json @@ -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" } }, @@ -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" } } diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringSync.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringSync.json new file mode 100644 index 000000000000..d68bae9b4f5a --- /dev/null +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/examples/VirtualNetworkPeeringSync.json @@ -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" + } + } + } + } +} diff --git a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/virtualNetwork.json b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/virtualNetwork.json index a0175af34563..23185bf1f9b1 100644 --- a/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/virtualNetwork.json +++ b/specification/network/resource-manager/Microsoft.Network/stable/2021-01-01/virtualNetwork.json @@ -1038,6 +1038,13 @@ }, "description": "Parameters supplied to the create or update virtual network peering operation." }, + { + "name": "syncRemoteAddressSpace", + "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" }, @@ -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, @@ -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", @@ -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",