Skip to content

Commit 852d505

Browse files
committed
incorporate Angel's comments
1 parent a587f45 commit 852d505

8 files changed

+25
-20
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3746,6 +3746,11 @@
37463746
"redirect_url": "/azure/azure-portal/azure-portal-dashboards",
37473747
"redirect_document_id": false
37483748
},
3749+
{
3750+
"source_path": "articles/azure-resource-manager/templates/template-tutorial-use-azure-pipelines.md",
3751+
"redirect_url": "/azure/azure-resource-manager/templates/deployment-tutorial-pipeline.md",
3752+
"redirect_document_id": false
3753+
},
37493754
{
37503755
"source_path": "articles/azure-resource-manager/azure-resource-manager-security-controls.md",
37513756
"redirect_url": "/azure/azure-resource-manager/management/azure-resource-manager-security-controls",

articles/azure-resource-manager/templates/deployment-script-template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The benefits of deployment script:
4040
- **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.
4141

4242
> [!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 contributors 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.
4444
4545
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:
4646

@@ -211,7 +211,7 @@ reference('<ResourceName>').output.text
211211

212212
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.
213213

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

216216
[!code-json[](~/resourcemanager-templates/deployment-script/deploymentscript-basic-cli.json?range=1-44)]
217217

articles/azure-resource-manager/templates/deployment-tutorial-linked-template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: jgao
88

99
# Tutorial: Deploy a linked template
1010

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

1313
## Prerequisites
1414

articles/azure-resource-manager/templates/deployment-tutorial-pipeline.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ If you don't have an Azure subscription, [create a free account](https://azure.m
3232

3333
To complete this article, you need:
3434

35-
* **A GitHub account**, where you use it to create a repository for your templates. If you dont 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).
3636
* **Install Git**. This tutorial instruction uses *Git Bash* or *Git Shell*. For instructions, see [Install Git]( https://www.atlassian.com/git/tutorials/install-git).
3737
* **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).
3838
* (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
4343

4444
### Create a GitHub repository
4545

46-
If you dont have a GitHub account, see [Prerequisites](#prerequisites).
46+
If you don't have a GitHub account, see [Prerequisites](#prerequisites).
4747

4848
1. Sign in to [GitHub](https://github.com).
4949
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
9898

9999
```bash
100100
git add .
101-
git commit -m Add web app templates.
101+
git commit -m "Add web app templates."
102102
git push origin master
103103
```
104104

@@ -112,7 +112,7 @@ So far, you have created a GitHub repository, and uploaded the templates to the
112112

113113
## Create a DevOps project
114114

115-
A DevOps organization is needed before you can proceed to the next procedure. If you dont 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).
116116
117117
1. Sign in to [Azure DevOps](https://dev.azure.com).
118118
1. Select a DevOps organization from the left.
@@ -179,6 +179,8 @@ To create a pipeline with a step to deploy a template:
179179
* **Deployment mode**: Select **Incremental**.
180180
* **Deployment name**: Enter **DeployPipelineTemplate**. Select **Advanced** before you can see **Deployment name**.
181181

182+
![Azure Resource Manager Azure DevOps Azure Pipelines step](./media/deployment-tutorial-pipeline/resource-manager-template-pipeline-configure.png)
183+
182184
1. Select **Add**.
183185

184186
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:
188190
![Azure Resource Manager Azure DevOps Azure Pipelines yaml](./media/deployment-tutorial-pipeline/azure-resource-manager-devops-pipelines-yml.png)
189191

190192
1. Select **Save and run**.
191-
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.
192194
1. Verify that the pipeline is executed successfully.
193195

194196
![Azure Resource Manager Azure DevOps Azure Pipelines yaml](./media/deployment-tutorial-pipeline/azure-resource-manager-devops-pipelines-status.png)
@@ -215,13 +217,13 @@ When you update the template and push the changes to the remote repository, the
215217
```bash
216218
git pull origin master
217219
git add .
218-
git commit -m Update the storage account type.
220+
git commit -m "Update the storage account type."
219221
git push origin master
220222
```
221223

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

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

226228
To verify the changes, you can check the Replication property of the storage account. See [Verify the deployment](#verify-the-deployment).
227229

Loading

articles/azure-resource-manager/templates/template-tutorial-secure-artifacts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.author: jgao
99

1010
# Tutorial: Secure artifacts in Azure Resource Manager template deployments
1111

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

1414
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).
1515

@@ -133,7 +133,7 @@ In this session, you modify the template you created in [Tutorial: Import SQL BA
133133

134134
## Edit the template
135135

136-
1. Replace the storageAccountKey parameter definition with the following parameter definition:
136+
1. Replace the storageAccountKey parameter definition with the following parameter definition:
137137

138138
```json
139139
"_artifactsLocationSasToken": {
@@ -206,7 +206,7 @@ When the Azure resources are no longer needed, clean up the resources you deploy
206206

207207
## Next steps
208208

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
210210

211211
> [!div class="nextstepaction"]
212-
> [Continuous integration with Azure Pipeline](./template-tutorial-use-azure-pipelines.md)
212+
> [Use safe deployment practices](./deployment-manager-tutorial.md)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ You can verify the deployment by exploring the resource groups from the Azure po
131131

132132
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!
133133

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

136136
> [!div class="nextstepaction"]
137-
> [Utilize template reference](template-tutorial-create-encrypted-storage-accounts.md)
137+
> [Deploy a local template](./deployment-tutorial-local-template.md)

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
- name: 2 - Deploy a linked template
4242
href: deployment-tutorial-linked-template.md
4343
- name: 3 - Create a pipeline
44+
displayName: Devop
4445
href: deployment-tutorial-pipeline.md
4546
- name: Advanced
4647
items:
@@ -69,9 +70,6 @@
6970
href: template-tutorial-deploy-sql-extensions-bacpac.md
7071
- name: Secure artifacts
7172
href: template-tutorial-secure-artifacts.md
72-
- name: Continuous integration with Azure Pipelines
73-
displayName: DevOps
74-
href: template-tutorial-use-azure-pipelines.md
7573
- name: Use safe deployment practices
7674
displayName: adm
7775
href: deployment-manager-tutorial.md

0 commit comments

Comments
 (0)