Skip to content

Commit 495605d

Browse files
authored
Merge pull request #110541 from mumian/0407-tutorial-ref
0407 tutorial ref
2 parents 16f70c8 + 6d392d1 commit 495605d

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed
Loading
Loading
Loading

articles/azure-resource-manager/templates/template-tutorial-use-template-reference.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Utilize template reference
3-
description: Utilize the Azure Resource Manager template reference to create a template.
2+
title: Use template reference
3+
description: Use the Azure Resource Manager template reference to create a template.
44
author: mumian
55
ms.date: 03/27/2020
66
ms.topic: tutorial
77
ms.author: jgao
88
ms.custom: seodec18
99
---
1010

11-
# Tutorial: Utilize the ARM template reference
11+
# Tutorial: Utilize the Resource Manager template reference
1212

1313
Learn how to find the template schema information, and use the information to create Azure Resource Manager (ARM) templates.
1414

@@ -60,10 +60,14 @@ To complete this article, you need:
6060
* **resources**: specify the resource types that are deployed or updated in a resource group.
6161
* **outputs**: specify the values that are returned after deployment.
6262

63-
1. Expand **resources**. There is a `Microsoft.Storage/storageAccounts` resource defined.
63+
1. Expand **resources**. There is a `Microsoft.Storage/storageAccounts` resource defined. The SKU name uses a parameter value. The parameter is called **storageAccountType**.
6464

6565
![Resource Manager template storage account definition](./media/template-tutorial-use-template-reference/resource-manager-template-storage-resource.png)
6666

67+
1. Expand **parameters** to see how **storageAccountType** is defined. The parameter has four allowed values. You will find the other allowed values, and then revise the parameter definition.
68+
69+
![Resource Manager template storage account resources skus](./media/template-tutorial-use-template-reference/resource-manager-template-storage-resources-skus-old.png)
70+
6771
## Find the template reference
6872

6973
1. Browse to [Azure Template reference](https://docs.microsoft.com/azure/templates/).
@@ -79,7 +83,7 @@ To complete this article, you need:
7983

8084
![Resource Manager template reference storage account types versions](./media/template-tutorial-use-template-reference/resource-manager-template-resources-reference-storage-accounts-types-versions.png)
8185

82-
1. Select the latest version of the **storageAccount** resource type. The latest version is **2019-06-01** when this article is written.
86+
1. Select the latest version of the **storageAccount** resource type. The latest version is **2019-06-01** when this article is written. Make sure this version matches the version used for the storage account resource in your template. If you update the API version, verify the resource definition matches the template reference.
8387

8488
1. This page lists the details of the storageAccount resource type. For example, it lists the allowed values for the **Sku** object. There are more skus than what is listed in the quickstart template that you opened earlier. You can customize the quickstart template to include all the available storage types.
8589

@@ -93,7 +97,21 @@ From Visual Studio Code, add the additional storage account types as shown in th
9397

9498
## Deploy the template
9599

96-
Refer to the [Deploy the template](quickstart-create-templates-use-visual-studio-code.md#deploy-the-template) section in the Visual Studio Code quickstart for the deployment procedure. When you deploy the template, specify the **storageAccountType** parameter with a newly added value, for example, **Premium_ZRS**. The deploy would fail if you use the original quickstart template because **Premium_ZRS** was not an allowed value.
100+
Refer to the [Deploy the template](quickstart-create-templates-use-visual-studio-code.md#deploy-the-template) section in the Visual Studio Code quickstart for the deployment procedure. When you deploy the template, specify the **storageAccountType** parameter with a newly added value, for example, **Premium_ZRS**. The deploy would fail if you use the original quickstart template because **Premium_ZRS** was not an allowed value. To pass the parameter value, add the following switch to the deployment command:
101+
102+
# [CLI](#tab/CLI)
103+
104+
```azurecli
105+
--parameters storageAccountType='Premium_ZRS'
106+
```
107+
108+
# [PowerShell](#tab/PowerShell)
109+
110+
```azurepowershell
111+
-storageAccountType "Premium_ZRS"
112+
```
113+
114+
---
97115

98116
## Clean up resources
99117

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
href: deployment-tutorial-pipeline.md
8686
- name: Advanced templates
8787
items:
88-
- name: Utilize template reference
88+
- name: Use template reference
8989
href: template-tutorial-use-template-reference.md
9090
- name: Create multiple instances
9191
displayName: iteration,copy

0 commit comments

Comments
 (0)