Skip to content

[Bug Report]: Log Analytics workspaces etag field not valid #1570

@itpropro

Description

@itpropro

Describe the bug

When deploying a log analytics workspace using the Microsoft.OperationalInsights/workspaces module, the following warning appears:
E:\repos\test\modules\carml\0.5.0\Microsoft.OperationalInsights\workspaces\savedSearches\deploy.bicep(55,5) : Warning BCP037: The property "etag" is not allowed on objects of type "SavedSearchProperties". No other properties are allowed. If this is an inaccuracy in the documentation, please report it to the Bicep Team. [https://aka.ms/bicep-type-issues]

If this can be confirmed to be an error, it should be enough to remove the following lines:

etag: contains(savedSearch, 'eTag') ? savedSearch.etag : '*'

To reproduce

Deploy a log analytics workspace using the Microsoft.OperationalInsights/workspaces module.

Code snippet

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions