Azure / Azure/bicep-registry-modules
[AVM Module Issue]: Virtual machine autoShutdownConfig not working
- 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/compute/virtual-machine
### (Optional) Module Version
0.22.2
### Description
When using the autoShutdownConfig setting it enables notification even when the notification status is set to 'Disabled'.
I tried to bypass the issue by rather than using one object for autoShutdownConfig I tried to separate it into two objects, one for the autoShutdownConfig main settings and another for autoShutdownConfig.notificationSettings.
On autoShutdownConfig.notificationSettings I added a condition if status == 'Enabled' then add settings else null, but when setting notificationSettings.status to 'Disabled' I then get an error asking for a webHookUrl, emailRecipient. This still errors when an emailRecipient is added.
### (Optional) Correlation Id
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.