Skip to content

Commit 57fc3df

Browse files
jjaviercv-msftjianghaolu
authored andcommitted
Add ExpressRoute gateway resource (#3776)
* Initial version * Refactor connections. * Update API version * Add enum values. * Addressed all comments.
1 parent 3b1d5ec commit 57fc3df

15 files changed

+1037
-56
lines changed

specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringCreate.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
"state": "Enabled",
3434
"vlanId": 200,
3535
"gatewayManagerEtag": "",
36-
"lastModifiedBy": "Customer"
36+
"lastModifiedBy": "Customer",
37+
"expressRouteConnection": {
38+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName"
39+
}
3740
}
3841
}
3942
},
@@ -54,7 +57,8 @@
5457
"state": "Enabled",
5558
"vlanId": 200,
5659
"gatewayManagerEtag": "",
57-
"lastModifiedBy": "Customer"
60+
"lastModifiedBy": "Customer",
61+
"expressRouteConnection": ""
5862
}
5963
}
6064
}
Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
{
2-
"parameters": {
3-
"circuitName": "circuitName",
4-
"resourceGroupName": "rg1",
5-
"api-version": "2018-08-01",
6-
"subscriptionId": "subid",
7-
"peeringName": "MicrosoftPeering"
8-
},
9-
"responses": {
10-
"200": {
11-
"name": "MicrosoftPeering",
12-
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering",
13-
"etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"",
14-
"properties": {
15-
"provisioningState": "Succeeded",
16-
"peeringType": "MicrosoftPeering",
17-
"azureASN": 12076,
18-
"peerASN": 100,
19-
"primaryPeerAddressPrefix": "123.0.0.0/30",
20-
"secondaryPeerAddressPrefix": "123.0.0.4/30",
21-
"primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A",
22-
"secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A",
23-
"state": "Enabled",
24-
"vlanId": 300,
25-
"gatewayManagerEtag": "103",
26-
"lastModifiedBy": "Customer",
27-
"microsoftPeeringConfig": {
28-
"advertisedPublicPrefixes": [
29-
"123.1.0.0/24"
30-
],
31-
"advertisedCommunities": [],
32-
"advertisedPublicPrefixesState": "ValidationNeeded",
33-
"customerASN": 23,
34-
"legacyMode": 0,
35-
"routingRegistryName": "ARIN"
36-
},
37-
"ipv6PeeringConfig": {
38-
"primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126",
39-
"secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126",
40-
"state": "Enabled",
41-
"microsoftPeeringConfig": {
42-
"advertisedPublicPrefixes": [
43-
"3FFE:FFFF:0:CD31::/120"
44-
],
45-
"advertisedCommunities": [],
46-
"advertisedPublicPrefixesState": "ValidationNeeded",
47-
"customerASN": 23,
48-
"legacyMode": 0,
49-
"routingRegistryName": "ARIN"
50-
}
2+
"parameters": {
3+
"circuitName": "circuitName",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2018-08-01",
6+
"subscriptionId": "subid",
7+
"peeringName": "MicrosoftPeering"
8+
},
9+
"responses": {
10+
"200": {
11+
"name": "MicrosoftPeering",
12+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/MicrosoftPeering",
13+
"etag": "W/\"b2a25b98-2e6d-4d46-87f2-089de5f6fdf9\"",
14+
"properties": {
15+
"provisioningState": "Succeeded",
16+
"peeringType": "MicrosoftPeering",
17+
"azureASN": 12076,
18+
"peerASN": 100,
19+
"primaryPeerAddressPrefix": "123.0.0.0/30",
20+
"secondaryPeerAddressPrefix": "123.0.0.4/30",
21+
"primaryAzurePort": "A51-TEST-06GMR-CIS-1-PRI-A",
22+
"secondaryAzurePort": "A51-TEST-06GMR-CIS-2-SEC-A",
23+
"state": "Enabled",
24+
"vlanId": 300,
25+
"gatewayManagerEtag": "103",
26+
"lastModifiedBy": "Customer",
27+
"microsoftPeeringConfig": {
28+
"advertisedPublicPrefixes": [
29+
"123.1.0.0/24"
30+
],
31+
"advertisedCommunities": [],
32+
"advertisedPublicPrefixesState": "ValidationNeeded",
33+
"customerASN": 23,
34+
"legacyMode": 0,
35+
"routingRegistryName": "ARIN"
36+
},
37+
"ipv6PeeringConfig": {
38+
"primaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::/126",
39+
"secondaryPeerAddressPrefix": "3FFE:FFFF:0:CD30::4/126",
40+
"state": "Enabled",
41+
"microsoftPeeringConfig": {
42+
"advertisedPublicPrefixes": [
43+
"3FFE:FFFF:0:CD31::/120"
44+
],
45+
"advertisedCommunities": [],
46+
"advertisedPublicPrefixesState": "ValidationNeeded",
47+
"customerASN": 23,
48+
"legacyMode": 0,
49+
"routingRegistryName": "ARIN"
50+
}
51+
}
5152
}
52-
}
53-
}
54-
}
53+
}
54+
}
5555
}

specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/examples/ExpressRouteCircuitPeeringList.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
"legacyMode": 0,
5050
"routingRegistryName": "ARIN"
5151
}
52-
}
52+
},
53+
"expressRouteConnection": ""
5354
}
5455
},
5556
{
@@ -68,7 +69,10 @@
6869
"state": "Enabled",
6970
"vlanId": 200,
7071
"gatewayManagerEtag": "103",
71-
"lastModifiedBy": "Customer"
72+
"lastModifiedBy": "Customer",
73+
"expressRouteConnection": {
74+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName"
75+
}
7276
}
7377
}
7478
]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"parameters": {
3+
"expressRouteGatewayName": "expressRouteGatewayName",
4+
"resourceGroupName": "resourceGroupName",
5+
"api-version": "2018-08-01",
6+
"subscriptionId": "subid",
7+
"connectionName": "connectionName",
8+
"putExpressRouteConnectionParameters": {
9+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName",
10+
"name": "connectionName",
11+
"properties": {
12+
"routingWeight": 2,
13+
"authorizationKey": "authorizationKey",
14+
"expressRouteCircuitPeering": {
15+
"id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering"
16+
}
17+
}
18+
}
19+
},
20+
"responses": {
21+
"200": {
22+
"body": {
23+
"name": "connectionName",
24+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName",
25+
"properties": {
26+
"provisioningState": "Provisioned",
27+
"expressRouteCircuitPeering": {
28+
"id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering"
29+
},
30+
"authorizationKey": "authorizationKey",
31+
"routingWeight": 2
32+
}
33+
}
34+
},
35+
"201": {
36+
"body": {
37+
"name": "connectionName",
38+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName",
39+
"properties": {
40+
"provisioningState": "Provisioned",
41+
"expressRouteCircuitPeering": {
42+
"id": "/subscriptions/subid2/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering"
43+
},
44+
"authorizationKey": "authorizationKey",
45+
"routingWeight": 2
46+
}
47+
}
48+
}
49+
}
50+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"expressRouteGatewayName": "expressRouteGatewayName",
4+
"resourceGroupName": "resourceGroupName",
5+
"connectionName": "connectionName",
6+
"api-version": "2018-08-01",
7+
"subscriptionId": "subid"
8+
},
9+
"responses": {
10+
"202": {},
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"expressRouteGatewayName": "expressRouteGatewayName",
4+
"resourceGroupName": "resourceGroupName",
5+
"api-version": "2018-08-01",
6+
"subscriptionId": "subid",
7+
"connectionName": "connectionName"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"name": "connectionName",
13+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName",
14+
"properties": {
15+
"provisioningState": "Provisioned",
16+
"expressRouteCircuitPeering": {
17+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering"
18+
},
19+
"authorizationKey": "authorizationKey",
20+
"routingWeight": 1
21+
}
22+
}
23+
}
24+
}
25+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-08-01",
4+
"resourceGroupName": "resourceGroupName",
5+
"expressRouteGatewayName": "expressRouteGatewayName",
6+
"subscriptionId": "subid"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"name": "connectionName",
14+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName/expressRouteConnections/connectionName",
15+
"properties": {
16+
"provisioningState": "Provisioned",
17+
"expressRouteCircuitPeering": {
18+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering"
19+
},
20+
"authorizationKey": "authorizationKey",
21+
"routingWeight": 1
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"parameters": {
3+
"expressRouteGatewayName": "gateway-2",
4+
"subscriptionId": "subid",
5+
"resourceGroupName": "resourceGroupName",
6+
"api-version": "2018-08-01",
7+
"putExpressRouteGatewayParameters": {
8+
"name": "gateway-2",
9+
"type": "Microsoft.Network/expressRouteGateways",
10+
"location": "westus",
11+
"properties": {
12+
"virtualHub": {
13+
"id": "/subscriptions/subid/resourceGroups/resourceGroupId/providers/Microsoft.Network/virtualHubs/virtualHubName"
14+
},
15+
"autoScaleConfiguration": {
16+
"bounds": {
17+
"min": 3
18+
}
19+
}
20+
}
21+
}
22+
},
23+
"responses": {
24+
"201": {
25+
"body": {
26+
"name": "gateway-2",
27+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2",
28+
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
29+
"location": "westus",
30+
"type": "Microsoft.Network/expressRouteGateways",
31+
"properties": {
32+
"provisioningState": "Succeeded",
33+
"virtualHub": {
34+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName"
35+
},
36+
"autoScaleConfiguration": {
37+
"bounds": {
38+
"min": 3
39+
}
40+
}
41+
}
42+
}
43+
},
44+
"200": {
45+
"body": {
46+
"name": "gateway-2",
47+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2",
48+
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
49+
"location": "westus",
50+
"type": "Microsoft.Network/expressRouteGateways",
51+
"properties": {
52+
"provisioningState": "Succeeded",
53+
"virtualHub": {
54+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName"
55+
},
56+
"autoScaleConfiguration": {
57+
"bounds": {
58+
"min": 3
59+
}
60+
}
61+
}
62+
}
63+
}
64+
}
65+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"expressRouteGatewayName": "expressRouteGatewayName",
4+
"resourceGroupName": "resourceGroupName",
5+
"api-version": "2018-08-01",
6+
"subscriptionId": "subid"
7+
},
8+
"responses": {
9+
"202": {},
10+
"200": {},
11+
"204": {}
12+
}
13+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"expressRouteGatewayName": "expressRouteGatewayName",
4+
"resourceGroupName": "resourceGroupName",
5+
"api-version": "2018-08-01",
6+
"subscriptionId": "subid"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "expressRouteGatewayName",
12+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/expressRouteGatewayName",
13+
"etag": "w/\\00000000-0000-0000-0000-000000000000\\",
14+
"location": "westus",
15+
"type": "Microsoft.Network/expressRouteGateways",
16+
"properties": {
17+
"provisioningState": "Succeeded",
18+
"virtualHub": {
19+
"id": "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/virtualHubs/virtualHubName"
20+
}
21+
}
22+
}
23+
},
24+
"404": {}
25+
}
26+
}

0 commit comments

Comments
 (0)