Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 4fb18be

Browse files
committed
test: Verify ARM templates are constructed with correct resources
1 parent bcb10f4 commit 4fb18be

File tree

10 files changed

+236
-465
lines changed

10 files changed

+236
-465
lines changed

src/armTemplates/ase-with-apim.json

Lines changed: 0 additions & 340 deletions
This file was deleted.

src/armTemplates/ase.js renamed to src/armTemplates/ase.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import * as functionApp from "./resources/functionApp.json";
2-
import * as appInsights from "./resources/appInsights.json";
3-
import * as storage from "./resources/storage.json";
4-
import * as appServicePlan from "./resources/appServicePlan.json";
5-
import * as hostingEnvironment from "./resources/hostingEnvironment.json";
1+
import functionApp from "./resources/functionApp.json";
2+
import appInsights from "./resources/appInsights.json";
3+
import storage from "./resources/storageAccount.json";
4+
import appServicePlan from "./resources/appServicePlan.json";
5+
import hostingEnvironment from "./resources/hostingEnvironment.json";
66

77
export function generate() {
8-
return {
8+
const template = {
99
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
1010
"contentVersion": "1.0.0.0",
1111
"parameters": {
@@ -23,4 +23,9 @@ export function generate() {
2323
...hostingEnvironment.resources,
2424
],
2525
};
26+
27+
template.parameters.appServicePlanSkuName.defaultValue = "I1";
28+
template.parameters.appServicePlanSkuTier.defaultValue = "Isolated";
29+
30+
return template;
2631
}

0 commit comments

Comments
 (0)