Get-AzDevCenterUserEnvironmentAction

Retrieve a specific environment action.

Syntax

Get-AzDevCenterUserEnvironmentAction
   -Endpoint <String>
   -EnvironmentName <String>
   -ProjectName <String>
   [-UserId <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
   -Endpoint <String>
   -EnvironmentName <String>
   -ProjectName <String>
   [-UserId <String>]
   -Name <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
   -Endpoint <String>
   -InputObject <IDevCenterdataIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
   -DevCenterName <String>
   -InputObject <IDevCenterdataIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
   -DevCenterName <String>
   -EnvironmentName <String>
   -ProjectName <String>
   [-UserId <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzDevCenterUserEnvironmentAction
   -DevCenterName <String>
   -EnvironmentName <String>
   -ProjectName <String>
   [-UserId <String>]
   -Name <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Retrieve a specific environment action.

Examples

Example 1: List actions on the environment by endpoint

Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject

This command lists the actions on the environment "myEnvironment".

Example 2: List actions on the environment by dev center

Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject

This command lists the actions on the environment "myEnvironment".

Example 3: Get an action on the environment by endpoint

Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete"

This command gets the action "myEnvironment-Delete" for the environment "myEnvironment".

Example 4: Get an action on the environment by dev center

Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -EnvironmentName myEnvironment -ProjectName DevProject -Name "myEnvironment-Delete"

This command gets the action "myEnvironment-Delete" for the environment "myEnvironment".

Example 5: Get an action on the environment by endpoint and InputObject

$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"}
Get-AzDevCenterUserEnvironmentAction -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $environmentInput

This command gets the action "myEnvironment-Delete" for the environment "myEnvironment".

Example 6: Get an action on the environment by dev center and InputObject

$environmentInput = @{"EnvironmentName" = "myEnvironment"; "UserId" = "me"; "ProjectName" = "DevProject"; "ActionName" = "myEnvironment-Delete"}
Get-AzDevCenterUserEnvironmentAction -DevCenterName Contoso -InputObject $environmentInput

This command gets the action "myEnvironment-Delete" for the environment "myEnvironment".

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DevCenterName

The DevCenter upon which to execute operations.

Type:String
Aliases:DevCenter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Endpoint

The DevCenter-specific URI to operate on.

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

-EnvironmentName

The name of the environment.

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

-InputObject

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

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

-Name

The name of an action that will take place on an Environment.

Type:String
Aliases:ActionName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ProjectName

The DevCenter Project upon which to execute operations.

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

-UserId

The AAD object id of the user. If value is 'me', the identity is taken from the authentication context.

Type:String
Position:Named
Default value:"me"
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

IDevCenterdataIdentity

Outputs

IEnvironmentAction