forked from erjosito/azure-networking-lab
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nic_noNSG_noSLB_PIP_dynamic.json
76 lines (76 loc) · 2.56 KB
/
nic_noNSG_noSLB_PIP_dynamic.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"nicName": {
"defaultValue": "myNic",
"type": "string"
},
"location": {
"defaultValue": "[resourceGroup().location]",
"type": "string"
},
"vnetName": {
"defaultValue": "myVnet",
"type": "string"
},
"subnetName": {
"defaultValue": "serverSubnet",
"type": "string"
},
"pipName": {
"defaultValue": "myPIP",
"type": "string"
}
},
"variables": {
"ipConfigName": "[concat(parameters('nicName'),'-ipConfig')]",
"apiVersion": "2016-03-30"
},
"resources": [
{
"comments": "Public IP address",
"type": "Microsoft.Network/publicIPAddresses",
"name": "[parameters('pipName')]",
"apiVersion": "[variables('apiVersion')]",
"location": "[parameters('location')]",
"properties": {
"publicIPAllocationMethod": "Dynamic",
"idleTimeoutInMinutes": 4
},
"resources": [],
"dependsOn": []
},
{
"comments": "NIC created with dynamic IP addresses",
"type": "Microsoft.Network/networkInterfaces",
"name": "[parameters('nicName')]",
"apiVersion": "[variables('apiVersion')]",
"location": "[parameters('location')]",
"properties": {
"ipConfigurations": [
{
"name": "[variables('ipConfigName')]",
"properties": {
"privateIPAllocationMethod": "dynamic",
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses', parameters('pipName'))]"
},
"subnet": {
"id": "[concat(resourceId('Microsoft.Network/virtualNetworks', parameters('vnetName')), '/subnets/', parameters('subnetName'))]"
}
}
}
],
"dnsSettings": {
"dnsServers": []
},
"enableIPForwarding": false
},
"resources": [],
"dependsOn": [
"[parameters('pipName')]"
]
}
]
}