Bicep and ARM Template Schemas... #4031
Replies: 3 comments 1 reply
-
The API's are maintained overall within this repo: https://github.com/Azure/azure-rest-api-specs When Bicep is built/released these types are included "hard coded" within the project and used by the language server (service). Each new Bicep release will come with updated Schemas and API definitions. There have been some discussions around a way to manage the Types outside of a standard Bicep Release. You may want to review #3205 for info on this process. |
Beta Was this translation helpful? Give feedback.
-
Ben, thanks for the confirmation. My reason for asking is I am working on a Code Gen implementation based on reading the referenced schemas…
If Bicep was dynamically reading them (and I had missed it during a quick look at the repo) then it could have potentially helped with some of the problems I have been facing….
Can’t win them all. Have a good weekend.
David
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Ben Wilkinson ***@***.***>
Sent: Saturday, August 14, 2021 12:37:32 PM
To: Azure/bicep ***@***.***>
Cc: David Corbin ***@***.***>; Author ***@***.***>
Subject: Re: [Azure/bicep] Bicep and ARM Template Schemas... (#4031)
The API's are maintained overall within this repo: https://github.com/Azure/azure-rest-api-specs
When Bicep is built/released these types are included "hard coded" within the project and used by the language server (service).
Each new Bicep release will come with updated Schemas and API definitions.
There have been some discussions around a way to manage the Types outside of a standard Bicep Release.
You may want to review #3205<#3205> for info on this process.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4031 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT3Q5VH7TKBZNGF4DGX3FEDT42LUZANCNFSM5CFD2XIQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
Beta Was this translation helpful? Give feedback.
-
Thanks that will be very helpful….. For right now I realized that my immediate needs to not need full schema understanding (static or dynamic) as I can treat the JSON in blocks transparent [If a binary object is a blob, is arbitrary json as jlob????]
From: Anthony Martin ***@***.***>
Sent: Saturday, August 14, 2021 7:34 PM
To: Azure/bicep ***@***.***>
Cc: David Corbin ***@***.***>; Author ***@***.***>
Subject: Re: [Azure/bicep] Bicep and ARM Template Schemas... (#4031)
If it helps, the Bicep type generator lives under this repo: https://github.com/Azure/bicep-types-az. You can use this to generate on-demand Bicep types, based on the API definitions checked in under the rest specs repo linked above. ARM Template schemas are generated using a very similar process, so if you're looking to extract info and do your own codegen based on schema metadata, modifying https://github.com/Azure/bicep-types-az/tree/main/src/autorest.bicep would be a good start.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4031 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT3Q5VBHGXMPJBHEAC3AZI3T434P7ANCNFSM5CFD2XIQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
Beta Was this translation helpful? Give feedback.
-
Does Bicep dynamically use the Schemas for the various ARM templates, or are the transformations "hard coded"?
Beta Was this translation helpful? Give feedback.
All reactions