Home > Blockchain >  Is there a way to generate a bicep file for an existing Azure resource?
Is there a way to generate a bicep file for an existing Azure resource?

Time:09-28

I'm in the process of creating bicep files for our current Azure resources. Is there a way to generate a bicep file from an existing azure resource, say a storage account or an app service?

CodePudding user response:

You should be able to do it. You will need to use the ARM template for the resource though. Once you have it, you can use Bicep CLI to decompile the template.

From this link:

az bicep decompile --file main.json

Other alternative would be to use Bicep Playground which can also take an ARM template JSON and give you a Bicep file.

  • Related