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/quickstart-create-bicep-use-visual-studio.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Create Bicep files - Visual Studio
3
-
description: Use Visual Studio and the Bicep extension to create Bicep files for deploy Azure resources
3
+
description: Use Visual Studio and the Bicep extension to create Bicep files for deploy Azure resources.
4
4
ms.date: 09/12/2022
5
5
ms.topic: quickstart
6
6
@@ -26,7 +26,7 @@ Visual Studio with the Bicep extension simplifies development by providing pre-d
26
26
27
27
In *main.bicep*, type **vnet**. Select **res-vnet** from the list, and then press **[TAB]** or **[ENTER]**.
28
28
29
-
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/add-snippet.png" alt-text="Screenshot of adding snippet for virtual network":::
29
+
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/add-snippet.png" alt-text="Screenshot of adding snippet for virtual network.":::
30
30
31
31
> [!TIP]
32
32
> If you don't see those intellisense options in Visual Studio, make sure you've installed the Bicep extension as specified in [Prerequisites](#prerequisites). If you have installed the extension, give the Bicep language service some time to start after opening your Bicep file. It usually starts quickly, but you will not have intellisense options until it starts.
@@ -79,7 +79,7 @@ param storageName
79
79
80
80
When you add a space after **storageName**, notice that intellisense offers the data types that are available for the parameter. Select **string**.
81
81
82
-
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/add-param.png" alt-text="Screenshot of adding string type to parameter":::
82
+
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/add-param.png" alt-text="Screenshot of adding string type to parameter.":::
83
83
84
84
You have the following parameter:
85
85
@@ -91,7 +91,7 @@ This parameter works fine, but storage accounts have limits on the length of the
91
91
92
92
Add a line above the parameter, and type **@**. You see the available decorators. Notice there are decorators for both **minLength** and **maxLength**.
93
93
94
-
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/add-decorators.png" alt-text="Screenshot of adding decorators to parameter":::
94
+
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/add-decorators.png" alt-text="Screenshot of adding decorators to parameter.":::
95
95
96
96
Add both decorators and specify the character limits, as shown below:
97
97
@@ -132,15 +132,15 @@ resource exampleStorage
132
132
133
133
When you add a space after the symbolic name, a list of resource types is displayed. Continue typing **storage** until you can select it from the available options.
134
134
135
-
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/select-resource-type.png" alt-text="Screenshot of selecting storage accounts for resource type":::
135
+
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/select-resource-type.png" alt-text="Screenshot of selecting storage accounts for resource type.":::
136
136
137
137
After selecting **Microsoft.Storage/storageAccounts**, you're presented with the available API versions. Select **2021-09-01** or the latest API version. We recommend using the latest API version.
138
138
139
-
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/select-api-version.png" alt-text="Screenshot of selecting API version for resource type":::
139
+
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/select-api-version.png" alt-text="Screenshot of selecting API version for resource type.":::
140
140
141
141
After the single quote for the resource type, add `=` and a space. You're presented with options for adding properties to the resource. Select **required-properties**.
142
142
143
-
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/select-required-properties.png" alt-text="Screenshot of adding required properties":::
143
+
:::image type="content" source="./media/quickstart-create-bicep-use-visual-studio/select-required-properties.png" alt-text="Screenshot of adding required properties.":::
144
144
145
145
This option adds all of the properties for the resource type that are required for deployment. After selecting this option, your storage account has the following properties:
0 commit comments