-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_vnet_details.yml
More file actions
39 lines (33 loc) · 1.03 KB
/
get_vnet_details.yml
File metadata and controls
39 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- main
variables:
$vmname: 'windows-2019'
pool:
vmImage: vs2017-win2016
steps:
- task: AzurePowerShell@5
displayName: run powershell script to get vnet details
inputs:
azureSubscription: 'aks_vnet_details'
ScriptType: 'FilePath'
ScriptPath: '$(Build.SourcesDirectory)/vnet.ps1'
ScriptArguments: '-rsg aks -vnet aks_vnet'
azurePowerShellVersion: 'LatestVersion'
workingDirectory: '$(Build.SourcesDirectory)'
- task: CopyFiles@2
displayName: copy output file to stagging directory
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
CleanTargetFolder: true
OverWrite: true
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'powershell-output'
publishLocation: 'Container'