Skip to content

Commit 83d7cb5

Browse files
committed
update the vs project with pipeline article
1 parent f770dcc commit 83d7cb5

File tree

10 files changed

+38
-24
lines changed

10 files changed

+38
-24
lines changed
Loading
Loading
-14.4 KB
Loading
Loading
Loading
Loading
-326 Bytes
Loading
Loading
Loading

articles/azure-resource-manager/vs-resource-groups-project-devops-pipelines.md

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ steps:
6565
inputs:
6666
azureSubscription: 'demo-deploy-sp'
6767
ScriptPath: 'AzureResourceGroupDemo/Deploy-AzureResourceGroup.ps1'
68-
ScriptArguments: -ResourceGroupName 'demogroup' -ResourceGroupLocation 'centralus'
68+
ScriptArguments: -ResourceGroupName 'demogroup' -ResourceGroupLocation 'centralus'
6969
azurePowerShellVersion: LatestVersion
7070
```
7171
@@ -133,7 +133,7 @@ You can select the currently running pipeline to see details about the tasks. Wh
133133

134134
## Copy and deploy tasks
135135

136-
This section shows how to configure continuous deployment by using a two tasks to stage the artifacts and deploy the template.
136+
This section shows how to configure continuous deployment by using a two tasks to stage the artifacts and deploy the template.
137137

138138
The following YAML shows the [Azure file copy task](/azure/devops/pipelines/tasks/deploy/azure-file-copy?view=azure-devops):
139139

@@ -170,33 +170,43 @@ storage: '<your-storage-account-name>'
170170
ContainerName: '<container-name>'
171171
```
172172

173-
The following YAML shows the [Azure resource group deployment task](/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment?view=azure-devops):
173+
The following YAML shows the [Azure Resource Manager template deployment task](https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzureResourceManagerTemplateDeploymentV3/README.md):
174174

175175
```yaml
176176
- task: AzureResourceGroupDeployment@2
177177
displayName: 'Deploy template'
178178
inputs:
179-
azureSubscription: 'demo-deploy-sp'
179+
deploymentScope: 'Resource Group'
180+
ConnectedServiceName: 'demo-deploy-sp'
181+
subscriptionName: '01234567-89AB-CDEF-0123-4567890ABCDEF'
182+
action: 'Create Or Update Resource Group'
180183
resourceGroupName: 'demogroup'
181-
location: 'centralus'
184+
location: 'Central US'
182185
templateLocation: 'URL of the file'
183186
csmFileLink: '$(artifactsLocation)WebSite.json$(artifactsLocationSasToken)'
184187
csmParametersFileLink: '$(artifactsLocation)WebSite.parameters.json$(artifactsLocationSasToken)'
185188
overrideParameters: '-_artifactsLocation $(artifactsLocation) -_artifactsLocationSasToken "$(artifactsLocationSasToken)"'
189+
deploymentMode: 'Incremental'
186190
```
187191

188-
There are several parts of this task to revise for your environment. For `azureSubscription`, provide the name of the service connection you created.
192+
There are several parts of this task to revise for your environment.
189193

190-
```yaml
191-
azureSubscription: '<your-connection-name>'
192-
```
194+
- 'deploymentScope': Select the scope of deployment from the options: `Management Group`, `Subscription` and `Resource Group`. Use **Resource Group** in this walk through. To learn more about the scopes, see [Deployment scopes](./resource-group-template-deploy-rest.md#deployment-scope).
193195

194-
For `resourceGroupName` and `location`, provide the name and location of the resource group you want to deploy to. The task creates the resource group if it doesn't exist.
196+
- `ConnectedServiceName`: Provide the name of the service connection you created.
195197

196-
```yaml
197-
resourceGroupName: '<resource-group-name>'
198-
location: '<location>'
199-
```
198+
```yaml
199+
ConnectedServiceName: '<your-connection-name>'
200+
```
201+
202+
- `subscriptionName`: Provide the target subscription ID. This property only applies to the Resource Group deployment scope and the subscription deployment scoop.
203+
204+
- `resourceGroupName` and `location`: provide the name and location of the resource group you want to deploy to. The task creates the resource group if it doesn't exist.
205+
206+
```yaml
207+
resourceGroupName: '<resource-group-name>'
208+
location: '<location>'
209+
```
200210

201211
The deployment task links to a template named `WebSite.json` and a parameters file named WebSite.parameters.json. Use the names of your template and parameter files.
202212

@@ -220,16 +230,20 @@ Now, that you understand how to create the tasks, let's go through the steps to
220230
outputStorageUri: 'artifactsLocation'
221231
outputStorageContainerSasToken: 'artifactsLocationSasToken'
222232
sasTokenTimeOutInMinutes: '240'
223-
- task: AzureResourceGroupDeployment@2
224-
displayName: 'Deploy template'
225-
inputs:
226-
azureSubscription: 'demo-deploy-sp'
227-
resourceGroupName: demogroup
228-
location: 'centralus'
229-
templateLocation: 'URL of the file'
230-
csmFileLink: '$(artifactsLocation)WebSite.json$(artifactsLocationSasToken)'
231-
csmParametersFileLink: '$(artifactsLocation)WebSite.parameters.json$(artifactsLocationSasToken)'
232-
overrideParameters: '-_artifactsLocation $(artifactsLocation) -_artifactsLocationSasToken "$(artifactsLocationSasToken)"'
233+
- task: AzureResourceGroupDeployment@2
234+
displayName: 'Deploy template'
235+
inputs:
236+
deploymentScope: 'Resource Group'
237+
ConnectedServiceName: 'demo-deploy-sp'
238+
subscriptionName: '01234567-89AB-CDEF-0123-4567890ABCDEF'
239+
action: 'Create Or Update Resource Group'
240+
resourceGroupName: 'demogroup'
241+
location: 'Central US'
242+
templateLocation: 'URL of the file'
243+
csmFileLink: '$(artifactsLocation)WebSite.json$(artifactsLocationSasToken)'
244+
csmParametersFileLink: '$(artifactsLocation)WebSite.parameters.json$(artifactsLocationSasToken)'
245+
overrideParameters: '-_artifactsLocation $(artifactsLocation) -_artifactsLocationSasToken "$(artifactsLocationSasToken)"'
246+
deploymentMode: 'Incremental'
233247
```
234248

235249
1. Select **Save**.

0 commit comments

Comments
 (0)