Azure / Azure/bicep

Unable to set empty retentionPolicy parameters for bicep diagnostic setting resource

Open
#6,791 2 comments 0 reactions 0 assignees View on GitHub
investigate troubleshooting
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 21m
Merged PRs (30d)
79

Description

When I try to deploy the diagnostic setting with empty parameters for rentention policy days and enabled I am getting an error "Request content is not well formed or supported".
![diagnosticsetting](https://user-images.githubusercontent.com/86803480/167493911-4c1cd9e8-206b-4071-8e50-09e63dcc0c0d.jpg)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Azure diagnostic setting deployment shown in the issue, using empty retention policy days and enabled parameters. Trace how the diagnostic setting resource handles those empty values and verify that the deployment succeeds without the reported "Request content is not well formed or supported" error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.