Comments (6)
Looks like a swagger issue. They types changed in the most recent released. The previous type definition we had did not mark these properties as read-only. I will open an issue in the swagger repo.
@miqm - this also seems related to our logic for making type errors with top level properties warnings instead of errors. This type issue should be non-blocking.
@MartinHannemann -- if it's critical, reverting to an older version of bicep should fix this.
from bicep-types-az.
On the other hand, we should have some type tests that when we prepare a package upgrade to review what was changed and perhaps catch that sort of changes and verify them manually if they're correct or not.
from bicep-types-az.
Looks like the swagger may not be the issue based on this response?
Hi Alex,
Reaching out to you for the git hub issue that is opened recently. In our swagger definition these properties are not marked as read-only. Also there has been no changes in the swagger definition for this API.
Link to swagger repo for these parameters which are shown as read-only: https://github.com/Azure/azure-rest-api-specs/blob/e5a0d0d5f7b69554dc6cc27455e86155306444b2/specification/automation/resource-manager/Microsoft.Automation/stable/2019-06-01/dscConfiguration.json#L455
Could you help with this?
Thanks,
Jagpreet Singh
from bicep-types-az.
It's because you are using are using the existing
keyword in the resource declaration which is a way to reference previously created resources to read properties from it. It makes the type of the entire resource read-only. If you are looking to create or update the resource, you should remove that keyword.
EDIT: misread the screenshot - sorry! Will send a new response soon.
from bicep-types-az.
Seems that all type-related issues should be warnings, never errors. I think we left those that are coming from swagger assuming swagger will be accurate for top-level ones. Seems we're wrong.
from bicep-types-az.
Leaving this open to track the swagger issue, but it is no longer Top 5
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.