Skip to content

Commit 7bf60b6

Browse files
authored
⭐ Azure: Storage Account blob versioning property (#6383)
1 parent 2018aa3 commit 7bf60b6

File tree

4 files changed

+262
-10
lines changed

4 files changed

+262
-10
lines changed

providers/azure/resources/azure.lr

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ private azure.subscription.storageService.account @defaults("id name location")
10231023
// Storage account table properties
10241024
tableProperties() azure.subscription.storageService.account.service.properties
10251025
// Storage account blob properties
1026-
blobProperties() azure.subscription.storageService.account.service.properties
1026+
blobProperties() azure.subscription.storageService.account.service.blobProperties
10271027
// Storage account data protection
10281028
dataProtection() azure.subscription.storageService.account.dataProtection
10291029
}
@@ -1054,6 +1054,20 @@ private azure.subscription.storageService.account.service.properties @defaults("
10541054
logging azure.subscription.storageService.account.service.properties.logging
10551055
}
10561056

1057+
// Azure Storage account blob service properties
1058+
private azure.subscription.storageService.account.service.blobProperties @defaults("id") {
1059+
// ID of the service
1060+
id string
1061+
// Hourly metrics properties
1062+
hourMetrics azure.subscription.storageService.account.service.properties.metrics
1063+
// Minute metrics properties
1064+
minuteMetrics azure.subscription.storageService.account.service.properties.metrics
1065+
// Logging properties
1066+
logging azure.subscription.storageService.account.service.properties.logging
1067+
// Whether versioning is enabled for blobs
1068+
isVersioningEnabled bool
1069+
}
1070+
10571071
// Azure Storage account service properties metrics
10581072
private azure.subscription.storageService.account.service.properties.metrics @defaults("id includeAPIs enabled") {
10591073
// ID of the metrics

providers/azure/resources/azure.lr.go

Lines changed: 119 additions & 6 deletions
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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,6 +2955,18 @@ resources:
29552955
refs:
29562956
- title: Azure Storage documentation
29572957
url: https://learn.microsoft.com/en-us/azure/storage/
2958+
azure.subscription.storageService.account.service.blobProperties:
2959+
fields:
2960+
hourMetrics: {}
2961+
id: {}
2962+
isVersioningEnabled: {}
2963+
logging: {}
2964+
minuteMetrics: {}
2965+
is_private: true
2966+
min_mondoo_version: 9.0.0
2967+
platform:
2968+
name:
2969+
- azure
29582970
azure.subscription.storageService.account.service.properties:
29592971
fields:
29602972
hourMetrics: {}

0 commit comments

Comments
 (0)