Code Monkey home page Code Monkey logo

az-pipelines-2-sharepoint's Introduction

az-pipelines-2-sharepoint

Logo

Version

az-pipelines-2-sharepoint is an Azure DevOps extensions to upload file or build artefacts to a SharePoint Online library via Microsoft Graph.

This extension can not be used with on-premise SharePoint installations.

Installation

Azure Pipelines: Visit the Marketplace page and click install. Choose your Azure DevOps organization.

Azure DevOps Server: Visit the Marketplace page and click install. Then choose Download and install it via the Extension page on your local Azure DevOps Server.

Usage

  1. Register a new application in your Azure AD tenant:
    • Choose any name.
    • Supported Account types: Accounts in this organizational directory only.
    • No Redirect URL is needed.
    • Add a client secret as authentication method.
    • Add the API permissions: Microsoft Graph -> Application permissions -> Files -> Files.ReadWrite.All
      (AFAIK you can not use a Service Principal to grant access to a single Drive only. If you know how to, please let me know.)
  2. Find your target drive ID: https://docs.microsoft.com/en-us/graph/api/drive-get
  3. Add a new Upload files to SharePoint Online task to your build pipeline.
  4. Fill in all required parameters.

Known Issues

  • Due to a limitation of the Microsoft Graph File endpoint you can not upload files with 0-byte size. Those files will be skipped and a warning message is shown.
  • AFAIK you can not use a Service Principal to grant access to a single Drive only. If you know how to, please let me know.
    The registered app has access to all SharePoint drives - if this is a problem, you should not use this extension!

az-pipelines-2-sharepoint's People

Contributors

halliba avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.