Skip to content

Commit 569e20e

Browse files
Merge pull request #288737 from mumian/1015-vs-sfi
Refresh the vs article and add notes.
2 parents c8f0a92 + c343f06 commit 569e20e

File tree

11 files changed

+31
-10
lines changed

11 files changed

+31
-10
lines changed

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

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ ms.date: 03/20/2024
77

88
# Creating and deploying Azure resource groups through Visual Studio
99

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+
1016
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.
1117

1218
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
7379
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.
7480

7581
```json
76-
"demoaccountType": {
82+
"demoAccountType": {
7783
"type": "string",
7884
"defaultValue": "Standard_LRS",
7985
"allowedValues": [
8086
"Standard_LRS",
8187
"Standard_ZRS",
8288
"Standard_GRS",
83-
"Standard_RAGRS"
89+
"Standard_RAGRS",
90+
"Premium_LRS"
8491
]
8592
}
8693
```
8794

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.
9396

9497
```json
9598
"properties": {
@@ -98,11 +101,22 @@ You can customize a deployment project by modifying the Resource Manager templat
98101
}
99102
```
100103

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+
101115
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.
102116

103117
```json
104118
{
105-
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
119+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
106120
"contentVersion": "1.0.0.0",
107121
"parameters": {
108122
"hostingPlanName": {
@@ -210,7 +224,7 @@ At this point, you've deployed the infrastructure for your app, but there's no a
210224

211225
```json
212226
{
213-
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
227+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
214228
"contentVersion": "1.0.0.0",
215229
"parameters": {
216230
"hostingPlanName": {
-61.3 KB
Loading
-4.37 KB
Loading
1.18 KB
Loading
-6.63 KB
Loading
19.8 KB
Loading
19.7 KB
Loading
-2.43 KB
Loading
-5.14 KB
Loading

articles/azure-resource-manager/templates/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@
461461
- name: Visual Studio
462462
href: create-visual-studio-deployment-project.md
463463
- name: Update VS deployment script to Az module
464+
displayName: Visual Studio
464465
href: update-visual-studio-deployment-script.md
465466
- name: Reference
466467
items:

0 commit comments

Comments
 (0)