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
+20-7Lines changed: 20 additions & 7 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.
@@ -86,11 +92,7 @@ You can customize a deployment project by modifying the Resource Manager templat
86
92
}
87
93
```
88
94
89
-
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.
90
-
91
-
:::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.":::
92
-
93
-
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.
94
96
95
97
```json
96
98
"properties": {
@@ -99,11 +101,22 @@ You can customize a deployment project by modifying the Resource Manager templat
99
101
}
100
102
```
101
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
+
102
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.
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/update-visual-studio-deployment-script.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,17 @@
2
2
title: Update Visual Studio's template deployment script to use Az PowerShell
3
3
description: Update the Visual Studio template deployment script from AzureRM to Az PowerShell
4
4
ms.topic: how-to
5
-
ms.date: 09/26/2024
5
+
ms.date: 10/18/2024
6
6
---
7
7
8
8
# Update Visual Studio template deployment script to use Az PowerShell module
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
Visual Studio 16.4 supports using the Az PowerShell module in the template deployment script. However, Visual Studio doesn't automatically install that module. To use the Az module, you need to take four steps:
0 commit comments