Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.24k stars 752 forks source link

autoPasteAsBicep #13778

Closed vikramopala closed 6 months ago

vikramopala commented 7 months ago

Does this occur consistently? Repro steps:

  1. Copy the template.json 2.Paste on a bicep extension file

Action: autoPasteAsBicep Error type: Error Error Message: Applying edit failed while converting pasted JSON to Bicep

Version: 0.22.6 OS: darwin OS Release: 23.4.0 Product: Visual Studio Code Product Version: 1.74.3 Language: en

Call Stack ``` pasteAsBicep.ts:359:31 ```
stephaniezyen commented 7 months ago

Can you please give more information on your template, how you tried deploying your code and what you were expecting?

vikramopala commented 7 months ago

Can you please give more information on your template, how you tried deploying your code and what you were expecting?

I am trying to paste the template.json contents to a bicep file on vscode , ealier it used to decompile to bicep now its giving an error " failed to decompile" but when i try using azure shell bash its working fine.

StephenWeatherford commented 7 months ago

@vikramopala Does this happen for all templates that you paste, or just specific ones? Assuming the latter, can you share an example template that fails?

I'm also not sure what "i try using azure shell bash its working fine" means. When you do what exactly in azure shell bash? Deploy?

Thx.

microsoft-github-policy-service[bot] commented 6 months ago

Hi @vikramopala, this issue has been marked as stale because it was labeled as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 3 days of this comment. Thanks for contributing to bicep! :smile: :mechanical_arm: