Created
April 6, 2018 15:01
-
-
Save alexdrenea/c5cb4f7b4d579342fe54538d5b3ff4d5 to your computer and use it in GitHub Desktop.
simple WebApp ARM template
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/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"app_name": { | |
"type": "String" | |
}, | |
"config_web_name": { | |
"defaultValue": "web", | |
"type": "String" | |
}, | |
}, | |
"variables": | |
{ | |
"appserviceplan_name": "[concat(parameters('app_name'),'-ASP')]", | |
"hostNameBindings": "[concat(parameters('app_name'),'.azurewebsites.net')]" | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Web/serverfarms", | |
"sku": { | |
"name": "F1", | |
"tier": "Free", | |
"size": "F1", | |
"family": "F", | |
"capacity": 0 | |
}, | |
"kind": "app", | |
"name": "[variables('appserviceplan_name')]", | |
"apiVersion": "2016-09-01", | |
"location": "East US 2", | |
"scale": null, | |
"properties": { | |
"name": "[variables('appserviceplan_name')]", | |
"workerTierName": null, | |
"adminSiteName": null, | |
"hostingEnvironmentProfile": null, | |
"perSiteScaling": false, | |
"reserved": false, | |
"targetWorkerCount": 0, | |
"targetWorkerSizeId": 0 | |
}, | |
"dependsOn": [] | |
}, | |
{ | |
"type": "Microsoft.Web/sites", | |
"kind": "app", | |
"name": "[parameters('app_name')]", | |
"apiVersion": "2016-08-01", | |
"location": "East US 2", | |
"tags": { | |
"project": "web", | |
"environment": "dev" | |
}, | |
"scale": null, | |
"properties": { | |
"enabled": true, | |
"hostNameSslStates": [ | |
{ | |
"name": "[concat(parameters('app_name'),'.azurewebsites.net')]", | |
"sslState": "Disabled", | |
"virtualIP": null, | |
"thumbprint": null, | |
"toUpdate": null, | |
"hostType": "Standard" | |
}, | |
{ | |
"name": "[concat(parameters('app_name'),'.scm.azurewebsites.net')]", | |
"sslState": "Disabled", | |
"virtualIP": null, | |
"thumbprint": null, | |
"toUpdate": null, | |
"hostType": "Repository" | |
} | |
], | |
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('appserviceplan_name'))]", | |
"reserved": false, | |
"siteConfig": null, | |
"scmSiteAlsoStopped": false, | |
"hostingEnvironmentProfile": null, | |
"clientAffinityEnabled": true, | |
"clientCertEnabled": false, | |
"hostNamesDisabled": false, | |
"containerSize": 0, | |
"dailyMemoryTimeQuota": 0, | |
"cloningInfo": null | |
}, | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/serverfarms', variables('appserviceplan_name'))]" | |
] | |
}, | |
{ | |
"comments": "Generalized from resource: '/subscriptions/970c70b1-7feb-40db-8efe-3a1100c161e2/resourceGroups/alberto-test/providers/Microsoft.Web/sites/dw3x-1144/config/web'.", | |
"type": "Microsoft.Web/sites/config", | |
"name": "[concat(parameters('app_name'), '/', parameters('config_web_name'))]", | |
"apiVersion": "2016-08-01", | |
"location": "East US 2", | |
"tags": { | |
"project": "web", | |
"environment": "dev" | |
}, | |
"scale": null, | |
"properties": { | |
"numberOfWorkers": 1, | |
"defaultDocuments": [ | |
"Default.htm", | |
"Default.html", | |
"Default.asp", | |
"index.htm", | |
"index.html", | |
"iisstart.htm", | |
"default.aspx", | |
"index.php", | |
"hostingstart.html" | |
], | |
"netFrameworkVersion": "v4.0", | |
"phpVersion": "5.6", | |
"pythonVersion": "", | |
"nodeVersion": "", | |
"linuxFxVersion": "", | |
"requestTracingEnabled": false, | |
"remoteDebuggingEnabled": false, | |
"remoteDebuggingVersion": null, | |
"httpLoggingEnabled": false, | |
"logsDirectorySizeLimit": 35, | |
"detailedErrorLoggingEnabled": false, | |
"publishingUsername": "[parameters('app_name')]", | |
"publishingPassword": null, | |
"appSettings": null, | |
"metadata": null, | |
"connectionStrings": null, | |
"machineKey": null, | |
"handlerMappings": null, | |
"documentRoot": null, | |
"scmType": "None", | |
"use32BitWorkerProcess": true, | |
"webSocketsEnabled": false, | |
"alwaysOn": false, | |
"javaVersion": null, | |
"javaContainer": null, | |
"javaContainerVersion": null, | |
"appCommandLine": "", | |
"managedPipelineMode": "Integrated", | |
"virtualApplications": [ | |
{ | |
"virtualPath": "/", | |
"physicalPath": "site\\wwwroot", | |
"preloadEnabled": false, | |
"virtualDirectories": null | |
} | |
], | |
"winAuthAdminState": 0, | |
"winAuthTenantState": 0, | |
"customAppPoolIdentityAdminState": false, | |
"customAppPoolIdentityTenantState": false, | |
"runtimeADUser": null, | |
"runtimeADUserPassword": null, | |
"loadBalancing": "LeastRequests", | |
"routingRules": [], | |
"experiments": { | |
"rampUpRules": [] | |
}, | |
"limits": null, | |
"autoHealEnabled": false, | |
"autoHealRules": null, | |
"tracingOptions": null, | |
"vnetName": "", | |
"siteAuthEnabled": false, | |
"siteAuthSettings": { | |
"enabled": null, | |
"unauthenticatedClientAction": null, | |
"tokenStoreEnabled": null, | |
"allowedExternalRedirectUrls": null, | |
"defaultProvider": null, | |
"clientId": null, | |
"clientSecret": null, | |
"issuer": null, | |
"allowedAudiences": null, | |
"additionalLoginParams": null, | |
"isAadAutoProvisioned": false, | |
"googleClientId": null, | |
"googleClientSecret": null, | |
"googleOAuthScopes": null, | |
"facebookAppId": null, | |
"facebookAppSecret": null, | |
"facebookOAuthScopes": null, | |
"twitterConsumerKey": null, | |
"twitterConsumerSecret": null, | |
"microsoftAccountClientId": null, | |
"microsoftAccountClientSecret": null, | |
"microsoftAccountOAuthScopes": null | |
}, | |
"cors": null, | |
"push": null, | |
"apiDefinition": null, | |
"autoSwapSlotName": null, | |
"localMySqlEnabled": false, | |
"managedServiceIdentityId": null, | |
"ipSecurityRestrictions": null, | |
"http20Enabled": false, | |
"minTlsVersion": "1.0" | |
}, | |
"dependsOn": [ | |
"[resourceId('Microsoft.Web/sites', parameters('app_name'))]" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment