New command: m365 pp pipeline stage get
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 is it possible to get pipeline stage by name ?
Other than that I have no further comments and we could open it up
@appieschot do you have maybe any update on this issue?
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.
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.