简体   繁体   中英

I am trying to convert ARM Template to Bicep using Powershell

When I am trying to convert json to bicep by using PowerShell It throws an error and dropped a link below

在此处输入图像描述

Is there any alternate method to convert json to bicep

I tried and got an error as mentioned above. And trying for an alternate method.

  • I have convert the Json to Bicep using VS Code .

  • Follow the below steps

  • Create a folder and save your Json template in that folder. After that open VS Code and GOTO files on the left corner -> Click on Select Folder -> Select the folder Which you have created in the VS Code

  • After that press Ctrl+P it will open a command palette then search for >Bicep: decompile to Bicep as below

在此处输入图像描述

  • It will convert json to bicep and create a .bicep file in the same directory.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM