Skip to content

Commit 90a8232

Browse files
Create deploy.json
1 parent 779c35b commit 90a8232

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

deploy.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"webAppName": {
6+
"type": "string",
7+
"metadata": {
8+
"description": "Name of the web app."
9+
}
10+
},
11+
"appServicePlanName": {
12+
"type": "string",
13+
"metadata": {
14+
"description": "Name of the App Service Plan."
15+
}
16+
},
17+
"location": {
18+
"type": "string",
19+
"defaultValue": "[resourceGroup().location]",
20+
"metadata": {
21+
"description": "Location for all resources."
22+
}
23+
}
24+
},
25+
"resources": [
26+
{
27+
"type": "Microsoft.Web/serverfarms",
28+
"apiVersion": "2020-06-01",
29+
"name": "[parameters('appServicePlanName')]",
30+
"location": "[parameters('location')]",
31+
"sku": {
32+
"name": "F1",
33+
"tier": "Free"
34+
},
35+
"properties": {
36+
"targetWorkerCount": 0,
37+
"targetWorkerSizeId": 0
38+
}
39+
},
40+
{
41+
"type": "Microsoft.Web/sites",
42+
"apiVersion": "2020-06-01",
43+
"name": "[parameters('webAppName')]",
44+
"location": "[parameters('location')]",
45+
"dependsOn": [
46+
"[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanName'))]"
47+
],
48+
"properties": {
49+
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('appServicePlanName'))]"
50+
}
51+
}
52+
]
53+
}

0 commit comments

Comments
 (0)