Skip to content

Commit 28c88fc

Browse files
committed
update
1 parent df7970d commit 28c88fc

12 files changed

+10
-23
lines changed

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

Lines changed: 8 additions & 21 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: 10/22/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: 10/22/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?view=vs-2022). 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](/troubleshoot/developer/visualstudio/ide/troubleshoot-create-deploy-resource-group.md).
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

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

95-
1. Open the **WebSite.parameters.json** file from Solution Explorer. 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.
96-
97-
```json
98-
{
99-
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
100-
"contentVersion": "1.0.0.0",
101-
"parameters": {
102-
"webAppName": {
103-
"value": "demoWebApp"
104-
}
105-
}
106-
}
107-
```
108-
10995
## Deploy project to Azure
11096

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

163149
1. Add an **ASP.NET Core Web Application**.
164150

165-
:::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.":::
166152

167153
1. Give your web app a name, and select **Create**.
168154

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

199185
Save your template.
200186

201-
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.":::
202190

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+
203193
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.
204194

205195
```json
206196
{
207197
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
208198
"contentVersion": "1.0.0.0",
209199
"parameters": {
210-
"hostingPlanName": {
211-
"value": "demoHostPlan"
212-
},
213200
"ExampleAppPackageFolder": {
214201
"value": "ExampleApp"
215202
},
-8.41 KB
Loading
-4.32 KB
Loading
-26.5 KB
Loading
Loading
2.05 KB
Loading
-20.3 KB
Loading
10.3 KB
Loading
-52.4 KB
Loading
-69.3 KB
Loading

0 commit comments

Comments
 (0)