question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQ] bicep files as an alternative to ARM templates

See original GitHub issue

Library name

Azure.ResourceManager.Resources

Please describe the feature.

At the moment it seems I have the option to create a deployment by specifying a JSON template like this: new DeploymentProperties(DeploymentMode.Incremental) { Template = "{}" // well-formatted JSON here }

Would it be possible to add bicep support? I know it’s possible to convert from bicep to ARM but I would rather just keep the bicep file and not also its corresponding ARM template in source control.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ArcturusZhangcommented, May 23, 2023

Hi @ranul-pallemulle thanks for this request, but I do not think the SDK is going to support this at least recently. The SDK is generated from the swagger and the swagger only accepts arm template in JSON.

As a workaround, you could always use external tools like this to decompile bicep into JSON arm template and then pass the json into the SDK.

0reactions
github-actions[bot]commented, May 25, 2023

Hi @ranul-pallemulle. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Started With Azure Bicep - Alternative To ARM Templates
Azure Bicep is an abstraction built on top of Azure ARM Templates and Azure Resource Manager that offers a cleaner code syntax with...
Read more >
Azure Resource Manager template specs in Bicep
You can use Azure CLI or Azure PowerShell to create template specs by providing Bicep files. The Bicep files are transpiled into ARM...
Read more >
Bicep - Why do we need yet another way to deploy stuff in ...
Bicep is an excellent replacement for ARM templates. Anywhere you are using ARM templates, you should consider switching to Bicep. And although ...
Read more >
Using Bicep to create ARM Templates - Srinivasa Avanigadda
Bicep is a transparent abstraction over ARM and ARM templates, which means anything that can be done in an ARM Template can be...
Read more >
Would I replace Terraform with Bicep
To be able to work with Bicep files instead of ARM templates, you need the Bicep CLI. This is the part of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found