/
azuredeploy.json
38 lines (38 loc) · 1.53 KB
/
azuredeploy.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"exisitngWebAppName": {
"type": "string",
"metadata": {
"description": "The name of the web app that would use this public certificate. The web app should belong to a dedicated App Service Plan."
}
},
"publicCertificateLocation": {
"type": "string",
"allowedValues": ["CurrentUserMy", "LocalMachineMy"],
"metadata": {
"description": "Location where you wish to install the public certificate. 'LocalMachineMy' is supported in App Service Environment only."
}
},
"blob": {
"type": "string",
"metadata": {
"description": "Base 64 encoded public certificate file. 'azuredeploy.parameters.json' file contains an example of this parameter."
}
}
},
"variables": {
"publicCertificateName": "[concat(parameters('exisitngWebAppName'), '-publiccert')]"
},
"resources": [{
"apiVersion": "2016-03-01",
"name":"[concat(parameters('exisitngWebAppName'), '/', variables('publicCertificateName'))]",
"type": "Microsoft.Web/sites/publicCertificates",
"location": "[resourceGroup().location]",
"properties": {
"publicCertificateLocation": "[parameters('publicCertificateLocation')]",
"blob": "[parameters('blob')]"
}
}]
}