Skip to content

Commit 5c93e3c

Browse files
json version of the tests added
1 parent 5295d75 commit 5c93e3c

File tree

3 files changed

+170
-0
lines changed

3 files changed

+170
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"metadata": {
5+
"_generator": {
6+
"name": "bicep",
7+
"version": "0.36.177.2456",
8+
"templateHash": "7898345690734526102"
9+
}
10+
},
11+
"parameters": {
12+
"siteName": {
13+
"type": "string",
14+
"defaultValue": "myapp-http2"
15+
},
16+
"servicePlanName": {
17+
"type": "string",
18+
"defaultValue": "myapp-plan"
19+
}
20+
},
21+
"resources": [
22+
{
23+
"type": "Microsoft.Web/serverfarms",
24+
"apiVersion": "2022-03-01",
25+
"name": "[parameters('servicePlanName')]",
26+
"location": "[resourceGroup().location]",
27+
"sku": {
28+
"name": "S1",
29+
"tier": "Standard",
30+
"size": "S1",
31+
"capacity": 1
32+
},
33+
"kind": "linux",
34+
"properties": {
35+
"reserved": true
36+
}
37+
},
38+
{
39+
"type": "Microsoft.Web/sites",
40+
"apiVersion": "2022-03-01",
41+
"name": "[parameters('siteName')]",
42+
"location": "[resourceGroup().location]",
43+
"kind": "app,linux,container",
44+
"properties": {
45+
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('servicePlanName'))]",
46+
"clientCertEnabled": false,
47+
"siteConfig": {
48+
"http20Enabled": true,
49+
"linuxFxVersion": "DOCKER|nginx:latest"
50+
}
51+
},
52+
"dependsOn": [
53+
"[resourceId('Microsoft.Web/serverfarms', parameters('servicePlanName'))]"
54+
]
55+
}
56+
]
57+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"metadata": {
5+
"_generator": {
6+
"name": "bicep",
7+
"version": "0.36.177.2456",
8+
"templateHash": "2348461675926151470"
9+
}
10+
},
11+
"parameters": {
12+
"siteName": {
13+
"type": "string",
14+
"defaultValue": "myapp-http2-enabled"
15+
},
16+
"servicePlanName": {
17+
"type": "string",
18+
"defaultValue": "myapp-plan-http2"
19+
}
20+
},
21+
"resources": [
22+
{
23+
"type": "Microsoft.Web/serverfarms",
24+
"apiVersion": "2022-03-01",
25+
"name": "[parameters('servicePlanName')]",
26+
"location": "[resourceGroup().location]",
27+
"sku": {
28+
"name": "S1",
29+
"tier": "Standard",
30+
"size": "S1",
31+
"capacity": 1
32+
},
33+
"kind": "linux",
34+
"properties": {
35+
"reserved": true
36+
}
37+
},
38+
{
39+
"type": "Microsoft.Web/sites",
40+
"apiVersion": "2022-03-01",
41+
"name": "[parameters('siteName')]",
42+
"location": "[resourceGroup().location]",
43+
"kind": "app,linux,container",
44+
"properties": {
45+
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('servicePlanName'))]",
46+
"siteConfig": {
47+
"http20Enabled": true,
48+
"linuxFxVersion": "DOCKER|nginx:latest"
49+
}
50+
},
51+
"dependsOn": [
52+
"[resourceId('Microsoft.Web/serverfarms', parameters('servicePlanName'))]"
53+
]
54+
}
55+
]
56+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
3+
"contentVersion": "1.0.0.0",
4+
"metadata": {
5+
"_generator": {
6+
"name": "bicep",
7+
"version": "0.36.177.2456",
8+
"templateHash": "4694393287242918779"
9+
}
10+
},
11+
"parameters": {
12+
"siteName": {
13+
"type": "string",
14+
"defaultValue": "myapp-no-http2"
15+
},
16+
"servicePlanName": {
17+
"type": "string",
18+
"defaultValue": "myapp-plan-nohttp2"
19+
}
20+
},
21+
"resources": [
22+
{
23+
"type": "Microsoft.Web/serverfarms",
24+
"apiVersion": "2022-03-01",
25+
"name": "[parameters('servicePlanName')]",
26+
"location": "[resourceGroup().location]",
27+
"sku": {
28+
"name": "S1",
29+
"tier": "Standard",
30+
"size": "S1",
31+
"capacity": 1
32+
},
33+
"kind": "linux",
34+
"properties": {
35+
"reserved": true
36+
}
37+
},
38+
{
39+
"type": "Microsoft.Web/sites",
40+
"apiVersion": "2022-03-01",
41+
"name": "[parameters('siteName')]",
42+
"location": "[resourceGroup().location]",
43+
"kind": "app,linux,container",
44+
"properties": {
45+
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('servicePlanName'))]",
46+
"clientCertEnabled": false,
47+
"siteConfig": {
48+
"http20Enabled": false,
49+
"linuxFxVersion": "DOCKER|nginx:latest"
50+
}
51+
},
52+
"dependsOn": [
53+
"[resourceId('Microsoft.Web/serverfarms', parameters('servicePlanName'))]"
54+
]
55+
}
56+
]
57+
}

0 commit comments

Comments
 (0)