Comments (11)
There was an internal discussion about it, but it did not end up producing anything meaningful. I just asked for an update.
from bicep-types-az.
You should be able to use the mentioned ARM payload in an az rest command.
from bicep-types-az.
I'm having trouble following the exact issue. Can you share the full bicep file? This looks like a partial snippet atm.
A working payload would look like this:
When you say working payload, is that the REST API payload? Where is that coming from?
from bicep-types-az.
Ah I was missing some details indeed. I have updated the issue to include the parent resource and the ARM template this compiles to.
Working payload is indeed for the REST API, as it is used in the Azure Portal. It also works to add items when they do not exist yet. When the item does exist, the REST API requires an additional property to be set on the body, [ Id ], with the Id of the existing item. Additionally a query parameter must be set overrideItem=true. Not sure if those things are handled through an ARM template, and cannot test because the deploy command does not get that far.
from bicep-types-az.
Something seems really off here. I've never seen a top level property content
before..
It also does not make sense to have two name
properties. The name is going to map to a specific segment in the resource ID, so it is not possible to have two name properties. I wonder if these are actually supposed to be inside of the properties
object.
I'm going to reach out to the microsoft.insights
team to see if they can take a look.
cc @anthony-c-martin who might be able to take a closer look at the swagger definition.
from bicep-types-az.
Hi,
Is there any update on this?
from bicep-types-az.
@alex-frankel any update on this?
from bicep-types-az.
No update. The best path forward will be to open a support ticket. We have made efforts to get the Insights team to work on it, but it is not being prioritized.
from bicep-types-az.
Same problem here, using latest version of az and bicep.
resource myFunction 'microsoft.insights/components/analyticsItems@2015-05-01' = { name: 'item' // must be set to item Name: 'Foo' // There is another Name property (?) with uppercase? parent: azAppInsights Scope: 'user' Id: 'b401c7de-0c50-4c07-91c4-e975694fdd32' Content: loadTextContent('some_function.kql') // throws the error Properties: { functionAlias: 'some_function' } }
That show the following error
{"code": "InvalidRequestContent", "message": "The request content was invalid and could not be deserialized: 'Could not find member 'Content' on object of type 'TemplateResource'. Path 'properties.template.resources[0].Content', line 21, position 16.'."}
from bicep-types-az.
I'm having the same issue. Were you able to find any workaround to deploy functions using ARM or AZ CLI calls?
In the meantime I have created a support case and crosslinked this issue there.
from bicep-types-az.
In case somebody else will hit this issue, there is a workaround: for log analytics workspace-based AppInsights instances, you can switch to Log Analytics functions, which have proper Bicep support and can accept parameters as well.
from bicep-types-az.
Related Issues (20)
- Microsoft.Web/sites: Does not recognize property 'autoGeneratedDomainNameLabelScope'
- AKS Spot Nodepool error HOT 5
- Unable to rerun code for Microsoft.Network/networkVirtualAppliances and a firewall is connected HOT 1
- Notification Hub Namespace update failed with BadArgument Exception HOT 4
- 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
- add tags to new subscription bicep not allowed
- 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.DataProtection/backupVaults not able to set SystemAssigned Identity HOT 1
- Error while deploying Azure Container App with bicep: ContainerAppInvalidResourceTotal HOT 1
- 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
- MySQL Flexible deployment fails when properties.maintenanceWindow is set HOT 2
- 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.