-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpublicIp-existing.json
44 lines (44 loc) · 1.52 KB
/
publicIp-existing.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"metadata": {
"description": "Specifies the location of the public IP."
}
},
"publicDnsName": {
"type": "string",
"metadata": {
"description": "Specifies a unique public DNS prefix for the deployment. This will produce a FQDN of the form '<publicDnsName>.<location>.cloudapp.azure.com'. Up to 62 chars, digits or dashes, lowercase, should start with a letter: must conform to '^[a-z][a-z0-9-]{1,61}[a-z0-9]$'."
}
},
"publicIpGroup": {
"type": "string",
"metadata": {
"description": "Specifies the resource group which should contain the public IP."
}
},
"publicIpName": {
"type": "string",
"metadata": {
"description": "Specifies the resource name for the public IP. New IPs will take this name, while references to existing ones should be valid."
}
}
},
"variables": {
"publicIpId": "[resourceId(parameters('publicIpGroup'),concat('Microsoft.Network','/','publicIPAddresses'),parameters('publicIpName'))]"
},
"resources": [],
"outputs": {
"resourceId": {
"type": "string",
"value": "[variables('publicIpId')]"
},
"fqdn": {
"value": "[reference(variables('publicIpId'),providers('Microsoft.Network', 'publicIPAddresses').apiVersions[0]).dnsSettings.fqdn]",
"type": "string"
}
}
}