Editar

Compartilhar via


Get-AzMLWorkspaceDatastore

Get datastore.

Syntax

Get-AzMLWorkspaceDatastore
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   -WorkspaceName <String>
   [-Count <Int32>]
   [-IsDefault]
   [-OrderBy <String>]
   [-OrderByAsc]
   [-SearchName <String[]>]
   [-SearchText <String>]
   [-Skip <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzMLWorkspaceDatastore
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   -WorkspaceName <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzMLWorkspaceDatastore
   -InputObject <IMachineLearningServicesIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Get datastore.

Examples

Example 1: Lists all datastore under a workspace

Get-AzMLWorkspaceDatastore  -ResourceGroupName ml-rg-test -WorkspaceName mlworkspace-portal01

Name                      SystemDataCreatedAt SystemDataCreatedBy                  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy             SystemDataLastModifiedByType ResourceGroupName
----                      ------------------- -------------------                  ----------------------- ------------------------ ------------------------             ---------------------------- -----------------
workspaceartifactstore    5/5/2022 1:27:41 AM 779301c0-18b2-4cdc-801b-a0a3368fee0a Application             5/5/2022 1:27:42 AM      779301c0-18b2-4cdc-801b-a0a3368fee0a Application                  ml-rg-test
workspaceworkingdirectory 5/5/2022 1:27:41 AM 779301c0-18b2-4cdc-801b-a0a3368fee0a Application             5/5/2022 1:27:42 AM      779301c0-18b2-4cdc-801b-a0a3368fee0a Application                  ml-rg-test
workspaceblobstore        5/5/2022 1:27:41 AM 779301c0-18b2-4cdc-801b-a0a3368fee0a Application             5/5/2022 1:27:42 AM      779301c0-18b2-4cdc-801b-a0a3368fee0a Application                  ml-rg-test
workspacefilestore        5/5/2022 1:27:41 AM 779301c0-18b2-4cdc-801b-a0a3368fee0a Application             5/5/2022 1:27:42 AM      779301c0-18b2-4cdc-801b-a0a3368fee0a Application                  ml-rg-test

Lists all datastore under a workspace

Example 2: Get a datastore by name

Get-AzMLWorkspaceDatastore  -ResourceGroupName ml-rg-test -WorkspaceName mlworkspace-portal01 -Name workspaceartifactstore

Name                   SystemDataCreatedAt SystemDataCreatedBy                  SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifiedBy             SystemDataLastModifiedByType ResourceGroupName
----                   ------------------- -------------------                  ----------------------- ------------------------ ------------------------             ---------------------------- -----------------
workspaceartifactstore 5/5/2022 1:27:41 AM 779301c0-18b2-4cdc-801b-a0a3368fee0a Application             5/5/2022 1:27:42 AM      779301c0-18b2-4cdc-801b-a0a3368fee0a Application                  ml-rg-test

Get a datastore by name

Parameters

-Count

Maximum number of results to return.

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

-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

-InputObject

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

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

-IsDefault

Filter down to the workspace default datastore.

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

-Name

Datastore name.

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

-OrderBy

Order by property (createdtime | modifiedtime | name).

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

-OrderByAsc

Order by property in ascending order.

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

-ResourceGroupName

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

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

-SearchName

Names of datastores to return.

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

-SearchText

Text to search for in the datastore names.

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

-Skip

Continuation token for pagination.

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

-SubscriptionId

The ID of the target subscription.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WorkspaceName

Name of Azure Machine Learning workspace.

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

Inputs

IMachineLearningServicesIdentity

Outputs

IDatastore