Skip to content

Commit dae8030

Browse files
committed
add scopetype
1 parent c75ecb4 commit dae8030

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed
Loading
Loading

articles/azure-resource-manager/resource-manager-tutorial-use-azure-pipelines.md

Lines changed: 9 additions & 5 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: 06/12/2019
14+
ms.date: 10/15/2019
1515
ms.topic: tutorial
1616
ms.author: jgao
1717
---
@@ -180,9 +180,11 @@ To create a pipeline with a step to deploy a template:
180180
181181
```yaml
182182
steps:
183-
- task: AzureResourceGroupDeployment@2
183+
- task: AzureResourceManagerTemplateDeployment@3
184184
inputs:
185-
azureSubscription: '[YourServiceConnectionName]'
185+
deploymentScope: 'Resource Group'
186+
ConnectedServiceName: '[EnterYourServiceConnectionName]'
187+
subscriptionName: '[EnterTheTargetSubscriptionID]'
186188
action: 'Create Or Update Resource Group'
187189
resourceGroupName: '[EnterANewResourceGroupName]'
188190
location: 'Central US'
@@ -197,14 +199,16 @@ To create a pipeline with a step to deploy a template:
197199
198200
Make the following changes:
199201
200-
* **azureSubscription**: update the value with the service connection created in the previous procedure.
202+
* **deloymentScope**: Select the scope of deployment from the options: `Management Group`, `Subscription` and `Resource Group`. Use **Resource Group** in this tutorial. To learn more about the scopes, see [Deployment scopes](./resource-group-template-deploy-rest.md#deployment-scope).
203+
* **ConnectedServiceName**: Specify the service connection name that you created earlier.
204+
* **SubscriptionName**: Specify the target subscription ID.
201205
* **action**: the **Create Or Update Resource Group** action does 2 actions - 1. create a resource group if a new resource group name is provided; 2. deploy the template specified.
202206
* **resourceGroupName**: specify a new resource group name. For example, **AzureRmPipeline-rg**.
203207
* **location**: specify the location for the resource group.
204208
* **templateLocation**: when **Linked artifact** is specified, the task looks for the template file directly from the connected repository.
205209
* **csmFile** is the path to the template file. You don't need to specify a template parameters file because all of the parameters defined in the template have default values.
206210

207-
For more information about the task, see [Azure Resource Group Deployment task](/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment)
211+
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)
208212
1. Select **Save and run**.
209213
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.
210214
1. Verify that the pipeline is executed successfully.

articles/azure-resource-manager/toc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
items:
171171
- name: VS project with pipelines
172172
href: vs-resource-groups-project-devops-pipelines.md
173+
displayName: DevOps
173174
- name: Export template
174175
href: export-template-portal.md
175176
- name: Move

0 commit comments

Comments
 (0)