Skip to content

Enhancement: Extend pp environment get to get default environment #4228

@milanholemans

Description

@milanholemans

Right now we can list all Power Platform environments or get an environment by name. It could be useful if we could just get the default environment.
We could update the command pp environment get and make the option name optional. When name is not specified, the command will return the default environment.

Options

Option Description
-n, --name [name] The name of the environment. When not specified, the default environment is retrieved.

Examples

Get the default Power Platform environment

m365 pp environment get

How to achieve

To achieve this, it seems like we should filter on the isDefault property:

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions