Edit

Get-AzMLWorkspaceEnvironmentContainer

Get container.

Syntax

List (Default)

Get-AzMLWorkspaceEnvironmentContainer
    -ResourceGroupName <String>
    -WorkspaceName <String>
    [-SubscriptionId <String[]>]
    [-ListViewType <String>]
    [-Skip <String>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetViaIdentityWorkspace

Get-AzMLWorkspaceEnvironmentContainer
    -Name <String>
    -WorkspaceInputObject <IMachineLearningServicesIdentity>
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Get

Get-AzMLWorkspaceEnvironmentContainer
    -Name <String>
    -ResourceGroupName <String>
    -WorkspaceName <String>
    [-SubscriptionId <String[]>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetViaIdentity

Get-AzMLWorkspaceEnvironmentContainer
    -InputObject <IMachineLearningServicesIdentity>
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Description

Get container.

Examples

Example 1: List all environment containers under a workspace

Get-AzMLWorkspaceEnvironmentContainer -ResourceGroupName ml-test -WorkspaceName mlworkspace-test2
Name                                                SystemDataCreatedAt  SystemDataCreatedBy                     SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy
----                                                -------------------  -------------------                     ----------------------- ------------------------ ------------------------
DefaultNcdEnv-mlflow-ubuntu20-04-py38-cpu-inference 11/4/2025 9:30:32 AM 11111111-2222-3333-4444-123456789102    Application             11/4/2025 9:30:32 AM     11111111-2222-3333-4444-123456789102
commandjobenv1                                      11/4/2025 6:18:47 AM User Name (Example)                     User                    11/4/2025 6:18:47 AM     UserName (Example)
batchenv1                                           11/4/2025 6:18:41 AM User Name (Example)                     User                    11/4/2025 6:18:41 AM     UserName (Example)
openmpi4_1_0-ubuntu22_04                            11/4/2025 6:02:17 AM User Name (Example)                     User                    11/4/2025 6:02:17 AM     UserName (Example)
AzureML-ACPT-pytorch-1.13-py38-cuda11.7-gpu         1/24/2023 2:27:55 AM Microsoft                               User                    1/24/2023 2:27:55 AM     Microsoft

List all environment containers under a workspace

Example 2: Gets a environment container by name

Get-AzMLWorkspaceEnvironmentContainer -ResourceGroupName ml-test -WorkspaceName mlworkspace-test2 -Name openmpi4_1_0-ubuntu22_04
Description                  :
Id                           : /subscriptions/11111111-2222-3333-4444-123456789101/resourceGroups/ml-test/providers/Microsoft.MachineLearningServices/workspaces/mlworkspace-test2/environments/openmpi4_1_0-ubuntu22_04
IsArchived                   : False
LatestVersion                : 1
Name                         : openmpi4_1_0-ubuntu22_04
NextVersion                  : 2
ProvisioningState            : Succeeded
ResourceBaseProperty         : {
                               }
ResourceGroupName            : ml-test
SystemDataCreatedAt          : 11/4/2025 6:02:17 AM
SystemDataCreatedBy          : User Name (Example)
SystemDataCreatedByType      : User
SystemDataLastModifiedAt     : 11/4/2025 6:02:17 AM
SystemDataLastModifiedBy     : User Name (Example)
SystemDataLastModifiedByType : User
Tag                          : {
                               }
Type                         : Microsoft.MachineLearningServices/workspaces/environments
XmsAsyncOperationTimeout     :

Gets a environment container by name

Parameters

-DefaultProfile

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

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Identity Parameter

Parameter properties

Type:IMachineLearningServicesIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetViaIdentity
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-ListViewType

View type for including/excluding (for example) archived entities.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Container name. This is case-sensitive.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetViaIdentityWorkspace
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceGroupName

The name of the resource group. The name is case insensitive.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Skip

Continuation token for pagination.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

The ID of the target subscription.

Parameter properties

Type:

String[]

Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WorkspaceInputObject

Identity Parameter

Parameter properties

Type:IMachineLearningServicesIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetViaIdentityWorkspace
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WorkspaceName

Name of Azure Machine Learning workspace.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

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

Inputs

IMachineLearningServicesIdentity

Outputs

Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.IEnvironmentContainer