Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>PnP-PowerShell
PnP-PowerShell

PnP-PowerShell

Sergei Sergeev

|
1,196 installs
| (0) | Free
Run a PnP-PowerShell script against SharePoint site
Get it free

PnP-PowerShell VSTS build step

This build step allows you to easily run PnP-PowerShell script against your SharePoint site.

Setup

  1. Add PnP-PowerShell Script step into your build pipeline:

    image

  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:

    image

  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:

    image

    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 code.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft