Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalmohit/606762241132c33d9880d41697b0374b to your computer and use it in GitHub Desktop.
Save goyalmohit/606762241132c33d9880d41697b0374b to your computer and use it in GitHub Desktop.
// Adds Web Site
{
"name": "[variables('webAppNameVar')]",
"type": "Microsoft.Web/sites",
"location": "[resourceGroup().location]",
"apiVersion": "2015-08-01",
"kind": "apiApp",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('appHostingPlanName'))]"
],
"properties": {
"name": "[variables('webAppNameVar')]",
"serverFarmId": "[variables('appHostingPlanIdVar')]",
"siteConfig": {
"AlwaysOn": true,
"apiDefinition": {
"url": "[concat('https://', reference(concat('Microsoft.Web/sites/', variables('webAppNameVar'))).defaultHostName, '/swagger/docs/v1')]"
},
"cors": {
"allowedOrigins": [
"*"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment