|
1 | 1 | {
|
2 |
| - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", |
| 2 | + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", |
3 | 3 | "contentVersion": "1.0.0.0",
|
4 | 4 | "parameters": {
|
5 | 5 | "groupName": {
|
|
59 | 59 | }
|
60 | 60 | },
|
61 | 61 | "variables": {
|
62 |
| - "appServicePlanName": "[parameters('appServicePlanName')]", |
63 | 62 | "resourcesLocation": "[if(empty(parameters('appServicePlanLocation')), parameters('groupLocation'), parameters('appServicePlanLocation'))]",
|
64 |
| - "appServiceName": "[parameters('appServiceName')]", |
65 | 63 | "resourceGroupId": "[concat(subscription().id, '/resourceGroups/', parameters('groupName'))]"
|
66 | 64 | },
|
67 | 65 | "resources": [
|
|
83 | 81 | "properties": {
|
84 | 82 | "mode": "Incremental",
|
85 | 83 | "template": {
|
86 |
| - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", |
| 84 | + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", |
87 | 85 | "contentVersion": "1.0.0.0",
|
88 | 86 | "parameters": {},
|
89 | 87 | "variables": {},
|
90 | 88 | "resources": [
|
91 | 89 | {
|
92 | 90 | "comments": "Create a new App Service Plan",
|
93 | 91 | "type": "Microsoft.Web/serverfarms",
|
94 |
| - "name": "[variables('appServicePlanName')]", |
| 92 | + "name": "[parameters('appServicePlanName')]", |
95 | 93 | "apiVersion": "2018-02-01",
|
96 | 94 | "location": "[variables('resourcesLocation')]",
|
97 | 95 | "sku": "[parameters('appServicePlanSku')]",
|
|
110 | 108 | {
|
111 | 109 | "comments": "Create a Web App using the new App Service Plan",
|
112 | 110 | "type": "Microsoft.Web/sites",
|
113 |
| - "apiVersion": "2015-08-01", |
| 111 | + "apiVersion": "2018-11-01", |
114 | 112 | "location": "[variables('resourcesLocation')]",
|
115 | 113 | "kind": "app,linux",
|
116 | 114 | "dependsOn": [
|
117 |
| - "[concat(variables('resourceGroupId'), '/providers/Microsoft.Web/serverfarms/', variables('appServicePlanName'))]" |
| 115 | + "[concat(variables('resourceGroupId'), '/providers/Microsoft.Web/serverfarms/', parameters('appServicePlanName'))]" |
118 | 116 | ],
|
119 |
| - "name": "[variables('appServiceName')]", |
| 117 | + "name": "[parameters('appServiceName')]", |
120 | 118 | "properties": {
|
121 |
| - "name": "[variables('appServiceName')]", |
| 119 | + "name": "[parameters('appServiceName')]", |
122 | 120 | "hostNameSslStates": [
|
123 | 121 | {
|
124 | 122 | "name": "[concat(parameters('appServiceName'), '.azurewebsites.net')]",
|
|
131 | 129 | "hostType": "Repository"
|
132 | 130 | }
|
133 | 131 | ],
|
134 |
| - "serverFarmId": "[variables('appServicePlanName')]", |
| 132 | + "serverFarmId": "[parameters('appServicePlanName')]", |
135 | 133 | "reserved": true,
|
136 | 134 | "isXenon": false,
|
137 | 135 | "hyperV": false,
|
|
163 | 161 | "https://botservice.hosting.portal.azure.net",
|
164 | 162 | "https://hosting.onecloud.azure-test.net/"
|
165 | 163 | ]
|
166 |
| - }, |
167 |
| - "webSocketsEnabled": true |
| 164 | + } |
168 | 165 | }
|
169 | 166 | }
|
170 | 167 | },
|
171 | 168 | {
|
172 | 169 | "type": "Microsoft.Web/sites/config",
|
173 |
| - "apiVersion": "2016-08-01", |
| 170 | + "apiVersion": "2018-11-01", |
174 | 171 | "name": "[concat(parameters('appServiceName'), '/web')]",
|
175 | 172 | "location": "[variables('resourcesLocation')]",
|
176 | 173 | "dependsOn": [
|
|
0 commit comments