-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VPN NAT for Virtual WAN feature changes (#11815)
* VPN NAT for Virtual WAN feature changes * PrettierCheck fixes * Incorporate review comments and update examples
- Loading branch information
Showing
11 changed files
with
848 additions
and
9 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
.../network/resource-manager/Microsoft.Network/stable/2020-08-01/examples/NatRuleDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"natRuleName": "natRule1", | ||
"gatewayName": "gateway1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-08-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"202": {}, | ||
"204": {} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
...ion/network/resource-manager/Microsoft.Network/stable/2020-08-01/examples/NatRuleGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"parameters": { | ||
"gatewayName": "gateway1", | ||
"natRuleName": "natRule1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-08-01", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "natRule1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/natRules/natRule1", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.4.0.0/24" | ||
} | ||
], | ||
"externalMappings": [], | ||
"egressVpnSiteLinkConnections": [], | ||
"ingressVpnSiteLinkConnections": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
76 changes: 76 additions & 0 deletions
76
...on/network/resource-manager/Microsoft.Network/stable/2020-08-01/examples/NatRuleList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"parameters": { | ||
"gatewayName": "gateway1", | ||
"api-version": "2020-08-01", | ||
"resourceGroupName": "rg1", | ||
"subscriptionId": "subid" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": [ | ||
{ | ||
"name": "natRule1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/natRules/natRule1", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"ipConfigurationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/cloudnet1-VNG/ipConfigurations/default", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.4.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "192.168.21.0/24" | ||
} | ||
], | ||
"egressVpnSiteLinkConnections": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/vpnLinkConnection1" | ||
} | ||
], | ||
"ingressVpnSiteLinkConnections": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/vpnLinkConnection2" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "natRule2", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/natRules/natRule2", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"ipConfigurationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/cloudnet1-VNG1/ipConfigurations/default", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.4.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "192.168.21.0/24" | ||
} | ||
], | ||
"egressVpnSiteLinkConnections": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/vpnLinkConnection1" | ||
} | ||
], | ||
"ingressVpnSiteLinkConnections": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/vpnLinkConnection2" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
94 changes: 94 additions & 0 deletions
94
...ion/network/resource-manager/Microsoft.Network/stable/2020-08-01/examples/NatRulePut.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"parameters": { | ||
"natRuleName": "natRule1", | ||
"gatewayName": "gateway1", | ||
"resourceGroupName": "rg1", | ||
"api-version": "2020-08-01", | ||
"subscriptionId": "subid", | ||
"NatRuleParameters": { | ||
"properties": { | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"ipConfigurationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/cloudnet1-VNG/ipConfigurations/default", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.4.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "192.168.21.0/24" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "natRule1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/natRules/natRule1", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"ipConfigurationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/cloudnet1-VNG/ipConfigurations/default", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.4.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "192.168.21.0/24" | ||
} | ||
], | ||
"egressVpnSiteLinkConnections": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/vpnLinkConnection1" | ||
} | ||
], | ||
"ingressVpnSiteLinkConnections": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/vpnLinkConnection2" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "natRule1", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/natRules/natRule1", | ||
"etag": "w/\\00000000-0000-0000-0000-000000000000\\", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"type": "Static", | ||
"mode": "EgressSnat", | ||
"ipConfigurationId": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworkGateways/cloudnet1-VNG/ipConfigurations/default", | ||
"internalMappings": [ | ||
{ | ||
"addressSpace": "10.4.0.0/24" | ||
} | ||
], | ||
"externalMappings": [ | ||
{ | ||
"addressSpace": "192.168.21.0/24" | ||
} | ||
], | ||
"egressVpnSiteLinkConnections": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/vpnLinkConnection1" | ||
} | ||
], | ||
"ingressVpnSiteLinkConnections": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnGateways/gateway1/vpnConnections/vpnConnection1/vpnLinkConnections/vpnLinkConnection2" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.