Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (32 sloc) 1.67 KB
parameters:
resourceGroupName: ''
deploymentFolder: ''
steps:
- task: AzureResourceGroupDeployment@2
displayName: Validate ResourcegroupDeployment ${{ parameters.resourceGroupName }}
inputs:
ConnectedServiceName: 'MPN'
action: 'Create Or Update Resource Group'
resourceGroupName: ${{ parameters.resourceGroupName }}
location: 'West Europe'
csmFile: "${{ parameters.deploymentFolder }}/Azuredeploy.json"
csmParametersFile: "${{ parameters.deploymentFolder }}/Azuredeploy.parameters.json"
deploymentMode: 'Validation'
- task: AzurePowerShell@3
displayName: 'Test existing resources ${{ parameters.resourceGroupName }}'
inputs:
azureSubscription: 'MPN'
ScriptType: InlineScript
Inline: |
Test-ARMExistingResource -ResourceGroupName ${{ parameters.resourceGroupName }} -TemplateFile "$(Build.SourcesDirectory)\${{ parameters.deploymentFolder }}\azuredeploy.json" -TemplateParameterFile "$(Build.SourcesDirectory)\${{ parameters.deploymentFolder }}\azuredeploy.parameters.json" -Mode Complete
FailOnStandardError: true
azurePowerShellVersion: LatestVersion
- task: AzurePowerShell@3
displayName: 'Show deployed resources ${{ parameters.resourceGroupName }}'
inputs:
azureSubscription: 'MPN'
ScriptType: InlineScript
Inline: |
Test-ARMDeploymentResource -ResourceGroupName ${{ parameters.resourceGroupName }} -TemplateFile "$(Build.SourcesDirectory)\${{ parameters.deploymentFolder }}\azuredeploy.json" -TemplateParameterFile "$(Build.SourcesDirectory)\${{ parameters.deploymentFolder }}\azuredeploy.parameters.json" -Mode Complete | Select-Object *
FailOnStandardError: true
azurePowerShellVersion: LatestVersion
You can’t perform that action at this time.