Skip to content

Commit 30ac102

Browse files
authored
Merge pull request #289060 from mumian/1022-arm-vs-refresh
Refresh the ARM VS article
2 parents a886908 + ad98695 commit 30ac102

18 files changed

+13
-46
lines changed

articles/azure-resource-manager/templates/create-visual-studio-deployment-project.md

Lines changed: 11 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Create & deploy Visual Studio resource group projects
33
description: Use Visual Studio to create an Azure resource group project and deploy the resources to Azure.
44
ms.topic: how-to
5-
ms.date: 03/20/2024
5+
ms.date: 10/24/2024
66
---
77

88
# Creating and deploying Azure resource groups through Visual Studio
@@ -11,7 +11,7 @@ ms.date: 03/20/2024
1111
> 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.
1212
1313
> [!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.
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). Upgrading will improve both the reliability and overall performance of your Visual Studio environment. If you choose not to upgrade, you may encounter the issues documented in [Issues when creating and deploying Azure resource groups through Visual Studio](https://learn.microsoft.com/troubleshoot/developer/visualstudio/ide/troubleshoot-create-deploy-resource-group).
1515
1616
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.
1717

@@ -22,9 +22,9 @@ This article shows how to use [Visual Studio 2019 or later with the Azure develo
2222
In this section, you create an Azure Resource Group project with a **Web app** template.
2323

2424
1. In Visual Studio, choose **File**>**New**>**Project**.
25-
1. Select the **Azure Resource Group** project template and **Next**.
25+
1. Search **resource group**, and then select the **Azure Resource Group (extended support)** project template and **Next**.
2626

27-
:::image type="content" source="./media/create-visual-studio-deployment-project/create-project.png" alt-text="Screenshot of Create a new project window highlighting Azure Resource Group and Next button.":::
27+
:::image type="content" source="./media/create-visual-studio-deployment-project/add-app.png" alt-text="Screenshot of Create a new project window highlighting Azure Resource Group and Next button.":::
2828

2929
1. Give your project a name. The other default settings are probably fine, but review them to make they work for your environment. When done, select **Create**.
3030

@@ -64,7 +64,7 @@ You can customize a deployment project by modifying the Resource Manager templat
6464

6565
:::image type="content" source="./media/create-visual-studio-deployment-project/navigate-json.png" alt-text="Screenshot of the Visual Studio editor with a selected element in the JSON Outline window.":::
6666

67-
1. You can add a resource by either selecting the **Add Resource** button at the top of the JSON Outline window, or by right-clicking **resources** and selecting **Add New Resource**.
67+
1. You can add a resource by right-clicking **resources** and selecting **Add New Resource**.
6868

6969
:::image type="content" source="./media/create-visual-studio-deployment-project/add-resource.png" alt-text="Screenshot of the JSON Outline window highlighting the Add New Resource option.":::
7070

@@ -92,40 +92,6 @@ You can customize a deployment project by modifying the Resource Manager templat
9292
}
9393
```
9494

95-
1. Navigate to the **HostingPlan** resource, and add a value for the **properties** with some properties.
96-
97-
```json
98-
"properties": {
99-
"name": "[parameters('hostingPlanName')]",
100-
"numberOfWorkers": 1
101-
}
102-
```
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-
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.
116-
117-
```json
118-
{
119-
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
120-
"contentVersion": "1.0.0.0",
121-
"parameters": {
122-
"hostingPlanName": {
123-
"value": "demoHostPlan"
124-
}
125-
}
126-
}
127-
```
128-
12995
## Deploy project to Azure
13096

13197
You're now ready to deploy your project to a resource group.
@@ -182,7 +148,7 @@ At this point, you've deployed the infrastructure for your app, but there's no a
182148

183149
1. Add an **ASP.NET Core Web Application**.
184150

185-
:::image type="content" source="./media/create-visual-studio-deployment-project/add-app.png" alt-text="Screenshot of the New Project window with ASP.NET Core Web Application selected.":::
151+
:::image type="content" source="./media/create-visual-studio-deployment-project/arm-vs-create-aspnet-core-web-app.png" alt-text="Screenshot of the New Project window with ASP.NET Core Web Application selected.":::
186152

187153
1. Give your web app a name, and select **Create**.
188154

@@ -218,18 +184,19 @@ At this point, you've deployed the infrastructure for your app, but there's no a
218184

219185
Save your template.
220186

221-
1. There are some new parameters in your template. They were added in the previous step. You don't need to provide values for **_artifactsLocation** or **_artifactsLocationSasToken** because those values are automatically generated. However, you have to set the folder and file name to the path that contains the deployment package. The names of these parameters end with **PackageFolder** and **PackageFileName**. The first part of the name is the name of the Web Deploy resource you added. In this article, they're named **ExampleAppPackageFolder** and **ExampleAppPackageFileName**.
187+
1. There are some new parameters added in the previous step.
188+
189+
:::image type="content" source="./media/create-visual-studio-deployment-project/new-parameters.png" alt-text="Screenshot of the new parameters.":::
222190

191+
You don't need to provide values for **_artifactsLocation** or **_artifactsLocationSasToken** because those values are automatically generated. However, you have to set the folder and file name to the path that contains the deployment package. The names of these parameters end with **PackageFolder** and **PackageFileName**. The first part of the name is the name of the Web Deploy resource you added. In this article, they're named **ExampleAppPackageFolder** and **ExampleAppPackageFileName**.
192+
223193
Open **Website.parameters.json** and set those parameters to the values you saw in the reference properties. Set **ExampleAppPackageFolder** to the name of the folder. Set **ExampleAppPackageFileName** to the name of the zip file.
224194

225195
```json
226196
{
227197
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
228198
"contentVersion": "1.0.0.0",
229199
"parameters": {
230-
"hostingPlanName": {
231-
"value": "demoHostPlan"
232-
},
233200
"ExampleAppPackageFolder": {
234201
"value": "ExampleApp"
235202
},
19.4 KB
Loading
-8.41 KB
Loading
-4.32 KB
Loading
2.03 KB
Loading
-26.5 KB
Loading
Loading
2.05 KB
Loading
-20.3 KB
Loading

0 commit comments

Comments
 (0)