Skip to content

Get BapEnvironmentOperation

FH-Inway edited this page Sep 17, 2026 · 1 revision

external help file: d365bap.tools-help.xml Module Name: d365bap.tools online version: schema: 2.0.0

Get-BapEnvironmentOperation

SYNOPSIS

Get environment life cycle operation info

SYNTAX

Get-BapEnvironmentOperation [-EnvironmentId] <String> [-LatestOnly] [-AsExcelOutput]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Enables the user to query and validate all life cycle operations for a specific environment

EXAMPLES

EXAMPLE 1

Get-BapEnvironmentOperation -EnvironmentId "env-123"

This will retrieve all environment operations for the specified environment id.

EXAMPLE 2

Get-BapEnvironmentOperation -EnvironmentId "env-123" -LatestOnly

This will retrieve only the latest environment operation for the specified environment id. It is based on the created date.

EXAMPLE 3

Get-BapEnvironmentOperation -EnvironmentId "env-123" -AsExcelOutput

This will retrieve all environment operations for the specified environment id. Will output all details into an Excel file, that will auto open on your machine.

PARAMETERS

-EnvironmentId

The id of the environment that you want to work against

Type: String
Parameter Sets: (All)
Aliases: PpacEnvId

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-LatestOnly

Instructs the cmdlet to return only the latest operation.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-AsExcelOutput

Instructs the function to export the results to an Excel file.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Object[]

NOTES

Author: Mötz Jensen (@Splaxi)

RELATED LINKS

Clone this wiki locally