forked from PaloAltoNetworks/azure-load-balancer1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublicip-new.json
79 lines (79 loc) · 2.28 KB
/
publicip-new.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
77
78
79
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string"
},
"MgmtPublicIPAddressName": {
"type": "string"
},
"publicIPAddressType": {
"type": "string"
},
"MgmtPublicIPRGName": {
"type": "string"
},
"UntrustPublicIPAddressName": {
"type": "string"
},
"UntrustPublicIP": {
"type": "string"
},
"baseUrl": {
"type": "string"
}
},
"variables": {
"SettingUpPublicIPUrl": "[concat(parameters('baseUrl'),'/publicip-untrust-',parameters('UntrustPublicIP'),'.json')]",
"mgmt": "[concat('mgmtIP-', parameters('MgmtPublicIPAddressName'))]",
"untrust": "[concat('untrustIP-', parameters('UntrustPublicIPAddressName'))]"
},
"resources": [
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('mgmt')]",
"location": "[parameters('location')]",
"properties": {
"publicIPAllocationMethod": "[parameters('publicIPAddressType')]",
"dnsSettings": {
"domainNameLabel": "[parameters('MgmtPublicIPAddressName')]"
}
}
},
{
"name": "[variables('untrust')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2015-01-01",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('SettingUpPublicIPUrl')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[parameters('location')]"
},
"publicIPAddressType": {
"value": "[parameters('publicIPAddressType')]"
},
"UntrustPublicIPAddressName" : {
"value": "[parameters('UntrustPublicIPAddressName')]"
}
}
}
}
],
"outputs": {
"publicIpId": {
"value": "[resourceId(concat('Microsoft.Network','/','publicIPAddresses'),variables('mgmt'))]",
"type": "string"
},
"fqdn": {
"value": "[reference(resourceId('Microsoft.Network/publicIPAddresses',variables('mgmt')),providers('Microsoft.Network', 'publicIPAddresses').apiVersions[0]).dnsSettings.fqdn]",
"type": "string"
}
}
}