Proposed Pull Request Change

title description ms.topic ms.custom ms.date
Troubleshoot problems with Bicep installation How to resolve errors and problems with your Bicep installation. troubleshooting devx-track-bicep, devx-track-dotnet 10/30/2025
📄 Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Content Truncation Detected
The generated rewrite appears to be incomplete.
Original lines: -
Output lines: -
Ratio: -
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Troubleshoot problems with Bicep installation description: How to resolve errors and problems with your Bicep installation. ms.topic: troubleshooting ms.custom: devx-track-bicep, devx-track-dotnet ms.date: 10/30/2025 --- # Troubleshoot Bicep installation This article describes how to resolve potential errors in your Bicep installation. ## Visual Studio Code error If you see the following error message popup in Visual Studio Code: ```error The Bicep server crashed 5 times in the last 3 minutes. The server will not be restarted. ``` From VS Code, open the **Output** view in the pane at the bottom of the screen, and then select **Bicep**: :::image type="content" source="./media/installation-troubleshoot/visual-studio-code-output-pane-bicep.png" alt-text="Visual Studio Code output pane"::: If you see the following output in the pane, check whether you have added the `dotnetAcquisitionExtension.existingDotnetPath` setting to VS Code. If this setting is present, remove it and restart VS Code. See [User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) for configuring Visual Studio Code settings. ```error It was not possible to find any compatible framework version. ``` Otherwise, raise an issue in the [Bicep repo](https://github.com/Azure/bicep/issues), and include the output messages. ## Multiple versions of Bicep CLI installed If you manually install the Bicep CLI to more than one location, you may notice unexpected behavior such as the Bicep CLI not updating when you run the [upgrade command](bicep-cli.md#upgrade). Or, you may notice that running `az bicep version` returns one version, but `bicep --version` returns a different version. To resolve this issue, you can either update all locations, or select one location to maintain and delete the other locations. First, open your command prompt (not PowerShell), and run `where bicep`. This command returns the locations of your Bicep installations. If you're using the instance of Bicep CLI that is managed by Azure CLI, you won't see this installation because it's not added to the PATH. If `where bicep` returns only one location, it may be that the conflicting versions you're seeing is between the manual installation and the Azure CLI installation. To **keep all installation locations**, use the same method you used earlier to [manually install the Bicep CLI](install.md#install-manually) for all locations you want to maintain. If you're using Azure CLI, run `az bicep upgrade` to update that version. To **keep only one installation location**, use the following steps: 1. Delete the files for the installations you don't want to keep. 1. Remove those locations from your **PATH** environment variable. If you have both a **manual installation and the instance managed by Azure CLI**, you can combine your usage to one instance. 1. Delete the manual installation location. 1. Add the location of the Bicep CLI installed by Azure CLI to the **PATH** variable. For Windows, the location maintained by Azure CLI is `%USERPROFILE%\.Azure\bin`. After adding the Azure CLI instance to the PATH, you can use that version with either `az bicep` or `bicep`. ## Next steps For more information about using Visual Studio Code and the Bicep extension, see [Quickstart: Create Bicep files with Visual Studio Code](./quickstart-create-bicep-use-visual-studio-code.md).
Success! Branch created successfully. Create Pull Request on GitHub
Error: