You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

208 lines
8.0 KiB

  1. {
  2. "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  3. "contentVersion": "1.0.0.0",
  4. "parameters": {
  5. "SitesEshopfunctionsName": {
  6. "type": "string",
  7. "metadata": {
  8. "description": "Name of the Azure Functions namespace"
  9. },
  10. "defaultValue": "mktfunctionsdemo"
  11. }
  12. },
  13. "variables": {
  14. "SitesEshopfunctionsName": "[parameters('SitesEshopfunctionsName')]",
  15. "WebConfigName": "[concat(variables('SitesEshopfunctionsName'), '/web')]",
  16. "Location": "[resourceGroup().location]",
  17. "ServerFarmPlan": "[concat(trim(variables('location')), 'Plan')]",
  18. "StorageAccounts": "[concat(variables('SitesEshopfunctionsName'), 'st')]"
  19. },
  20. "resources": [
  21. {
  22. "type": "Microsoft.Storage/storageAccounts",
  23. "sku": {
  24. "name": "Standard_LRS",
  25. "tier": "Standard"
  26. },
  27. "kind": "Storage",
  28. "name": "[variables('StorageAccounts')]",
  29. "apiVersion": "2016-01-01",
  30. "location": "[variables('Location')]",
  31. "tags": {},
  32. "scale": null,
  33. "properties": {},
  34. "dependsOn": []
  35. },
  36. {
  37. "type": "Microsoft.Web/serverfarms",
  38. "sku": {
  39. "name": "Y1",
  40. "tier": "Dynamic",
  41. "size": "Y1",
  42. "family": "Y",
  43. "capacity": 0
  44. },
  45. "kind": "functionapp",
  46. "name": "[variables('ServerFarmPlan')]",
  47. "apiVersion": "2015-08-01",
  48. "location": "[variables('Location')]",
  49. "scale": null,
  50. "properties": {
  51. "name": "[variables('ServerFarmPlan')]",
  52. "numberOfWorkers": 0
  53. },
  54. "dependsOn": []
  55. },
  56. {
  57. "type": "Microsoft.Web/sites",
  58. "kind": "functionapp",
  59. "name": "[variables('SitesEshopfunctionsName')]",
  60. "apiVersion": "2015-08-01",
  61. "location": "[variables('Location')]",
  62. "scale": null,
  63. "properties": {
  64. "name": "[variables('SitesEshopfunctionsName')]",
  65. "hostNames": [
  66. "[concat(variables('SitesEshopfunctionsName'),'.azurewebsites.net')]"
  67. ],
  68. "enabledHostNames": [
  69. "[concat(variables('SitesEshopfunctionsName'),'.azurewebsites.net')]",
  70. "[concat(variables('SitesEshopfunctionsName'),'.scm.azurewebsites.net')]"
  71. ],
  72. "hostNameSslStates": [
  73. {
  74. "name": "[concat(variables('SitesEshopfunctionsName'),'.azurewebsites.net')]",
  75. "sslState": 0,
  76. "thumbprint": null,
  77. "ipBasedSslState": 0
  78. },
  79. {
  80. "name": "[concat(variables('SitesEshopfunctionsName'),'.scm.azurewebsites.net')]",
  81. "sslState": 0,
  82. "thumbprint": null,
  83. "ipBasedSslState": 0
  84. }
  85. ],
  86. "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('ServerFarmPlan'))]"
  87. },
  88. "dependsOn": [
  89. "[resourceId('Microsoft.Web/serverfarms', variables('ServerFarmPlan'))]"
  90. ]
  91. },
  92. {
  93. "type": "Microsoft.Web/sites/config",
  94. "name": "[variables('WebConfigName')]",
  95. "apiVersion": "2015-08-01",
  96. "location": "[variables('Location')]",
  97. "scale": null,
  98. "properties": {
  99. "numberOfWorkers": 1,
  100. "defaultDocuments": [
  101. "Default.htm",
  102. "Default.html",
  103. "Default.asp",
  104. "index.htm",
  105. "index.html",
  106. "iisstart.htm",
  107. "default.aspx",
  108. "index.php",
  109. "hostingstart.html"
  110. ],
  111. "netFrameworkVersion": "v4.0",
  112. "phpVersion": "5.6",
  113. "pythonVersion": "",
  114. "nodeVersion": "",
  115. "linuxFxVersion": "",
  116. "requestTracingEnabled": false,
  117. "remoteDebuggingEnabled": false,
  118. "remoteDebuggingVersion": null,
  119. "httpLoggingEnabled": false,
  120. "logsDirectorySizeLimit": 35,
  121. "detailedErrorLoggingEnabled": false,
  122. "publishingUsername": "$eshopfunctions",
  123. "publishingPassword": null,
  124. "appSettings": null,
  125. "metadata": null,
  126. "connectionStrings": null,
  127. "machineKey": null,
  128. "handlerMappings": null,
  129. "documentRoot": null,
  130. "scmType": "None",
  131. "use32BitWorkerProcess": true,
  132. "webSocketsEnabled": false,
  133. "alwaysOn": false,
  134. "javaVersion": null,
  135. "javaContainer": null,
  136. "javaContainerVersion": null,
  137. "appCommandLine": "",
  138. "managedPipelineMode": 0,
  139. "virtualApplications": [
  140. {
  141. "virtualPath": "/",
  142. "physicalPath": "site\\wwwroot",
  143. "preloadEnabled": false,
  144. "virtualDirectories": null
  145. }
  146. ],
  147. "winAuthAdminState": 0,
  148. "winAuthTenantState": 0,
  149. "customAppPoolIdentityAdminState": false,
  150. "customAppPoolIdentityTenantState": false,
  151. "runtimeADUser": null,
  152. "runtimeADUserPassword": null,
  153. "loadBalancing": 1,
  154. "routingRules": [],
  155. "experiments": {
  156. "rampUpRules": []
  157. },
  158. "limits": null,
  159. "autoHealEnabled": false,
  160. "autoHealRules": {
  161. "triggers": null,
  162. "actions": null
  163. },
  164. "tracingOptions": null,
  165. "vnetName": "",
  166. "siteAuthEnabled": false,
  167. "siteAuthSettings": {
  168. "enabled": null,
  169. "unauthenticatedClientAction": null,
  170. "tokenStoreEnabled": null,
  171. "allowedExternalRedirectUrls": null,
  172. "defaultProvider": null,
  173. "clientId": null,
  174. "clientSecret": null,
  175. "issuer": null,
  176. "allowedAudiences": null,
  177. "additionalLoginParams": null,
  178. "isAadAutoProvisioned": false,
  179. "googleClientId": null,
  180. "googleClientSecret": null,
  181. "googleOAuthScopes": null,
  182. "facebookAppId": null,
  183. "facebookAppSecret": null,
  184. "facebookOAuthScopes": null,
  185. "twitterConsumerKey": null,
  186. "twitterConsumerSecret": null,
  187. "microsoftAccountClientId": null,
  188. "microsoftAccountClientSecret": null,
  189. "microsoftAccountOAuthScopes": null
  190. },
  191. "cors": {
  192. "allowedOrigins": [
  193. "https://functions.azure.com",
  194. "https://functions-staging.azure.com",
  195. "https://functions-next.azure.com"
  196. ]
  197. },
  198. "push": null,
  199. "apiDefinition": null,
  200. "autoSwapSlotName": null,
  201. "localMySqlEnabled": false,
  202. "ipSecurityRestrictions": null
  203. },
  204. "dependsOn": [
  205. "[resourceId('Microsoft.Web/sites', variables('SitesEshopfunctionsName'))]"
  206. ]
  207. }
  208. ]
  209. }