You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/deploy-vscode.md
+28-4Lines changed: 28 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,46 @@ description: Deploy Bicep files from Visual Studio Code.
4
4
author: mumian
5
5
ms.author: jgao
6
6
ms.topic: conceptual
7
-
ms.date: 06/30/2022
7
+
ms.date: 08/04/2022
8
8
---
9
9
10
10
# Deploy Bicep files from Visual Studio Code
11
11
12
12
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.
13
13
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.":::
15
19
16
20
- Right-click anywhere inside a Bicep file, and then select **Deploy Bicep File**.
21
+
17
22
- Select **Command Palette** from the **View** menu, and then select **Bicep: Deploy Bicep File**.
18
23
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
+
19
26
After you select the command, you follow the wizard to enter the values:
20
27
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.
23
47
24
48
For more information about VS Code commands, see [Visual Studio Code](./visual-studio-code.md).
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio-code.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,9 +211,20 @@ The visualizer shows the resources defined in the Bicep file with the resource d
211
211
## Deploy the Bicep file
212
212
213
213
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
+
214
217
1. From the **Select Resource Group** listbox on the top, select **Create new Resource Group**.
215
218
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
+
216
224
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).
217
228
218
229
You can also deploy the Bicep file by using Azure CLI or Azure PowerShell:
0 commit comments