Skip to content

Integration of the CLI within an Azure DevOps Pipeline #5879

Open
@Adam-it

Description

@Adam-it

🎯 Aim

We have a nice guide on how to use CLI for M365 in GitHub workflows but it's not the only DevOps environment where we may use CLI.
The idea is to add guidance how we may use CLI in Azure DevOps. We should definitely include:

  • some basic intro why would someone want to do that and how to start
  • tips with best practices that might be helpful specifically for script tasks/steps that use CLI. Like for example how you should handle the secret for the login command, or even what type of auth in login command should be used in a pipeline (no the password one but rather go as a app)
  • we should definitely show a working yaml pipeline flow with a basic example that builds and deploys a SPFx package to a app catalog (similar like in the GitHub guide)
  • we should mention the spfx project azuredevops pipeline add command which is currently a open PR so we could wait for it to be merged before we start working on this guide

👍 Additionally

In the GitHub workflow setup guide, we have 'Creating a basic workflow which authenticates with an Microsoft 365 tenant' section which explains how to create a basic workflow using CLI to deploy a SPFx package.
https://pnp.github.io/cli-microsoft365/user-guide/github-actions#creating-a-basic-workflow-which-authenticates-with-an-microsoft-365-tenant

Actually, now we have a command that will generate that for the user 🙂. Along the way we could include this info in the guide as well 👍

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions