This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"servicename": { | |
"type": "String", | |
"defaultValue": "YOUR_SERVICENAME" | |
}, | |
"connectionstring": { | |
"type": "String" | |
}, | |
"branch": { | |
"type": "String", | |
"defaultValue": "master" | |
}, | |
"repoURL": { | |
"type": "string", | |
"defaultValue": "YOUR_REPO" | |
} | |
}, | |
"variables": {}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Web/serverfarms", | |
"apiVersion": "2018-02-01", | |
"name": "[parameters('servicename')]", | |
"location": "West Europe", | |
"tags": { | |
"owner": "YOUR_EMAIL", | |
"confidentiality": "internal" | |
}, | |
"sku": { | |
"name": "B1", | |
"tier": "Basic", | |
"size": "B1", | |
"family": "B", | |
"capacity": 1 | |
}, | |
"kind": "linux", | |
"properties": { | |
"perSiteScaling": false, | |
"maximumElasticWorkerCount": 1, | |
"isSpot": false, | |
"reserved": true, | |
"isXenon": false, | |
"hyperV": false, | |
"targetWorkerCount": 0, | |
"targetWorkerSizeId": 0 | |
} | |
}, | |
{ | |
"type": "Microsoft.Web/sites", | |
"apiVersion": "2018-11-01", | |
"name": "[parameters('servicename')]", | |
"location": "West Europe", | |
"kind": "app,linux", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/serverfarms', parameters('servicename'))]" | |
], | |
"properties": { | |
"enabled": true, | |
"hostNameSslStates": [ | |
{ | |
"name": "[concat(parameters('servicename'), '.azurewebsites.net')]", | |
"sslState": "Disabled", | |
"hostType": "Standard" | |
}, | |
{ | |
"name": "[concat(parameters('servicename'), '.scm.azurewebsites.net')]", | |
"sslState": "Disabled", | |
"hostType": "Repository" | |
} | |
], | |
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('servicename'))]", | |
"reserved": true, | |
"isXenon": false, | |
"hyperV": false, | |
"siteConfig": {}, | |
"scmSiteAlsoStopped": false, | |
"clientAffinityEnabled": true, | |
"clientCertEnabled": false, | |
"hostNamesDisabled": false, | |
"containerSize": 0, | |
"dailyMemoryTimeQuota": 0, | |
"httpsOnly": false, | |
"redundancyMode": "None" | |
}, | |
"resources": [ | |
{ | |
"type": "sourcecontrols", | |
"apiVersion": "2018-02-01", | |
"name": "web", | |
"location": "West Europe", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/sites', parameters('servicename'))]" | |
], | |
"properties": { | |
"repoUrl": "[parameters('repoURL')]", | |
"branch": "[parameters('branch')]", | |
"isManualIntegration": true | |
} | |
}, | |
{ | |
"apiVersion": "2018-02-01", | |
"type": "config", | |
"name": "connectionstrings", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/sites', parameters('servicename'))]" | |
], | |
"properties": { | |
"AppConfigConnString": { | |
"value": "[parameters('connectionstring')]", | |
"type": "Custom" | |
} | |
} | |
} | |
] | |
}, | |
{ | |
"type": "Microsoft.Web/sites/config", | |
"apiVersion": "2018-11-01", | |
"name": "[concat(parameters('servicename'), '/web')]", | |
"location": "West Europe", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/sites', parameters('servicename'))]" | |
], | |
"properties": { | |
"numberOfWorkers": 1, | |
"defaultDocuments": [ | |
"index.html" | |
], | |
"netFrameworkVersion": "v4.0", | |
"linuxFxVersion": "NODE|14-lts", | |
"requestTracingEnabled": false, | |
"remoteDebuggingEnabled": false, | |
"remoteDebuggingVersion": "VS2019", | |
"httpLoggingEnabled": true, | |
"logsDirectorySizeLimit": 35, | |
"detailedErrorLoggingEnabled": false, | |
"azureStorageAccounts": {}, | |
"scmType": "GitHub", | |
"use32BitWorkerProcess": true, | |
"webSocketsEnabled": false, | |
"alwaysOn": false, | |
"managedPipelineMode": "Integrated", | |
"virtualApplications": [ | |
{ | |
"virtualPath": "/", | |
"physicalPath": "site\\wwwroot", | |
"preloadEnabled": false | |
} | |
], | |
"loadBalancing": "LeastRequests", | |
"experiments": { | |
"rampUpRules": [] | |
}, | |
"autoHealEnabled": false, | |
"localMySqlEnabled": false, | |
"ipSecurityRestrictions": [ | |
{ | |
"ipAddress": "Any", | |
"action": "Allow", | |
"priority": 1, | |
"name": "Allow all", | |
"description": "Allow all access" | |
} | |
], | |
"scmIpSecurityRestrictions": [ | |
{ | |
"ipAddress": "Any", | |
"action": "Allow", | |
"priority": 1, | |
"name": "Allow all", | |
"description": "Allow all access" | |
} | |
], | |
"scmIpSecurityRestrictionsUseMain": false, | |
"http20Enabled": true, | |
"minTlsVersion": "1.2", | |
"ftpsState": "Disabled", | |
"reservedInstanceCount": 0 | |
} | |
}, | |
{ | |
"type": "Microsoft.Web/sites/hostNameBindings", | |
"apiVersion": "2018-11-01", | |
"name": "[concat(parameters('servicename'), '/', parameters('servicename'), '.azurewebsites.net')]", | |
"location": "West Europe", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/sites', parameters('servicename'))]" | |
], | |
"properties": { | |
"siteName": "[parameters('servicename')]", | |
"hostNameType": "Verified" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment