Skip to content

Commit 3e04156

Browse files
committed
update
1 parent bde09e5 commit 3e04156

File tree

3 files changed

+23
-57
lines changed

3 files changed

+23
-57
lines changed
Loading

articles/azure-resource-manager/resource-manager-tutorial-create-encrypted-storage-accounts.md

Lines changed: 10 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.service: azure-resource-manager
1111
ms.workload: multiple
1212
ms.tgt_pltfrm: na
1313
ms.devlang: na
14-
ms.date: 07/20/2018
14+
ms.date: 08/24/2018
1515
ms.topic: tutorial
1616
ms.author: jgao
1717

@@ -27,9 +27,7 @@ This tutorial covers the following tasks:
2727

2828
> [!div class="checklist"]
2929
> * Open a Quickstart template
30-
> * Understand the template format
31-
> * Use parameters in template
32-
> * Use variables in template
30+
> * Understand the template
3331
> * Edit the template
3432
> * Deploy the template
3533
@@ -98,7 +96,7 @@ Variables allow you to construct values that can be used throughout your templat
9896
This template defines one variable *storageAccountName*. In the definition, two template functions are used:
9997

10098
- **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).
102100

103101
To use the variable defined in the template:
104102

@@ -108,10 +106,10 @@ To use the variable defined in the template:
108106

109107
## Edit the template
110108

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

113111
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.
115113
3. Explore the encryption-related information.
116114
4. Inside the properties element of the storage account resource definition, add the following json:
117115

@@ -127,59 +125,17 @@ To find the storage account encryption-related configuration, you can use the te
127125
```
128126
This part enables the encryption function of the blob storage service.
129127

130-
The final resources element looks like:
128+
From Visual Studio Code, modify the template so that the final resources element looks like:
131129

132130
![Resource Manager template encrypted storage account resources](./media/resource-manager-tutorial-create-encrypted-storage-accounts/resource-manager-template-encrypted-storage-resources.png)
133131

134132
## Deploy the template
135133

136-
There are many methods for deploying templates. In this tutorial, you use the 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.
137135

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

141-
![Azure portal Cloud shell](./media/resource-manager-tutorial-create-encrypted-storage-accounts/azure-portal-cloud-shell.png)
142-
143-
3. Select the down arrow and then select **Bash** if it is not Bash. You use Azure CLI in this tutorial.
144-
145-
![Azure portal Cloud shell CLI](./media/resource-manager-tutorial-create-encrypted-storage-accounts/azure-portal-cloud-shell-choose-cli.png)
146-
4. Select **Restart** to restart the shell.
147-
5. Select **Upload/download files**, and then select **Upload**.
148-
149-
![Azure portal Cloud shell upload file](./media/resource-manager-tutorial-create-encrypted-storage-accounts/azure-portal-cloud-shell-upload-file.png)
150-
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-
![Azure portal Cloud shell list file](./media/resource-manager-tutorial-create-encrypted-storage-accounts/azure-portal-cloud-shell-list-file.png)
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
160-
```
161-
Here is the screenshot of a sample deployment:
162-
163-
![Azure portal Cloud shell deploy template](./media/resource-manager-tutorial-create-encrypted-storage-accounts/azure-portal-cloud-shell-deploy-template.png)
164-
165-
On the screenshot, these values are used:
166-
167-
* **&lt;ResourceGroupName>**: myresourcegroup0719. There are two appearances of the parameter. Make sure to use the same value.
168-
* **&lt;AzureLocation>**: eastus2
169-
* **&lt;DeployName>**: mydeployment0719
170-
* **&lt;TemplateFile>**: azuredeploy.json
171-
172-
From the screenshot output, the storage account name is *fhqbfslikdqdsstandardsa*.
173-
174-
9. Run the following PowerShell command to list the newly created storage account:
175-
176-
```cli
177-
az storage account show --resource-group <ResourceGroupName> --name <StorageAccountName>
178-
```
179-
180-
You shall see an output similar to the following screenshot which indicates encryption has been enabled for the blob storage.
181-
182-
![Azure resource manager encrypted storage account](./media/resource-manager-tutorial-create-encrypted-storage-accounts/resource-manager-template-encrypted-storage-account.png)
138+
![Azure Resource Manager encrypted storage account](./media/resource-manager-tutorial-create-encrypted-storage-accounts/resource-manager-template-encrypted-storage-account.png)
183139

184140
## Clean up resources
185141

@@ -192,7 +148,7 @@ When the Azure resources are no longer needed, clean up the resources you deploy
192148

193149
## Next steps
194150

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

197153
> [!div class="nextstepaction"]
198154
> [Create multiple resources](./resource-manager-tutorial-create-templates-with-dependent-resources.md)

articles/azure-resource-manager/resource-manager-tutorial-create-templates-with-dependent-resources.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.service: azure-resource-manager
1111
ms.workload: multiple
1212
ms.tgt_pltfrm: na
1313
ms.devlang: na
14-
ms.date: 07/20/2018
14+
ms.date: 08/24/2018
1515
ms.topic: tutorial
1616
ms.author: jgao
1717
---
@@ -53,12 +53,22 @@ Azure QuickStart Templates is a repository for Resource Manager templates. Inste
5353

5454
## Explore the template
5555

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+
5663
1. From Visual Studio Code, collapse the elements until you only see the first-level elements and the second-level elements inside **resources**:
5764

5865
![Visual Studio Code Azure Resource Manager templates](./media/resource-manager-tutorial-create-templates-with-dependent-resources/resource-manager-template-visual-studio-code.png)
5966

6067
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:
6272

6373
![Visual Studio Code Azure Resource Manager templates dependson](./media/resource-manager-tutorial-create-templates-with-dependent-resources/resource-manager-template-visual-studio-code-dependson.png)
6474

@@ -67,7 +77,7 @@ Azure QuickStart Templates is a repository for Resource Manager templates. Inste
6777
* publicIPAddress
6878
* virtualNetwork
6979

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:
7181

7282
* storageAccount
7383
* networkInterface

0 commit comments

Comments
 (0)