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.

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