Skip to content

Commit 87664f9

Browse files
authored
🐛 azure: fix web app runtime stacks (#5501)
Closes #5386 Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
1 parent 3abb3ca commit 87664f9

File tree

5 files changed

+306
-104
lines changed

5 files changed

+306
-104
lines changed

providers/azure/resources/azure.lr

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,29 @@ private azure.subscription.webService {
10261026
// List of web apps
10271027
apps() []azure.subscription.webService.appsite
10281028
// Available runtimes
1029-
availableRuntimes() []dict
1029+
availableRuntimes() []azure.subscription.webService.appRuntimeStack
1030+
}
1031+
1032+
// Azure Web App runtime stack
1033+
private azure.subscription.webService.appRuntimeStack @defaults("preferredOs runtimeVersion") {
1034+
// Web App stack name
1035+
name string
1036+
// Web App stack preferred OS
1037+
preferredOs string
1038+
// Web App runtime version
1039+
runtimeVersion string
1040+
// Web App stack major version name
1041+
majorVersion string
1042+
// Web App stack minor version name
1043+
minorVersion string
1044+
// Whether the stack version is auto-updated
1045+
autoUpdate bool
1046+
// Whether the stack is deprecated
1047+
deprecated bool
1048+
// Whether the stack is hidden
1049+
hidden bool
1050+
// End-of-life date for the minor version
1051+
endOfLifeDate time
10301052
}
10311053

10321054
// Azure Web app site

providers/azure/resources/azure.lr.go

Lines changed: 166 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/azure/resources/azure.lr.manifest.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2892,6 +2892,22 @@ resources:
28922892
refs:
28932893
- title: Azure Web documentation
28942894
url: https://learn.microsoft.com/en-us/azure/?product=web
2895+
azure.subscription.webService.appRuntimeStack:
2896+
fields:
2897+
autoUpdate: {}
2898+
deprecated: {}
2899+
endOfLifeDate: {}
2900+
hidden: {}
2901+
majorVersion: {}
2902+
minorVersion: {}
2903+
name: {}
2904+
preferredOs: {}
2905+
runtimeVersion: {}
2906+
is_private: true
2907+
min_mondoo_version: 9.0.0
2908+
platform:
2909+
name:
2910+
- azure
28952911
azure.subscription.webService.appsite:
28962912
fields:
28972913
applicationSettings: {}

0 commit comments

Comments
 (0)