Azure / Azure/bicep-registry-modules

[AVM Module Issue]: Storage Account - Blob Service cannot disable ChangeFeed

Open
#7,191 5 comments 0 reactions 1 assignee Claimed by @fblix View on GitHub
Class: Resource Module :package: Needs: Immediate Attention :bangbang: Needs: Triage :mag: Status: Response Overdue :triangular_flag_on_post: Type: AVM :a: :v: :m: Type: Bug :bug:
Dominant language
Bicep
Stars
736
Forks
564
Avg merge
3d 15h
Merged PRs (30d)
30

Description

### Check for previous/existing GitHub issues

- [x] I have checked for previous/existing GitHub issues

### Issue Type?

Bug

### Module Name

avm/res/storage/storage-account

### (Optional) Module Version

0.32.1

### Description

It seems impossible to disable the ChangeFeed setting. I have the following code, but it is ignored.
```
blobServices: {
changeFeedEnabled: false
}
```

I suspect it's because of the way blobServices is declared. If `changeFeedEnabled` is set to false, `changeFeed` is set to null and the change is then ignored.
```
resource blobServices 'Microsoft.Storage/storageAccounts/blobServices@2025-01-01' = {
name: name
parent: storageAccount
properties: {
automaticSnapshotPolicyEnabled: automaticSnapshotPolicyEnabled
changeFeed: changeFeedEnabled
? {
enabled: true
retentionInDays: changeFeedRetentionInDays
}
: null
...
```

### (Optional) Correlation Id

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.