https://github.com/s-kainet/vsts-pnp-powershell
PnP-PowerShell VSTS build step
https://github.com/s-kainet/vsts-pnp-powershell
pnp-powershell sharepoint-online vsts-task
Last synced: 8 months ago
JSON representation
PnP-PowerShell VSTS build step
- Host: GitHub
- URL: https://github.com/s-kainet/vsts-pnp-powershell
- Owner: s-KaiNet
- License: mit
- Created: 2018-06-09T08:35:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T15:38:52.000Z (almost 7 years ago)
- Last Synced: 2025-01-19T07:24:58.228Z (over 1 year ago)
- Topics: pnp-powershell, sharepoint-online, vsts-task
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=s-kainet.pnp-powershell
- Size: 158 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.MIT
Awesome Lists containing this project
README
# PnP-PowerShell VSTS build step
This build step allows you to easily run [PnP-PowerShell](https://github.com/SharePoint/PnP-PowerShell) script against your SharePoint site.
## Setup
1. Add `PnP-PowerShell` Script step into your build pipeline:

2. Some settings are required and need your attention. Leave it as is for now and go to Variables Tab. There you need to enter your username and password information. Click on a 'lock' icon next to the password to hide it from UI:

3. When done, go to Tasks tab and fill in missing information (SharePoint site url, credentials, script type). Your resulting configuration should look like in the image below:

**HINT:** You can use your Variables with `$()` special syntax. For example `$(sp_user)` will pass username configured under Variables tab.
4. Use inline script or script file with your [PnP-PowerShell](https://github.com/SharePoint/PnP-PowerShell) code.