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
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/deployment-script-template.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ The benefits of deployment script:
40
40
-**A user-assigned managed identity with the contributor's role to the target resource-group**. This identity is used to execute deployment scripts. To perform operations outside of the resource group, you need to grant additional permissions. For example, assign the identity to the subscription level if you want to create a new resource group.
41
41
42
42
> [!NOTE]
43
-
> The deployment script engine needs to create a storage account and a container instance in the background. A user-assigned managed identity with the contributor’s role at the subscription level is required if the subscription has not registered the Azure storage account (Microsoft.Storage) and Azure container instance (Microsoft.ContainerInstance) resource providers.
43
+
> The deployment script engine needs to create a storage account and a container instance in the background. A user-assigned managed identity with the contributor's role at the subscription level is required if the subscription has not registered the Azure storage account (Microsoft.Storage) and Azure container instance (Microsoft.ContainerInstance) resource providers.
44
44
45
45
To create an identity, see [Create a user-assigned managed identity by using the Azure portal](../../active-directory/managed-identities-azure-resources/how-to-manage-ua-identity-portal.md), or [by using Azure CLI](../../active-directory/managed-identities-azure-resources/how-to-manage-ua-identity-cli.md), or [by using Azure PowerShell](../../active-directory/managed-identities-azure-resources/how-to-manage-ua-identity-powershell.md). You need the identity ID when you deploy the template. The format of the identity is:
Different from the PowerShell deployment script, CLI/bash support does not expose a common variable to store script outputs, instead, there is an environment variable called **AZ_SCRIPTS_OUTPUT_PATH** that stores the location where the script outputs file resides. If a deployment script is run from a Resource Manager template, this environment variable is set automatically for you by the Bash shell.
213
213
214
-
Deployment script outputs must be saved in the AZ_SCRIPTS_OUTPUT_PATH location, and the outputs must be a valid JSON string object. The contents of the file must be saved as a key-value pair. For example, an array of strings is stored as { “MyResult”: [“foo”, “bar”] }. Storing just the array results, for example [“foo”, “bar”], is invalid.
214
+
Deployment script outputs must be saved in the AZ_SCRIPTS_OUTPUT_PATH location, and the outputs must be a valid JSON string object. The contents of the file must be saved as a key-value pair. For example, an array of strings is stored as { "MyResult": ["foo", "bar"] }. Storing just the array results, for example ["foo", "bar"], is invalid.
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/deployment-tutorial-linked-template.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.author: jgao
8
8
9
9
# Tutorial: Deploy a linked template
10
10
11
-
In the [previous tutorials](./deployment-tutorial-local-template.md), you learned how to deploy a template that is stored in your local computer. To deploy complex solutions, you can break a template into many templates, and deploy these templates through a main template. In this tutorial, you learn how to deploy a main template and a linked template. You also learn how to secure the linked template by using SAS token. It takes about **12 minutes** to complete.
11
+
In the [previous tutorials](./deployment-tutorial-local-template.md), you learned how to deploy a template that is stored in your local computer. To deploy complex solutions, you can break a template into many templates, and deploy these templates through a main template. In this tutorial, you learn how to deploy a main template that contains the reference to a linked template. When the main template get deployed, it triggers the deployment of the linked template. You also learn how to store and secure the linked template by using SAS token. It takes about **12 minutes** to complete.
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/deployment-tutorial-pipeline.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
32
32
33
33
To complete this article, you need:
34
34
35
-
***A GitHub account**, where you use it to create a repository for your templates. If you don’t have one, you can [create one for free](https://github.com). For more information about using GitHub repositories, see [Build GitHub repositories](/azure/devops/pipelines/repos/github).
35
+
***A GitHub account**, where you use it to create a repository for your templates. If you don't have one, you can [create one for free](https://github.com). For more information about using GitHub repositories, see [Build GitHub repositories](/azure/devops/pipelines/repos/github).
36
36
***Install Git**. This tutorial instruction uses *Git Bash* or *Git Shell*. For instructions, see [Install Git](https://www.atlassian.com/git/tutorials/install-git).
37
37
***An Azure DevOps organization**. If you don't have one, you can create one for free. See [Create an organization or project collection](https://docs.microsoft.com/azure/devops/organizations/accounts/create-organization?view=azure-devops).
38
38
* (optional) **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).
@@ -43,7 +43,7 @@ GitHub is used to store your project source code including Resource Manager temp
43
43
44
44
### Create a GitHub repository
45
45
46
-
If you don’t have a GitHub account, see [Prerequisites](#prerequisites).
46
+
If you don't have a GitHub account, see [Prerequisites](#prerequisites).
47
47
48
48
1. Sign in to [GitHub](https://github.com).
49
49
1. Select your account image on the upper right corner, and then select **Your repositories**.
@@ -98,7 +98,7 @@ The azuredeploy.json has been added to the local repository. Next, you upload th
98
98
99
99
```bash
100
100
git add .
101
-
git commit -m “Add web app templates.”
101
+
git commit -m "Add web app templates."
102
102
git push origin master
103
103
```
104
104
@@ -112,7 +112,7 @@ So far, you have created a GitHub repository, and uploaded the templates to the
112
112
113
113
## Create a DevOps project
114
114
115
-
A DevOps organization is needed before you can proceed to the next procedure. If you don’t have one, see [Prerequisites](#prerequisites).
115
+
A DevOps organization is needed before you can proceed to the next procedure. If you don't have one, see [Prerequisites](#prerequisites).
116
116
117
117
1. Sign in to [Azure DevOps](https://dev.azure.com).
118
118
1. Select a DevOps organization from the left.
@@ -179,6 +179,8 @@ To create a pipeline with a step to deploy a template:
179
179
* **Deployment mode**: Select **Incremental**.
180
180
* **Deployment name**: Enter **DeployPipelineTemplate**. Select **Advanced** before you can see **Deployment name**.
For more information about the task, see [Azure Resource Group Deployment task](/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment), and [Azure Resource Manager template deployment task](https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzureResourceManagerTemplateDeploymentV3/README.md)
@@ -188,7 +190,7 @@ To create a pipeline with a step to deploy a template:
1. Select **Save and run** again. A copy of the YAML file is saved into the connected repository. You can see the YAML file by browse to your repository.
193
+
1. From the **Save and run** pane, select **Save and run** again. A copy of the YAML file is saved into the connected repository. You can see the YAML file by browse to your repository.
192
194
1. Verify that the pipeline is executed successfully.
@@ -215,13 +217,13 @@ When you update the template and push the changes to the remote repository, the
215
217
```bash
216
218
git pull origin master
217
219
git add .
218
-
git commit -m “Update the storage account type.”
220
+
git commit -m "Update the storage account type."
219
221
git push origin master
220
222
```
221
223
222
-
The first command syncs the local repository with the remote repository. Remember the pipeline YAML file was added to the remote repository.
224
+
The first command (pull) syncs the local repository with the remote repository. The pipeline YAML file was only added to the remote repository. Running the pull command downloads a copy of the YAML file to the local branch.
223
225
224
-
With the master branch of the remote repository updated, the pipeline is fired again.
226
+
The fourth command (push) uploads the revised linkedStorageAccount.json file to the remote repository. With the master branch of the remote repository updated, the pipeline is fired again.
225
227
226
228
To verify the changes, you can check the Replication property of the storage account. See [Verify the deployment](#verify-the-deployment).
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/template-tutorial-secure-artifacts.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.author: jgao
9
9
10
10
# Tutorial: Secure artifacts in Azure Resource Manager 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 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.
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
@@ -133,7 +133,7 @@ In this session, you modify the template you created in [Tutorial: Import SQL BA
133
133
134
134
## Edit the template
135
135
136
-
1. Replace the storageAccountKey parameter definition with the following parameter definition:
136
+
1. Replace the storageAccountKey parameter definition with the following parameter definition:
137
137
138
138
```json
139
139
"_artifactsLocationSasToken": {
@@ -206,7 +206,7 @@ When the Azure resources are no longer needed, clean up the resources you deploy
206
206
207
207
## Next steps
208
208
209
-
In this tutorial, you deployed a SQL server and a SQL database and imported a BACPAC file by using an SAS token. To learn how to create an Azure pipeline to continuously develop and deploy Resource Manager templates, see:
209
+
In this tutorial, you deployed a SQL server and a SQL database and imported a BACPAC file by using an SAS token. To learn how to deploy Azure resources across multiple regions, and how to use safe deployment practices, see
210
210
211
211
> [!div class="nextstepaction"]
212
-
> [Continuous integration with Azure Pipeline](./template-tutorial-use-azure-pipelines.md)
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/templates/template-tutorial-use-parameter-file.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ You can verify the deployment by exploring the resource groups from the Azure po
131
131
132
132
Congratulations, you've finished this introduction to deploying templates to Azure. Let us know if you have any comments and suggestions in the feedback section. Thanks!
133
133
134
-
You're ready to jump into more advanced concepts about templates. The next tutorial goes into more detail about using template reference documentation to help with defining resources to deploy.
134
+
The next tutorial series goes into more detail about deploying templates.
0 commit comments