Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
86 stars 27 forks source link

Microsoft.OperationalInsights/workspaces/savedSearches: missing etag property #1548

Open tacerra opened 1 year ago

tacerra commented 1 year ago

Resource Type

Microsoft.OperationalInsights/workspaces/savedSearches

Api Version

2020-08-01

Issue Type

Missing property(s)

Other Notes

The property etag is missing but necessary in order to redeploy existing saved searches. This is mentioned in https://github.com/MicrosoftDocs/azure-docs/issues/49275

Bicep Repro

No response

Confirm

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzmonLogA. Please see https://aka.ms/biceptypesinfo for troubleshooting help.

Issue Details
### Resource Type Microsoft.OperationalInsights/workspaces/savedSearches ### Api Version 2020-08-01 ### Issue Type Missing property(s) ### Other Notes The property etag is missing but necessary in order to redeploy existing saved searches. This is mentioned in https://github.com/MicrosoftDocs/azure-docs/issues/49275 ### Bicep Repro _No response_ ### Confirm - [X] I have read the troubleshooting guide and looked for duplicates.
Author: tacerra
Assignees: -
Labels: `inaccuracy`, `Needs: Triage :mag:`, `Service Attention`, `Operational Insights`
Milestone: -
daveinci commented 4 months ago

The following example shows where it should go according to the template reference ((https://learn.microsoft.com/en-us/azure/templates/microsoft.operationalinsights/workspaces/savedsearches?pivots=deployment-language-bicep#resource-format) vs. where it actually works.

`resource 'Microsoft.OperationalInsights/workspaces/savedSearches@2020-08-01' = { parent: name: '' // etag: '' --This is where it should go according to template reference but doesn't work here properties: { eTag: '' // This is where it works category: '' displayName: '<display-name' query: '' version: 1 } }

VSCode Warning message: The property "eTag" is not allowed on objects of type "SavedSearchProperties". Permissible properties include "functionAlias", "functionParameters", "tags". If this is an inaccuracy in the documentation, please report it to the Bicep Team.`

Moving it to the right place, according to the template reference, remediates the error message but the resource will fail to deploy.