Skip to content

Instantly share code, notes, and snippets.

@iamthemovie
Created October 19, 2016 10:43
Show Gist options
  • Save iamthemovie/0a9963b5813654b1accbcf9f8dcf7b56 to your computer and use it in GitHub Desktop.
Save iamthemovie/0a9963b5813654b1accbcf9f8dcf7b56 to your computer and use it in GitHub Desktop.
Deploy SSL Binding to Hostname Azure Web App
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webapp_name": {
"type": "string",
"metadata": {
"description": "Existing App name to use for creating SSL binding. This App should have the hostname assigned as a custom domain"
}
},
"hostname": {
"type": "string",
"metadata": {
"description": "Custom hostname for creating SSL binding. This hostname should already be assigned to the Web App"
}
},
"location": {
"type": "string",
"metadata": {
"description": "App location"
}
},
"certificate_thumbprint": {
"type": "string",
"metadata": {
"description": "SSL Certificate Thumb Print"
}
}
},
"resources": [
{
"type": "Microsoft.Web/sites",
"name": "[parameters('webapp_name')]",
"apiVersion": "2016-03-01",
"location": "[parameters('location')]",
"properties": {
"name": "[parameters('webapp_name')]",
"hostNameSslStates": [
{
"name": "[parameters('hostname')]",
"sslState": "SniEnabled",
"thumbprint": "[parameters('certificate_thumbprint')]",
"toUpdate": true
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment