Skip to content

Commit 5c85968

Browse files
authored
Merge pull request #176598 from mumian/1020-bicep-install
troubleshoot .net installation failure
2 parents 1143557 + d8583a6 commit 5c85968

File tree

1 file changed

+42
-3
lines changed

1 file changed

+42
-3
lines changed

articles/azure-resource-manager/bicep/install.md

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Set up Bicep development and deployment environments
33
description: How to configure Bicep development and deployment environments
44
ms.topic: conceptual
5-
ms.date: 10/01/2021
5+
ms.date: 10/20/2021
66
ms.custom: devx-track-azurepowershell, devx-track-azurecli
77
---
88

@@ -27,6 +27,45 @@ To verify you've installed the extension, open any file with the `.bicep` file e
2727

2828
:::image type="content" source="./media/install/language-mode.png" alt-text="Bicep language mode":::
2929

30+
### Troubleshoot
31+
32+
When installing the Bicep extension for Visual Studio Code, you may run into the following error messages:
33+
34+
```error
35+
Failed to install .NET runtime v5.0
36+
```
37+
38+
```error
39+
Failed to download .NET 5.0.x ....... Error!
40+
```
41+
42+
To solve the problem, you can manually install .NET from the [.NET website](https://aka.ms/dotnet-core-download), and then configure Visual Studio Code to reuse an existing installation of .NET. with the following settings:
43+
44+
**Windows**
45+
46+
```json
47+
"dotnetAcquisitionExtension.existingDotnetPath": [
48+
{
49+
"extensionId": "msazurermtools.azurerm-vscode-tools",
50+
"path": "C:\\Program Files\\dotnet\\dotnet.exe"
51+
}
52+
]
53+
54+
```
55+
56+
**macOS**
57+
58+
```json
59+
"dotnetAcquisitionExtension.existingDotnetPath": [
60+
{
61+
"extensionId": "ms-azuretools.vscode-bicep",
62+
"path": "/usr/local/share/dotnet/dotnet"
63+
}
64+
]
65+
```
66+
67+
See [User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) for configuring Visual Studio Code settings.
68+
3069
## Deployment environment
3170

3271
After setting up your development environment, you need to install the tools for your deployment environment. To set up a local deployment environment, install the Bicep CLI with [Azure CLI](#azure-cli) or [Azure PowerShell](#azure-powershell). Those steps are shown in the next sections.
@@ -116,7 +155,7 @@ bicep --help
116155
117156
### macOS
118157

119-
#### via homebrew
158+
#### Via homebrew
120159

121160
```sh
122161
# Add the tap for bicep
@@ -126,7 +165,7 @@ brew tap azure/bicep
126165
brew install bicep
127166
```
128167

129-
#### via BASH
168+
#### Via BASH
130169

131170
```sh
132171
# Fetch the latest Bicep CLI binary

0 commit comments

Comments
 (0)