Giter Site home page Giter Site logo

Comments (12)

alex-frankel avatar alex-frankel commented on July 29, 2024

What are you using the etag property for? My understanding is that it is a read-only property used by ARM as a protection against concurrent write actions.

from bicep-types-az.

starkfell avatar starkfell commented on July 29, 2024

When attempting to update an existing Saved Search Resource, the following error will occur without the etag property set:

Newer data exists in the Customer Configuration Store.

You can reference Stanislav Zhelyazkov's Article on how setting the etag property to [*] to resolve this issue:

Update saved search

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

Interesting. Feels like an odd API behavior. @slavizh - any context you can share on this one?

Either way, this should not block the deployment, and we will tag it as an API spec issue.

from bicep-types-az.

slavizh avatar slavizh commented on July 29, 2024

@alex-frankel I have not tried this RP with Bicep but as far as I have used the RP in ARM etag was required in order to work. If it is any workaround people should move to query packs - https://docs.microsoft.com/en-us/azure/azure-monitor/logs/query-packs. That API is modern and replaces the saved searches API. Overall I in generally ignore the warnings. Unfortunately most of them are caused by RP itself not Bicep. Of course I always log the warnings in this repo to make the team aware.

from bicep-types-az.

iqoOopi avatar iqoOopi commented on July 29, 2024

The same "Newer data exists in the Customer Configuration Store." error when trying to deploy a savedSearches@2020-08-01
and can not add that etag thing

from bicep-types-az.

iqoOopi avatar iqoOopi commented on July 29, 2024

@alex-frankel I have not tried this RP with Bicep but as far as I have used the RP in ARM etag was required in order to work. If it is any workaround people should move to query packs - https://docs.microsoft.com/en-us/azure/azure-monitor/logs/query-packs. That API is modern and replaces the saved searches API. Overall I in generally ignore the warnings. Unfortunately most of them are caused by RP itself not Bicep. Of course I always log the warnings in this repo to make the team aware.

Hi Alex, when I try to create the query via bicep query pack, it asks for a required field called name. The name has to be in guid format. I don't think this is correct. "name" is not documented https://learn.microsoft.com/en-us/azure/azure-monitor/logs/query-packs and if it is guid format then should be auto generated
image

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

It is possible the name field requires a GUID. RoleAssignments is another resource type that has the same restriction. You can use the guid() function to generate a guid based on a seed of your choice (i.e. guid(resourceGroup().id, 'alfran')

from bicep-types-az.

iqoOopi avatar iqoOopi commented on July 29, 2024

It is possible the name field requires a GUID. RoleAssignments is another resource type that has the same restriction. You can use the guid() function to generate a guid based on a seed of your choice (i.e. guid(resourceGroup().id, 'alfran')

If I run the template multiple times, will it create the same query multiple times as guild() generated different uuid each time.

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

The guid is deterministic based on the seed (the function arguments)

from bicep-types-az.

iqoOopi avatar iqoOopi commented on July 29, 2024

@alex-frankel Thanks Alex, was mixed guid with newGuid. Will try guid, thanks

from bicep-types-az.

DataBach-maker avatar DataBach-maker commented on July 29, 2024

Is there any update on this request?

from bicep-types-az.

alex-frankel avatar alex-frankel commented on July 29, 2024

For the original issue, it sounds like the API is no longer recommended, but I will transfer to bicep-types for triage.

If your issue is with creating a Query Pack, I'd recommend opening a new Discussion.

from bicep-types-az.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.