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.

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