Comments (5)
@jongio - are you asking specifically about the numeric keys on the "lenses" property? For reasons I don't understand, that appears to be the way that the property is modeled for this resource - as an object with numeric keys (rather than a simple array). The Bicep representation of it seems true to the exported template.
I tried running this on my dashboard, and it generated the following (valid) bicep file:
resource foo 'Microsoft.Portal/dashboards@2015-08-01-preview' = {
properties: {
lenses: {
'0': {
order: 0
parts: {
'0': {
position: {
x: 0
y: 0
colSpan: 4
rowSpan: 6
}
metadata: {
inputs: [
{
name: 'resourceType'
value: 'Microsoft.Resources/resources'
}
]
type: 'Extension/HubsExtension/PartType/BrowseAllResourcesPinnedPart'
viewState: {
content: {
selectableData: {
activatedItems: []
selectedItems: []
}
}
}
}
}
'1': {
position: {
x: 0
y: 6
colSpan: 2
rowSpan: 1
}
metadata: {
inputs: []
type: 'Extension/HubsExtension/PartType/ServicesHealthPart'
}
}
'2': {
position: {
x: 4
y: 0
colSpan: 4
rowSpan: 2
}
metadata: {
inputs: []
type: 'Extension/HubsExtension/PartType/AzureProjectGettingStartedPart'
}
}
'3': {
position: {
x: 4
y: 2
colSpan: 4
rowSpan: 5
}
metadata: {
inputs: []
type: 'Extension/HubsExtension/PartType/GettingStartedPart'
}
}
'4': {
position: {
x: 2
y: 6
colSpan: 2
rowSpan: 1
}
metadata: {
inputs: [
{
name: 'selectedMenuItemId'
value: ''
isOptional: true
}
]
type: 'Extension/HubsExtension/PartType/GalleryTile'
}
}
}
}
}
metadata: {
model: {}
}
}
name: 'foo'
location: 'INSERT LOCATION'
tags: {}
}
from bicep-types-az.
Can you share your input file? So I can test the decompile and report back.
from bicep-types-az.
I couldn't get the export to bicep resource working. Would like to see how you did it, but low pri....as I'm now using the insert resource feature in vscode. Feel free to close if low pri
from bicep-types-az.
Hi jongio, this issue has been marked as stale because it was labeled as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thanks for contributing to bicep! 😄 🦾
from bicep-types-az.
@alex-frankel I don't think this is waiting on me.
from bicep-types-az.
Related Issues (20)
- deployment ignores condition and is validating module
- [Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers]: compositeIndexes type issue
- [Microsoft.PowerPlatform/enterprisePolicies]: Virtual Networks Object structure is incorrect
- Microsoft.ContainerRegistry/registries@2023-07-01: The property "{...}" is not allowed on objects of type "RegistryProperties"
- [Microsoft.Fabric]: The specified "object" declaration is missing the following required properties: "state"
- Second HCI deployment brokes the vm network interface HOT 1
- remoteGateways not included in Microsoft.Network/virtualNetworks/virtualNetworkPeerings@2024-01-01 resource HOT 1
- Error with creating an enterprise policy for power platform subnet injection HOT 2
- Microsoft.Web/sites/extensions: onedeploy properties are valid
- virtualMachineScaleSets health probe reference id
- Microsoft.PowerPlatform/enterprisePolicies: Problem with Microsoft provided bicep template and work around (that has 'type' issue) HOT 1
- 'Microsoft.Fabric/capacities@2023-11-01': Warning for a missing property `State` while it is actually Read-Only
- [Microsoft.Sql/servers/databases]: Doesn't recognize maxCapacity for serverless
- BCP037 Error for Valid 'networkGroupAddressSpaceAggregationOption' Property
- Azure Database for PostgreSQL flexible server with private endpoint HOT 1
- Deploying Digital Twin Endpoints does not work through symbolic reference HOT 4
- [Microsoft.Graph/applications]: Missing oauth2scopes
- managedEnvironmentId not allowed on properties for functions app
- [Microsoft.Web/sites/slots@2023-12-01]: appSettings intellisense reports false warning
- Provider does not autoregister
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.