Skip to content

Commit 3faa687

Browse files
committed
Adding PowerShell instructions to YAML flow
1 parent ad30393 commit 3faa687

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

articles/azure-functions/functions-how-to-azure-devops.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,27 @@ steps:
125125
PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
126126
name: 'drop'
127127
```
128+
#### PowerShell
129+
130+
You can use the following sample to create your YAML file to package your PowerShell app, PowerShell is only supported for Windows Azure Functions:
131+
132+
```yaml
133+
jobs:
134+
- job: Build
135+
pool:
136+
vmImage: 'VS2017-Win2016'
137+
steps:
138+
- task: ArchiveFiles@2
139+
displayName: "Archive files"
140+
inputs:
141+
rootFolderOrFile: "$(System.DefaultWorkingDirectory)"
142+
includeRootFolder: false
143+
archiveFile: "$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip"
144+
- task: PublishBuildArtifacts@1
145+
inputs:
146+
PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
147+
name: 'drop'
148+
```
128149
129150
### Deploy your app
130151

0 commit comments

Comments
 (0)