New-AzMLWorkspaceIdAssetReferenceObject
Create an in-memory object for IdAssetReference.
Syntax
Default (Default)
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.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ReferenceType
[Required] Specifies the type of asset reference.
Parameter properties
| Type: | ReferenceType |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| 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.