New-AzMLWorkspaceIdAssetReferenceObject

Create an in-memory object for IdAssetReference.

Syntax

New-AzMLWorkspaceIdAssetReferenceObject
   -AssetId <String>
   -ReferenceType <ReferenceType>
   [<CommonParameters>]

Description

Create an in-memory object for IdAssetReference.

Examples

Example 1: Create model reference

$model = Get-AzMLWorkspaceModelVersion -ResourceGroupName group-test -WorkspaceName mlworkspace-test -Version 1 -Name model1
New-AzMLWorkspaceIdAssetReferenceObject -AssetId $model.Id -ReferenceType 'Id'

ReferenceType AssetId
------------- -------
Id            /subscriptions/11111111-2222-3333-4444-123456789101/resourceGroups/group-test/providers/Microsoft.MachineLearningServices/workspaces/mlworkspace-test/models/model1

This command creates model reference object.

Parameters

-AssetId

[Required] ARM resource ID of the asset.

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

-ReferenceType

[Required] Specifies the type of asset reference.

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

Outputs

IdAssetReference