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/templates/create-visual-studio-deployment-project.md
+23-9Lines changed: 23 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,12 @@ ms.date: 03/20/2024
7
7
8
8
# Creating and deploying Azure resource groups through Visual Studio
9
9
10
+
> [!NOTE]
11
+
> The Azure Resource Group project is now in extended support, meaning we will continue to support existing features and capabilities but won't prioritize adding new features.
12
+
13
+
> [!NOTE]
14
+
> For the best and most secure experience, we strongly recommend updating your Visual Studio installation to the [latest Long-Term Support (LTS) version](/visualstudio/install/update-visual-studio?view=vs-2022). Upgrading will improve both the reliability and overall performance of your Visual Studio environment.
15
+
10
16
With Visual Studio, you can create a project that deploys your infrastructure and code to Azure. For example, you can deploy the web host, website, and code for the website. Visual Studio provides many different starter templates for deploying common scenarios. In this article, you deploy a web app.
11
17
12
18
This article shows how to use [Visual Studio 2019 or later with the Azure development and ASP.NET workloads installed](/visualstudio/install/install-visual-studio). If you use Visual Studio 2017, your experience is largely the same.
@@ -73,23 +79,20 @@ You can customize a deployment project by modifying the Resource Manager templat
73
79
1. The parameter for the type of storage account is pre-defined with allowed types and a default type. You can leave these values or edit them for your scenario. If you don't want anyone to deploy a **Premium_LRS** storage account through this template, remove it from the allowed types.
74
80
75
81
```json
76
-
"demoaccountType": {
82
+
"demoAccountType": {
77
83
"type": "string",
78
84
"defaultValue": "Standard_LRS",
79
85
"allowedValues": [
80
86
"Standard_LRS",
81
87
"Standard_ZRS",
82
88
"Standard_GRS",
83
-
"Standard_RAGRS"
89
+
"Standard_RAGRS",
90
+
"Premium_LRS"
84
91
]
85
92
}
86
93
```
87
94
88
-
1. Visual Studio also provides intellisense to help you understand the properties that are available when editing the template. For example, to edit the properties for your App Service plan, navigate to the **HostingPlan** resource, and add a value for the **properties**. Notice that intellisense shows the available values and provides a description of that value.
89
-
90
-
:::image type="content" source="./media/create-visual-studio-deployment-project/show-intellisense.png" alt-text="Screenshot of Visual Studio editor showing intellisense suggestions for Resource Manager template.":::
91
-
92
-
You can set **numberOfWorkers** to 1, and save the file.
95
+
1. Navigate to the **HostingPlan** resource, and add a value for the **properties** with some properties.
93
96
94
97
```json
95
98
"properties": {
@@ -98,11 +101,22 @@ You can customize a deployment project by modifying the Resource Manager templat
98
101
}
99
102
```
100
103
104
+
You also need to define the `hostingPlanName` parameter:
105
+
106
+
```json
107
+
"hostingPlanName": {
108
+
"type": "string",
109
+
"metadata": {
110
+
"description": "Hosting paln name."
111
+
}
112
+
}
113
+
```
114
+
101
115
1. Open the **WebSite.parameters.json** file. You use the parameters file to pass in values during deployment that customize the resource being deployed. Give the hosting plan a name, and save the file.
0 commit comments