Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.41 KB

overview.md

File metadata and controls

53 lines (37 loc) · 1.41 KB

Sheriff Azure DevOps Extension

About

This is an Azure DevOps extension that provides tasks for installing and running Sheriff, a command line tool to configure and operate Microsoft Entra Privileged Identity Management (PIM) in automation.

Usage

InstallSheriffCLI task

This task installs the Sheriff CLI on the agent. The version input accepts either latest or a specific version number in the format vA.B.C, e.g. v0.1.0.

- task: InstallSheriffCLI@0
  displayName: Install Sheriff CLI
  inputs:
    version: latest

SheriffPlan task

This task runs Sheriff in plan mode, equivalent to running sheriff plan [mode].

- task: SheriffPlan@0
  displayName: Plan Sheriff changes
  inputs:
    configDir: $(System.DefaultWorkingDirectory)/.config
    mode: azurerm
    serviceConnectionName: <service connection name>

SheriffApply task

This task runs Sheriff in apply mode, equivalent to running sheriff apply [mode].

- task: SheriffApply@0
  displayName: Apply Sheriff changes
  inputs:
    configDir: $(System.DefaultWorkingDirectory)/.config
    mode: azurerm
    serviceConnectionName: <service connection name>

Contributing

We welcome contributions to this repository. Please see CONTRIBUTING.md for more information.