49 строки
1.3 KiB
JSON
49 строки
1.3 KiB
JSON
{
|
|
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
|
"contentVersion": "1.0.0.0",
|
|
"parameters": {
|
|
"location": {
|
|
"type": "string"
|
|
},
|
|
"adpublicIPAddressName": {
|
|
"type": "string"
|
|
},
|
|
"sqlpublicIPAddressName": {
|
|
"type": "string"
|
|
},
|
|
"publicIPAddressType": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"resources": [
|
|
{
|
|
"apiVersion": "2015-06-15",
|
|
"type": "Microsoft.Network/publicIPAddresses",
|
|
"name": "[parameters('adpublicIPAddressName')]",
|
|
"location": "[parameters('location')]",
|
|
"properties": {
|
|
"publicIPAllocationMethod": "[parameters('publicIPAddressType')]"
|
|
}
|
|
},
|
|
{
|
|
"apiVersion": "2015-06-15",
|
|
"type": "Microsoft.Network/publicIPAddresses",
|
|
"name": "[parameters('sqlpublicIPAddressName')]",
|
|
"location": "[parameters('location')]",
|
|
"properties": {
|
|
"publicIPAllocationMethod": "[parameters('publicIPAddressType')]"
|
|
}
|
|
}
|
|
],
|
|
"outputs": {
|
|
"adPublicIpResourceId": {
|
|
"type": "string",
|
|
"value": "[resourceId('Microsoft.Network/publicIPAddresses',parameters('adpublicIPAddressName'))]"
|
|
},
|
|
"sqlPublicIpResourceId": {
|
|
"type": "string",
|
|
"value": "[resourceId('Microsoft.Network/publicIPAddresses',parameters('sqlpublicIPAddressName'))]"
|
|
}
|
|
}
|
|
}
|