Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
77 lines (68 sloc) 2.43 KB
trigger:
branches:
include:
- '*'
stages:
- stage: Build
jobs:
- job: BuildJob
pool:
vmImage: windows-2019
steps:
- task: AzureResourceGroupDeployment@2
inputs:
ConnectedServiceName: 'MPN'
action: 'Create Or Update Resource Group'
resourceGroupName: 'ARMtesting'
location: 'West Europe'
csmFile: 'Deploymentfiles/StorageAccount/azuredeploy.json'
csmParametersFile: 'Deploymentfiles/StorageAccount/azuredeploy.parameters.json'
deploymentMode: 'Validation'
- task: AzureResourceGroupDeployment@2
inputs:
ConnectedServiceName: 'MPN'
action: 'Create Or Update Resource Group'
resourceGroupName: 'ARMtesting'
location: 'West Europe'
csmFile: 'Deploymentfiles/VirtualNetwork/Azuredeploy.json'
csmParametersFile: 'Deploymentfiles/VirtualNetwork/Azuredeploy.parameters.json'
deploymentMode: 'Validation'
- task: PowerShell@2
inputs:
targetType: Inline
script : |
Install-Module -Name ARMHelper -Force -Scope CurrentUser
Import-Module -Name ARMHelper
displayName: 'Prepair Agent'
- template: ARMHelperTemplate.yml
parameters:
resourceGroupName: 'StorageAccount_01'
deploymentFolder: Deploymentfiles\StorageAccount
- template: ARMHelperTemplate.yml
parameters:
resourceGroupName: 'VirtualNetwork_01'
deploymentFolder: Deploymentfiles\VirtualNetwork
- stage: Deploy
condition:
and(succeeded(), eq(variables['State'], 'Production'))
jobs:
- job: BuildJob
pool:
vmImage: windows-2019
steps:
- task: AzureResourceGroupDeployment@2
displayName: 'Azure Deployment:Create Or Update Resource Group action on OC-DC'
inputs:
azureSubscription: MPN
resourceGroupName: 'StorageAccount_01'
location: 'West Europe'
csmFile: 'Deploymentfiles/StorageAccount/azuredeploy.json'
csmParametersFile: 'Deploymentfiles/StorageAccount/AzureDeploy.parameters.json'
- task: AzureResourceGroupDeployment@2
displayName: 'Azure Deployment:Create Or Update Resource Group action on OC-DC'
inputs:
azureSubscription: MPN
resourceGroupName: 'VirtualNetwork_01'
location: 'West Europe'
csmFile: 'Deploymentfiles/VirtualNetwork/AzureDeploy.json'
csmParametersFile: 'Deploymentfiles/VirtualNetwork/AzureDeploy.parameters.json'
You can’t perform that action at this time.