Visual Studio BICEP extension

Luke Uhren 201 Reputation points
2022-11-06T10:41:07.533+00:00

So if Microsoft is pushing BICEP for infrastructure as a code https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/overview?tabs=bicep .... why the hell is it not recognized in Visual Studio? I like Visual Studio and use VSCode too... but Visual Studio has a terraform extension even to read .tf files but not .bicep files? I knows all ARM JSON, BICEP and Terraform now and I want my monster visual studio application to recognize .bicep files.

I currently got this installed and terraform modules too

Microsoft Visual Studio Enterprise 2022 (64-bit) - Current
Version 17.2.4

Am I missing something why it's not? Or do I have to use VSCode only?

Thanks

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-11-08T02:44:36.87+00:00

    Hi @Luke Uhren ,

    Welcome to Microsoft Q&A!

    From the page: Bicep for Visual Studio, the extension requires Visual Studio 17.3 or above.
    According to your description, you are using Visual Studio Enterprise 2022 version 17.2.4.
    Please update your VS to the latest version and retry to install the extension.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Luke Uhren 201 Reputation points
    2022-11-06T10:49:36.677+00:00

    I found this and because I have enterprise it's possibly not compatible .... lol

    https://devblogs.microsoft.com/visualstudio/bicepforvs/

    1/6/2022 4:48:13 AM - Found installed product - Visual Studio Enterprise 2022
    11/6/2022 4:48:13 AM - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
    at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData) at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData)
    at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
    at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
    at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
    at VSIXInstaller.App.Initialize()
    at System.Threading.Tasks.Task`1.InnerInvoke()
    at System.Threading.Tasks.Task.Execute()
    --- End of stack trace from previous location where exception was thrown ---
    at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

    Terraform extension
    257470-pic1.jpg

    NO BICEP EXTENSION
    257529-pic2.jpg

    BICEP Visual Studio here
    257489-bicep1.jpg

    VSCODE BICEP here (readable)
    257535-bicep2.jpg

    The difference is that visual studio enterprise won't recognize it as a file and treat it like a text file.

    0 comments No comments

  2. Andreas Baumgarten 123.7K Reputation points MVP Volunteer Moderator
    2022-11-06T11:58:31.783+00:00

    Hi @Luke Uhren ,

    maybe these two links are helpful:

    https://devblogs.microsoft.com/visualstudio/bicepforvs/
    https://marketplace.visualstudio.com/items?itemName=ms-azuretools.visualstudiobicep

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  3. Luke Uhren 201 Reputation points
    2022-11-06T12:12:56.383+00:00

    Still same and I'm Windows 10 version 21H2. I get my installs from https://my.visualstudio.com/ for visual studio.

    257536-image.png

    0 comments No comments

  4. Luke Uhren 201 Reputation points
    2022-11-08T02:49:03.817+00:00

    Thanks! I will get that version installed here sometime this week. Much appreciated.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.