Skip to content

Commit e2c3ec3

Browse files
khannarheamssergey-shandar
authored andcommitted
Add new Nat Gateway resource (#5579)
* Add new Nat Gateway resource * Update API version * Update PR comments * Update nat gateway * Fix json errors * Updated nat gateway * Update Nat Gateway examples name * Update Examples with 202 * Need to update with latest master since network.csproj is failing on azure-powershell * azure firewall revert alert * Update NatGateway * Update nat gateway tags * Remove basic sku since it is not supported
1 parent 4870323 commit e2c3ec3

File tree

9 files changed

+759
-0
lines changed

9 files changed

+759
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"parameters":{
3+
"api-version":"2019-02-01",
4+
"subscriptionId":"subid",
5+
"resourceGroupName":"rg1",
6+
"natGatewayName":"test-natgateway",
7+
"parameters":{
8+
"properties":{
9+
"publicIpAddresses":[
10+
{
11+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
12+
}
13+
],
14+
"publicIpPrefixes":[
15+
{
16+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
17+
}
18+
],
19+
"subnets":[
20+
{
21+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
22+
}
23+
]
24+
}
25+
}
26+
},
27+
"responses":{
28+
"200":{
29+
"body":{
30+
"name":"test-natGateway",
31+
"sku":{
32+
"name":"Standard"
33+
},
34+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway",
35+
"location":"westus",
36+
"properties":{
37+
"idleTimeoutInMinutes":5,
38+
"provisioningState":"Succeeded",
39+
"publicIpAddresses":[
40+
{
41+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
42+
}
43+
],
44+
"publicIpPrefixes":[
45+
{
46+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
47+
}
48+
],
49+
"subnets":[
50+
{
51+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
52+
}
53+
]
54+
},
55+
"type":"Microsoft.Network/natGateways"
56+
}
57+
},
58+
"202" : { },
59+
"201":{
60+
"body":{
61+
"name":"test-natGateway",
62+
"sku":{
63+
"name":"Standard"
64+
},
65+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway",
66+
"location":"westus",
67+
"properties":{
68+
"idleTimeoutInMinutes":5,
69+
"provisioningState":"Succeeded",
70+
"publicIpAddresses":[
71+
{
72+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
73+
}
74+
],
75+
"publicIpPrefixes":[
76+
{
77+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
78+
}
79+
],
80+
"subnets":[
81+
{
82+
"id":"/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
83+
}
84+
]
85+
},
86+
"type":"Microsoft.Network/natGateways"
87+
}
88+
}
89+
}
90+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters" : {
3+
"api-version": "2019-02-01",
4+
"subscriptionId" : "subid",
5+
"resourceGroupName": "rg1",
6+
"natGatewayName": "test-natGateway"
7+
},
8+
"responses" : {
9+
"200" : { },
10+
"202" : { },
11+
"204" : { }
12+
}
13+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters" : {
3+
"api-version": "2019-02-01",
4+
"subscriptionId" : "subid",
5+
"resourceGroupName": "rg1",
6+
"natGatewayName": "test-natGateway"
7+
},
8+
"responses" : {
9+
"200" : {
10+
"body" : {
11+
"name" : "test-natGateway",
12+
"sku": {
13+
"name": "Standard"
14+
},
15+
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway",
16+
"location" : "westus",
17+
"properties" : {
18+
"idleTimeoutInMinutes" : 5,
19+
"provisioningState": "Succeeded",
20+
"publicIpAddresses": [
21+
{
22+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
23+
}
24+
],
25+
"publicIpPrefixes": [
26+
{
27+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
28+
}
29+
],
30+
"subnets": [
31+
{
32+
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
33+
}
34+
]
35+
},
36+
"type" : "Microsoft.Network/natGateways"
37+
}
38+
}
39+
}
40+
}
41+
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"parameters" : {
3+
"api-version": "2019-02-01",
4+
"subscriptionId" : "subid",
5+
"resourceGroupName" : "rg1"
6+
},
7+
"responses" : {
8+
"200" : {
9+
"body" : {
10+
"value" : [
11+
{
12+
"name" : "test-natGateway",
13+
"sku": {
14+
"name": "Standard"
15+
},
16+
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateway/test-natGateway",
17+
"location" : "westus",
18+
"properties" : {
19+
"idleTimeoutInMinutes" : 5,
20+
"provisioningState": "Succeeded",
21+
"publicIpAddresses": [
22+
{
23+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
24+
}
25+
],
26+
"publicIpPrefixes": [
27+
{
28+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
29+
}
30+
],
31+
"subnets": [
32+
{
33+
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
34+
}
35+
]
36+
},
37+
"type" : "Microsoft.Network/natGateways"
38+
},
39+
{
40+
"name" : "test-natGateway2",
41+
"sku": {
42+
"name": "Standard"
43+
},
44+
"id" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/natGateway/test-natGateway2",
45+
"location" : "westus",
46+
"properties" : {
47+
"idleTimeoutInMinutes" : 5,
48+
"provisioningState": "Succeeded",
49+
"publicIpAddresses": [
50+
{
51+
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
52+
}
53+
],
54+
"publicIpPrefixes": [
55+
{
56+
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
57+
}
58+
],
59+
"subnets": [
60+
{
61+
"id" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
62+
}
63+
]
64+
},
65+
"type" : "Microsoft.Network/natGateways"
66+
}
67+
]
68+
}
69+
}
70+
}
71+
}
72+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"parameters" : {
3+
"api-version": "2019-02-01",
4+
"subscriptionId" : "subid"
5+
},
6+
"responses" : {
7+
"200" : {
8+
"body" : {
9+
"value" : [
10+
{
11+
"name" : "test-natGateway",
12+
"sku": {
13+
"name": "Standard"
14+
},
15+
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway",
16+
"location" : "westus",
17+
"properties" : {
18+
"idleTimeoutInMinutes" : 5,
19+
"provisioningState": "Succeeded",
20+
"publicIpAddresses": [
21+
{
22+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
23+
}
24+
],
25+
"publicIpPrefixes": [
26+
{
27+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
28+
}
29+
],
30+
"subnets": [
31+
{
32+
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
33+
}
34+
]
35+
},
36+
"type" : "Microsoft.Network/natGateways"
37+
},
38+
{
39+
"name" : "test-natGateway2",
40+
"sku": {
41+
"name": "Standard"
42+
},
43+
"id" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/natGatewayes/test-natGateway2",
44+
"location" : "westus",
45+
"properties" : {
46+
"idleTimeoutInMinutes" : 5,
47+
"provisioningState": "Succeeded",
48+
"publicIpAddresses": [
49+
{
50+
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
51+
}
52+
],
53+
"publicIpPrefixes": [
54+
{
55+
"id": "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
56+
}
57+
],
58+
"subnets": [
59+
{
60+
"id" : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
61+
}
62+
]
63+
},
64+
"type" : "Microsoft.Network/natGateways"
65+
}
66+
]
67+
}
68+
}
69+
}
70+
}
71+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"parameters" : {
3+
"api-version": "2019-02-01",
4+
"subscriptionId" : "subid",
5+
"resourceGroupName": "rg1",
6+
"natGatewayName": "test-natGateway",
7+
"parameters": {
8+
"tags": {
9+
"tag1": "value1",
10+
"tag2": "value2"
11+
}
12+
}
13+
},
14+
"responses" : {
15+
"200" : {
16+
"body" : {
17+
"name" : "test-natGateway",
18+
"sku": {
19+
"name": "Standard"
20+
},
21+
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/natGateways/test-natGateway",
22+
"location" : "westus",
23+
"properties" : {
24+
"idleTimeoutInMinutes" : 5,
25+
"provisioningState": "Succeeded",
26+
"publicIpAddresses": [
27+
{
28+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPAddresses/PublicIpAddress1"
29+
}
30+
],
31+
"publicIpPrefixes": [
32+
{
33+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/PublicIpPrefix1"
34+
}
35+
],
36+
"subnets": [
37+
{
38+
"id" : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1"
39+
}
40+
]
41+
},
42+
"tags": {
43+
"tag1": "value1",
44+
"tag2": "value2"
45+
},
46+
"type" : "Microsoft.Network/natGateways"
47+
}
48+
}
49+
}
50+
}

0 commit comments

Comments
 (0)