-
Notifications
You must be signed in to change notification settings - Fork 32
Description
Bicep version
Bicep CLI version 0.39.26 (1e90b06e40)
Describe the bug
When deploying Microsoft.Security/defenderForStorageSettings, values set for excludeBlobsWithPrefix or excludeBlobsWithSuffix are not deployed.
We've tried with API versions 2025-05-01 and 2025-07-01-preview.
To Reproduce
Steps to reproduce the behavior:
Run a bicep deployment to configure storage defender settings:
resource storage_defender 'Microsoft.Security/defenderForStorageSettings@2025-06-01' = { name: 'current' scope: storage properties: { isEnabled: true overrideSubscriptionLevelSettings: true malwareScanning: { automatedResponse: 'None' blobScanResultsOptions: 'blobIndexTags' onUpload: { isEnabled: true capGBPerMonth: 5000 filters: { excludeBlobsWithPrefix: [ 'bronze/archive/' 'silver/archive/' 'gold/archive/' ] excludeBlobsWithSuffix: } } } sensitiveDataDiscovery: { isEnabled: true } } }
Additional context
Running the command with what-if, the change is expected, but when deployed it's not applied.
~ Microsoft.Storage/storageAccounts/*/providers/Microsoft.Security/defenderForStorageSettings/current [2025-07-01-preview]
- properties.dataScannerResourceId: "/subscriptions/*/providers/Microsoft.Security/datascanners/StorageDataScanner"
~ properties.malwareScanning.blobScanResultsOptions: "BlobIndexTags" => "blobIndexTags"
~ properties.malwareScanning.onUpload.filters.excludeBlobsWithPrefix: [
+ 1: "bronze/archive/"
+ 2: "silver/archive/"
+ 3: "gold/archive/"
]
Metadata
Metadata
Assignees
Labels
Type
Projects
Status