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
Learn how to create linked Azure Resource Manager templates. Using linked templates, you can have one template call another template. It is great for modularizing templates. In this tutorial, you use the same template used in [Tutorial: Create Azure Resource Manager templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md), which creates a virtual machine, a virtual network, and other dependent resource including a storage account. You separate the storage account resource creation to a linked template.
12
+
Learn how to create linked Azure Resource Manager (ARM) templates. Using linked templates, you can have one template call another template. It is great for modularizing templates. In this tutorial, you use the same template used in [Tutorial: Create ARM templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md), which creates a virtual machine, a virtual network, and other dependent resource including a storage account. You separate the storage account resource creation to a linked template.
13
13
14
14
Calling a linked template is like making a function call. You also learn how to pass parameter values to the linked template, and how to get "return values" from the linked template.
15
15
@@ -34,18 +34,18 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
34
34
35
35
To complete this article, you need:
36
36
37
-
* Visual Studio Code with Resource Manager Tools extension. See [Use Visual Studio Code to create Azure Resource Manager templates](use-vs-code-to-create-template.md).
37
+
* Visual Studio Code with Resource Manager Tools extension. See [Use Visual Studio Code to create ARM templates](use-vs-code-to-create-template.md).
38
38
* To increase security, use a generated password for the virtual machine administrator account. Here is a sample for generating a password:
39
39
40
40
```console
41
41
openssl rand -base64 32
42
42
```
43
43
44
-
Azure Key Vault is designed to safeguard cryptographic keys and other secrets. For more information, see [Tutorial: Integrate Azure Key Vault in Resource Manager Template deployment](./template-tutorial-use-key-vault.md). We also recommend you to update your password every three months.
44
+
Azure Key Vault is designed to safeguard cryptographic keys and other secrets. For more information, see [Tutorial: Integrate Azure Key Vault in ARM template deployment](./template-tutorial-use-key-vault.md). We also recommend you to update your password every three months.
45
45
46
46
## Open a Quickstart template
47
47
48
-
Azure QuickStart Templates is a repository for Resource Manager templates. Instead of creating a template from scratch, you can find a sample template and customize it. The template used in this tutorial is called [Deploy a simple Windows VM](https://azure.microsoft.com/resources/templates/101-vm-simple-windows/). This is the same template used in [Tutorial: Create Azure Resource Manager templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md). You save two copies of the same template to be used as:
48
+
Azure QuickStart Templates is a repository for ARM templates. Instead of creating a template from scratch, you can find a sample template and customize it. The template used in this tutorial is called [Deploy a simple Windows VM](https://azure.microsoft.com/resources/templates/101-vm-simple-windows/). This is the same template used in [Tutorial: Create ARM templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md). You save two copies of the same template to be used as:
49
49
50
50
* **The main template**: create all the resources except the storage account.
51
51
* **The linked template**: create the storage account.
@@ -160,7 +160,7 @@ The linked template creates a storage account. The linked template can be used a
160
160
161
161
## Upload the linked template
162
162
163
-
The main template and the linked template need to be accessible from where you run the deployment. In this tutorial, you use the Cloud shell deployment method as you used in [Tutorial: Create Azure Resource Manager templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md). The main template (azuredeploy.json) is uploaded to the shell. The linked template (linkedTemplate.json) must be shared somewhere securely. The following PowerShell script creates an Azure Storage account, uploads the template to the Storage account, and then generates a SAS token to grant limited access to the template file. To simplify the tutorial, the script downloads a completed linked template from a GitHub repository. If you want to use the linked template you created, you can use the [Cloud shell](https://shell.azure.com) to upload your linked template, and then modify the script to use your own linked template.
163
+
The main template and the linked template need to be accessible from where you run the deployment. In this tutorial, you use the Cloud shell deployment method as you used in [Tutorial: Create ARM templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md). The main template (azuredeploy.json) is uploaded to the shell. The linked template (linkedTemplate.json) must be shared somewhere securely. The following PowerShell script creates an Azure Storage account, uploads the template to the Storage account, and then generates a SAS token to grant limited access to the template file. To simplify the tutorial, the script downloads a completed linked template from a GitHub repository. If you want to use the linked template you created, you can use the [Cloud shell](https://shell.azure.com) to upload your linked template, and then modify the script to use your own linked template.
164
164
165
165
> [!NOTE]
166
166
> The script limits the SAS token to be used within eight hours. If you need more time to complete this tutorial, increase the expiry time.
@@ -261,7 +261,7 @@ The main template is called azuredeploy.json.
261
261
262
262
## Configure dependency
263
263
264
-
Recall from [Tutorial: Create Azure Resource Manager templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md), the virtual machine resource depends on the storage account:
264
+
Recall from [Tutorial: Create ARM templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md), the virtual machine resource depends on the storage account:
# Tutorial: Import SQL BACPAC files with ARM templates
11
11
12
-
Learn how to use Azure SQL Database extensions to import a BACPAC file with Azure Resource Manager templates. Deployment artifacts are any files, in addition to the main template files, that are needed to complete a deployment. The BACPAC file is an artifact.
12
+
Learn how to use Azure SQL Database extensions to import a BACPAC file with Azure Resource Manager (ARM) templates. Deployment artifacts are any files, in addition to the main template files, that are needed to complete a deployment. The BACPAC file is an artifact.
13
13
14
-
In this tutorial, you create a template to deploy an Azure SQL server and a SQL database and import a BACPAC file. For information about how to deploy Azure virtual machine extensions by using Azure Resource Manager templates, see [Tutorial: Deploy virtual machine extensions with Azure Resource Manager templates](./template-tutorial-deploy-vm-extensions.md).
14
+
In this tutorial, you create a template to deploy an Azure SQL server and a SQL database and import a BACPAC file. For information about how to deploy Azure virtual machine extensions by using ARM templates, see [Tutorial: Deploy virtual machine extensions with ARM templates](./template-tutorial-deploy-vm-extensions.md).
15
15
16
16
This tutorial covers the following tasks:
17
17
@@ -28,20 +28,20 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
28
28
29
29
To complete this article, you need:
30
30
31
-
* Visual Studio Code with the Resource Manager Tools extension. See [Use Visual Studio Code to create Azure Resource Manager templates](./use-vs-code-to-create-template.md).
31
+
* Visual Studio Code with the Resource Manager Tools extension. See [Use Visual Studio Code to create ARM templates](./use-vs-code-to-create-template.md).
32
32
* To increase security, use a generated password for the Azure SQL Server administrator account. Here's a sample you can use to generate a password:
33
33
34
34
```console
35
35
openssl rand -base64 32
36
36
```
37
37
38
-
Azure Key Vault is designed to safeguard cryptographic keys and other secrets. For more information, see [Tutorial: Integrate Azure Key Vault in Resource Manager Template deployment](./template-tutorial-use-key-vault.md). We also recommend you to update your password every three months.
38
+
Azure Key Vault is designed to safeguard cryptographic keys and other secrets. For more information, see [Tutorial: Integrate Azure Key Vault in ARM template deployment](./template-tutorial-use-key-vault.md). We also recommend you to update your password every three months.
39
39
40
40
## Prepare a BACPAC file
41
41
42
42
A BACPAC file is shared in [GitHub](https://github.com/Azure/azure-docs-json-samples/raw/master/tutorial-sql-extension/SQLDatabaseExtension.bacpac). To create your own, see [Export an Azure SQL database to a BACPAC file](../../sql-database/sql-database-export.md). If you choose to publish the file to your own location, you must update the template later in the tutorial.
43
43
44
-
The BACPAC file must be stored in an Azure Storage account before it can be imported by using a Resource Manager template. The following PowerShell script prepares the BACPAC file with these steps:
44
+
The BACPAC file must be stored in an Azure Storage account before it can be imported by using an ARM template. The following PowerShell script prepares the BACPAC file with these steps:
# Tutorial: Deploy virtual machine extensions with ARM templates
11
11
12
-
Learn how to use [Azure virtual machine extensions](../../virtual-machines/extensions/features-windows.md) to perform post-deployment configuration and automation tasks on Azure VMs. Many different VM extensions are available for use with Azure VMs. In this tutorial, you deploy a Custom Script extension from an Azure Resource Manager template to run a PowerShell script on a Windows VM. The script installs Web Server on the VM.
12
+
Learn how to use [Azure virtual machine extensions](../../virtual-machines/extensions/features-windows.md) to perform post-deployment configuration and automation tasks on Azure VMs. Many different VM extensions are available for use with Azure VMs. In this tutorial, you deploy a Custom Script extension from an Azure Resource Manager (ARM) template to run a PowerShell script on a Windows VM. The script installs Web Server on the VM.
13
13
14
14
This tutorial covers the following tasks:
15
15
@@ -26,14 +26,14 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
26
26
27
27
To complete this article, you need:
28
28
29
-
* Visual Studio Code with Resource Manager Tools extension. See [Use Visual Studio Code to create Azure Resource Manager templates](use-vs-code-to-create-template.md).
29
+
* Visual Studio Code with Resource Manager Tools extension. See [Use Visual Studio Code to create ARM templates](use-vs-code-to-create-template.md).
30
30
* To increase security, use a generated password for the virtual machine administrator account. Here is a sample for generating a password:
31
31
32
32
```console
33
33
openssl rand -base64 32
34
34
```
35
35
36
-
Azure Key Vault is designed to safeguard cryptographic keys and other secrets. For more information, see [Tutorial: Integrate Azure Key Vault in Resource Manager Template deployment](./template-tutorial-use-key-vault.md). We also recommend that you update your password every three months.
36
+
Azure Key Vault is designed to safeguard cryptographic keys and other secrets. For more information, see [Tutorial: Integrate Azure Key Vault in ARM template deployment](./template-tutorial-use-key-vault.md). We also recommend that you update your password every three months.
37
37
38
38
## Prepare a PowerShell script
39
39
@@ -47,7 +47,7 @@ If you choose to publish the file to your own location, you must update the `fil
47
47
48
48
## Open a quickstart template
49
49
50
-
Azure Quickstart Templates is a repository for Resource Manager templates. Instead of creating a template from scratch, you can find a sample template and customize it. The template used in this tutorial is called [Deploy a simple Windows VM](https://azure.microsoft.com/resources/templates/101-vm-simple-windows/).
50
+
Azure Quickstart Templates is a repository for ARM templates. Instead of creating a template from scratch, you can find a sample template and customize it. The template used in this tutorial is called [Deploy a simple Windows VM](https://azure.microsoft.com/resources/templates/101-vm-simple-windows/).
51
51
52
52
1. In Visual Studio Code, select **File** > **Open File**.
53
53
1. In the **File name** box, paste the following URL: https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-windows/azuredeploy.json
@@ -102,7 +102,7 @@ For more information about this resource definition, see the [extension referenc
102
102
103
103
## Deploy the template
104
104
105
-
For the deployment procedure, see the "Deploy the template" section of [Tutorial: Create Azure Resource Manager templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md#deploy-the-template). We recommended that you use a generated password for the virtual machine administrator account. See this article's [Prerequisites](#prerequisites) section.
105
+
For the deployment procedure, see the "Deploy the template" section of [Tutorial: Create ARM templates with dependent resources](./template-tutorial-create-templates-with-dependent-resources.md#deploy-the-template). We recommended that you use a generated password for the virtual machine administrator account. See this article's [Prerequisites](#prerequisites) section.
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/template-tutorial-secure-artifacts.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ ms.topic: tutorial
7
7
ms.author: jgao
8
8
---
9
9
10
-
# Tutorial: Secure artifacts in Azure Resource Manager template deployments
10
+
# Tutorial: Secure artifacts in ARM template deployments
11
11
12
-
Learn how to secure the artifacts used in your Azure Resource Manager templates by using an Azure Storage account with shared access signatures (SAS). Deployment artifacts are any files, in addition to the main template file, that are needed to complete a deployment. For example, in [Tutorial: Import SQL BACPAC files with Azure Resource Manager templates](./template-tutorial-deploy-sql-extensions-bacpac.md), the main template creates an Azure SQL Database instance. It also calls a BACPAC file to create tables and insert data. The BACPAC file is an artifact and is stored in an Azure Storage account. A storage account key was used to access the artifact.
12
+
Learn how to secure the artifacts used in your Azure Resource Manager (ARM) templates by using an Azure Storage account with shared access signatures (SAS). Deployment artifacts are any files, in addition to the main template file, that are needed to complete a deployment. For example, in [Tutorial: Import SQL BACPAC files with ARM templates](./template-tutorial-deploy-sql-extensions-bacpac.md), the main template creates an Azure SQL Database instance. It also calls a BACPAC file to create tables and insert data. The BACPAC file is an artifact and is stored in an Azure Storage account. A storage account key was used to access the artifact.
13
13
14
14
In this tutorial, you use SAS to grant limited access to the BACPAC file in your own Azure Storage account. For more information about SAS, see [Using shared access signatures (SAS)](../../storage/common/storage-dotnet-shared-access-signature-part-1.md).
15
15
16
-
To learn how to secure a linked template, see [Tutorial: Create linked Azure Resource Manager templates](./template-tutorial-create-linked-templates.md).
16
+
To learn how to secure a linked template, see [Tutorial: Create linked ARM templates](./template-tutorial-create-linked-templates.md).
17
17
18
18
This tutorial covers the following tasks:
19
19
@@ -30,19 +30,19 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
30
30
31
31
To complete this article, you need:
32
32
33
-
* Visual Studio Code with a Resource Manager Tools extension. See [Use Visual Studio Code to create Azure Resource Manager templates](./use-vs-code-to-create-template.md).
34
-
* Review [Tutorial: Import SQL BACPAC files with Azure Resource Manager templates](./template-tutorial-deploy-sql-extensions-bacpac.md). The template used in this tutorial is the one developed in that tutorial. A download link of the completed template is provided in this article.
33
+
* Visual Studio Code with a Resource Manager Tools extension. See [Use Visual Studio Code to create ARM templates](./use-vs-code-to-create-template.md).
34
+
* Review [Tutorial: Import SQL BACPAC files with ARM templates](./template-tutorial-deploy-sql-extensions-bacpac.md). The template used in this tutorial is the one developed in that tutorial. A download link of the completed template is provided in this article.
35
35
* To increase security, use a generated password for the SQL Server administrator account. Here's a sample you can use to generate a password:
36
36
37
37
```console
38
38
openssl rand -base64 32
39
39
```
40
40
41
-
Azure Key Vault is designed to safeguard cryptographic keys and other secrets. For more information, see [Tutorial: Integrate Azure Key Vault in Resource Manager Template deployment](./template-tutorial-use-key-vault.md). We also recommend you to update your password every three months.
41
+
Azure Key Vault is designed to safeguard cryptographic keys and other secrets. For more information, see [Tutorial: Integrate Azure Key Vault in ARM template deployment](./template-tutorial-use-key-vault.md). We also recommend you to update your password every three months.
42
42
43
43
## Prepare a BACPAC file
44
44
45
-
In this section, you prepare the BACPAC file so that the file is accessible securely when you deploy the Resource Manager template. There are five procedures in this section:
45
+
In this section, you prepare the BACPAC file so that the file is accessible securely when you deploy the ARM template. There are five procedures in this section:
46
46
47
47
* Download the BACPAC file.
48
48
* Create an Azure Storage account.
@@ -110,7 +110,7 @@ In this section, you prepare the BACPAC file so that the file is accessible secu
110
110
111
111
## Open an existing template
112
112
113
-
In this session, you modify the template you created in [Tutorial: Import SQL BACPAC files with Azure Resource Manager templates](./template-tutorial-deploy-sql-extensions-bacpac.md) to call the BACPAC file with an SAS token. The template developed in the SQL extension tutorial is shared in [GitHub](https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/tutorial-sql-extension/azuredeploy.json).
113
+
In this session, you modify the template you created in [Tutorial: Import SQL BACPAC files with ARM templates](./template-tutorial-deploy-sql-extensions-bacpac.md) to call the BACPAC file with an SAS token. The template developed in the SQL extension tutorial is shared in [GitHub](https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/tutorial-sql-extension/azuredeploy.json).
114
114
115
115
1. From Visual Studio Code, select **File** > **Open File**.
0 commit comments