cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

New command: m365 pp pipeline stage get

Open appieschot opened this issue 1 year ago • 4 comments

Usage

m365 pp pipeline stage get

Description

Gets information about the specified Power Platform pipeline stage

Options

Option Description
-i, --id<id> The id of the stage to retrieve.
--pipelineId <pipelineId> The id of the pipeline to retrieve the stage from.
-e, --environmentName <environmentName> The name of the environment where the pipelines are located.
--asAdmin Run the command as admin and retrieve Power Pages websites for environments you do not have explicitly assigned permissions to.

Examples

List given stages for the pipeline in the given Power Platform environment.

m365 pp pipeline stage get --id d87a7535-dd31-4437-bfe1-95340acd55c5 --pipelineId d87a7535-dd31-4437-bfe1-95340acd55c5 --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 

List give tstage for the pipeline in the given Power Platform environment as admin.

m365 pp pipeline stage get --id d87a7535-dd31-4437-bfe1-95340acd55c5 --pipelineId d87a7535-dd31-4437-bfe1-95340acd55c5 --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --asAdmin

Default properties

N/a

Additional Info

https://learn.microsoft.com/en-us/power-platform/developer/pipelines/table-reference#deploymentstage-deployment-stage

appieschot avatar Sep 18 '24 06:09 appieschot

@appieschot is it possible to get pipeline stage by name ? Other than that I have no further comments and we could open it up

Adam-it avatar Nov 27 '24 22:11 Adam-it

@appieschot do you have maybe any update on this issue?

Adam-it avatar Jan 02 '25 08:01 Adam-it

I think theoretically it would be possible with retrieving a pipeline by name, but I don't think name has to be unique so that might introduce a few additional requirements if we want to go that path.

appieschot avatar Mar 24 '25 23:03 appieschot

I think theoretically it would be possible with retrieving a pipeline by name, but I don't think name has to be unique so that might introduce a few additional requirements if we want to go that path.

We already have those cases in other parts of CLI. In this case when name is not unique and we get more than single item with the same name we present additional prompt showing the IDs (GUIDs) of the items asking the user to pick the correct one. I think we could proceed with the same approach in this case as well and therefore add the name option which is more human friendly. But I am not so strong on this and if we find this all a bit to tricky lets just open this up and proceed with what we have.

Adam-it avatar Jun 14 '25 23:06 Adam-it