Comments (12)
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.
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:
from bicep-types-az.
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.
@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.
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.
@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
from bicep-types-az.
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.
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.
The guid is deterministic based on the seed (the function arguments)
from bicep-types-az.
@alex-frankel Thanks Alex, was mixed guid with newGuid. Will try guid, thanks
from bicep-types-az.
Is there any update on this request?
from bicep-types-az.
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)
- Microsoft.Web/sites: Does not recognize property 'autoGeneratedDomainNameLabelScope'
- Unable to rerun code for Microsoft.Network/networkVirtualAppliances and a firewall is connected HOT 1
- Notification Hub Namespace update failed with BadArgument Exception HOT 3
- AKS Spot Nodepool error HOT 5
- Resource type "Microsoft.VirtualMachineImages/imageTemplates@2024-02-01" does not have types available
- Apim Api Revision fails when parent Api has no Description HOT 1
- Microsoft.Portal/dashboards: The property "type" expected a value of type "'Extension/HubsExtension/PartType/MarkdownPart'" but the provided value is of type "'Extension/HubsExtension/PartType/MonitorChartPart'"
- [Microsoft.KeyVault/vaults/accessPolicies]: does not have types available
- [Microsoft.App/containerApps]: ContainerResources example uses unsupported units for Memory property; Mb instead of Gi.
- [Microsoft.Web/sites]: missing functionAppConfig
- Microsoft.DataProtection/backupVaults not able to set SystemAssigned Identity HOT 1
- Error while deploying Azure Container App with bicep: ContainerAppInvalidResourceTotal HOT 1
- add tags to new subscription bicep not allowed
- MySQL Flexible deployment fails when properties.maintenanceWindow is set HOT 2
- Microsoft.Web/connections@2018-07-01-preview and Microsoft.Web/connections/accessPolicies@2018-07-01-preview
- Azure Container Apps - KEDA scale (managed identity) HOT 5
- Microsoft.Web/sites@2021-03-01 ipSecurityRestrictionsDefaultAction
- deployment ignores condition and is validating module
- [Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers]: compositeIndexes type issue
- [Microsoft.PowerPlatform/enterprisePolicies]: Virtual Networks Object structure is incorrect
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bicep-types-az.