Skip to content

Commit 33e5ac5

Browse files
authored
Merge pull request #207001 from mumian/0804-vscode
add details for vscode deployment
2 parents cabb630 + ba2c21c commit 33e5ac5

10 files changed

+39
-4
lines changed

articles/azure-resource-manager/bicep/deploy-vscode.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,46 @@ description: Deploy Bicep files from Visual Studio Code.
44
author: mumian
55
ms.author: jgao
66
ms.topic: conceptual
7-
ms.date: 06/30/2022
7+
ms.date: 08/04/2022
88
---
99

1010
# Deploy Bicep files from Visual Studio Code
1111

1212
You can use [Visual Studio Code with the Bicep extension](./visual-studio-code.md#deploy-bicep-file) to deploy a Bicep file. You can deploy to any scope. This article shows deploying to a resource group.
1313

14-
From an opened Bicep file in VS Code, there are two ways you can find the command:
14+
From an opened Bicep file in VS Code, there are there ways you can find the command:
15+
16+
- Right-click the Bicep file name from the Explorer pane, not the one under **OPEN EDITORS**:
17+
18+
:::image type="content" source="./media/deploy-vscode/bicep-deploy-from-explorer.png" alt-text="Screenshot of Deploying Bicep File in the Context menu from the explore pane.":::
1519

1620
- Right-click anywhere inside a Bicep file, and then select **Deploy Bicep File**.
21+
1722
- Select **Command Palette** from the **View** menu, and then select **Bicep: Deploy Bicep File**.
1823

24+
:::image type="content" source="./media/deploy-vscode/bicep-deploy-from-command-palette.png" alt-text="Screenshot of Deploy Bicep File in the Context menu.":::
25+
1926
After you select the command, you follow the wizard to enter the values:
2027

21-
- Select or create a resource group.
22-
- Select a parameter file or select **None** to enter the parameter values. After you enter the parameter values, you have the options to create a parameter file or overwrite the existing parameter file.
28+
1. Sign in to Azure and select subscription.
29+
30+
:::image type="content" source="./media/deploy-vscode/bicep-deploy-select-subscription.png" alt-text="Screenshot of Select subscription.":::
31+
32+
1. Select or create a resource group.
33+
34+
1. Select a parameter file or select **None** to enter the parameter values.
35+
36+
:::image type="content" source="./media/deploy-vscode/bicep-deploy-select-parameter-file.png" alt-text="Screenshot of Select parameter file.":::
37+
38+
1. If you choose **None**, enter the parameter values.
39+
40+
:::image type="content" source="./media/deploy-vscode/bicep-deploy-enter-parameter-values.png" alt-text="Screenshot of Enter parameter values.":::
41+
42+
After you enter the values, you have the option to create a parameters file from values used in this deployment:
43+
44+
:::image type="content" source="./media/deploy-vscode/bicep-deploy-create-parameter-file.png" alt-text="Screenshot of Create parameter file.":::
45+
46+
If you select **Yes**, a parameter file with the file name **<Bicep-file-name>.parameters.json** is created in the same folder.
2347

2448
For more information about VS Code commands, see [Visual Studio Code](./visual-studio-code.md).
2549

4.24 KB
Loading
6 KB
Loading
51.5 KB
Loading
50.5 KB
Loading
5.03 KB
Loading
5.08 KB
Loading
44.6 KB
Loading
Loading

articles/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio-code.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,20 @@ The visualizer shows the resources defined in the Bicep file with the resource d
211211
## Deploy the Bicep file
212212

213213
1. Right-click the Bicep file inside the VSCode, and then select **Deploy Bicep file**.
214+
215+
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio-code/vscode-bicep-deploy.png" alt-text="Screenshot of Deploy Bicep file.":::
216+
214217
1. From the **Select Resource Group** listbox on the top, select **Create new Resource Group**.
215218
1. Enter **exampleRG** as the resource group name, and then press **[ENTER]**.
219+
1. Select a location for the resource group, and then press **[ENTER]**.
220+
1. From **Select a parameter file**, select **None**.
221+
222+
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio-code/vscode-bicep-select-parameter-file.png" alt-text="Screenshot of Select parameter file.":::
223+
216224
1. Enter a unique storage account name, and then press **[ENTER]**. If you get an error message indicating the storage account is already taken, the storage name you provided is in use. Provide a name that is more likely to be unique.
225+
1. From **Create parameters file from values used in this deployment?**, select **No**.
226+
227+
It takes a few moments to create the resources. For more information, see [Deploy Bicep files with visual Studio Code](./deploy-vscode.md).
217228

218229
You can also deploy the Bicep file by using Azure CLI or Azure PowerShell:
219230

0 commit comments

Comments
 (0)