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
@@ -27,9 +27,7 @@ This tutorial covers the following tasks:
27
27
28
28
> [!div class="checklist"]
29
29
> * Open a Quickstart template
30
-
> * Understand the template format
31
-
> * Use parameters in template
32
-
> * Use variables in template
30
+
> * Understand the template
33
31
> * Edit the template
34
32
> * Deploy the template
35
33
@@ -98,7 +96,7 @@ Variables allow you to construct values that can be used throughout your templat
98
96
This template defines one variable *storageAccountName*. In the definition, two template functions are used:
99
97
100
98
-**concat()**: concatenates strings. For more information, see [concat](./resource-group-template-functions-string.md#concat).
101
-
-**uniqueString()**: creates a deterministic hash string based on the values provided as parameters. Each Azure storage account must have an unique name across of all Azure. This function provides an unique string. For more string functions, see [String functions](./resource-group-template-functions-string.md).
99
+
-**uniqueString()**: creates a deterministic hash string based on the values provided as parameters. Each Azure storage account must have a unique name across of all Azure. This function provides a unique string. For more string functions, see [String functions](./resource-group-template-functions-string.md).
102
100
103
101
To use the variable defined in the template:
104
102
@@ -108,10 +106,10 @@ To use the variable defined in the template:
108
106
109
107
## Edit the template
110
108
111
-
To find the storage account encryption-related configuration, you can use the template reference of Azure Storage account.
109
+
The goal of this tutorial is to define a template to create an encrypted storage account. The sample template only creates a basic unencrypted storage account. To find the encryption-related configuration, you can use the template reference of Azure Storage account.
112
110
113
111
1. Browse to [Azure Templates](https://docs.microsoft.com/azure/templates/).
114
-
2. From the TOC on the left, select **Reference**->**Storage**->**Storage Accounts**. The page contains the information for defining a Storage Account information.
112
+
2. From the TOC on the left, select **Reference**->**Storage**->**Storage Accounts**. You can also enter **storage** in the **Filter by title** field. The page contains the schema for defining a Storage Account information.
115
113
3. Explore the encryption-related information.
116
114
4. Inside the properties element of the storage account resource definition, add the following json:
117
115
@@ -127,59 +125,17 @@ To find the storage account encryption-related configuration, you can use the te
127
125
```
128
126
This part enables the encryption function of the blob storage service.
129
127
130
-
The final resources element looks like:
128
+
From Visual Studio Code, modify the template so that the final resources element looks like:
There are many methods for deploying templates. In this tutorial, you usethe Cloud shell from the Azure portal. The Cloud shell supports both Azure CLI and Azure PowerShell. The instructions provided here use CLI.
134
+
Refer to the [Deploy the template](./resource-manager-quickstart-create-templates-use-visual-studio-code.md#deploy-the-template) section in the Visual Studio Code quickstart for the deployment procedure.
137
135
138
-
1. Sign in to the [Azure portal](https://portal.azure.com)
139
-
2. Select **Cloud Shell** from the upper right corner as shown in the following image:
136
+
The following screenshot shows the CLI command for listing the newly created storage account, which indicates encryption has been enabled for the blob storage.
6. Select the file you saved earlier in the tutorial. The default name is **azuredeploy.json**.
151
-
7. From the Cloud shell, run the **ls** command to verify the file is uploaded successfully. You can also use the **cat** command to verify the template content.
152
-
153
-

154
-
8. From the Cloud shell, run the following commands:
155
-
156
-
```cli
157
-
az group create --name <ResourceGroupName> --location <AzureLocation>
158
-
159
-
az group deployment create --name <DeploymentName> --resource-group <ResourceGroupName> --template-file azuredeploy.json
@@ -192,7 +148,7 @@ When the Azure resources are no longer needed, clean up the resources you deploy
192
148
193
149
## Next steps
194
150
195
-
In this tutorial, you learned how to use template reference to customize an existing template. The template used in this tutorial only contains one Azure resource. In the next tutorial, you develop a template with multiple resources. Some of the resources have dependent resources.
151
+
In this tutorial, you learned how to use template reference to customize an existing template. The template used in this tutorial only contains one Azure resource. In the next tutorial, you develop a template with multiple resources. Some of the resources have dependent resources.
@@ -53,12 +53,22 @@ Azure QuickStart Templates is a repository for Resource Manager templates. Inste
53
53
54
54
## Explore the template
55
55
56
+
When you explore the template in this section, try to answer these questions:
57
+
58
+
- How many Azure resources defined in this template?
59
+
- One of the resources is an Azure storage account. Does the schema look like the one used in the last tutorial?
60
+
- Can you find the schema reference for the resources defined in this template?
61
+
- Can you find the dependencies of the resources?
62
+
56
63
1. From Visual Studio Code, collapse the elements until you only see the first-level elements and the second-level elements inside **resources**:
57
64
58
65

59
66
60
67
There are five resources defined by the template.
61
-
2. Expand the fourth element:
68
+
2. Expand the first resource. It is a storage account. The schema shall be identical to the one used in the last tutorial.
69
+
3. Expand the second resource. The resource type is **Microsoft.Network/publicIPAddresses**. To find the template reference, browse to [template reference](https://docs.microsoft.com/en-us/azure/templates/), enter **public ip address** or **public ip addresses** in the **Filter by title** field.
70
+
4. Repeat the last step to find the template reference for the other resources defined in this schema. Compare the resource definition to the reference.
71
+
5. Expand the fourth resource:
62
72
63
73

64
74
@@ -67,7 +77,7 @@ Azure QuickStart Templates is a repository for Resource Manager templates. Inste
67
77
* publicIPAddress
68
78
* virtualNetwork
69
79
70
-
3. Expand the fifth element. This resource is a virtual machine. It depends on two other resources:
80
+
6. Expand the fifth resource. This resource is a virtual machine. It depends on two other resources:
0 commit comments