Update-AzMLWorkspaceModelVersion
Syntax
UpdateExpanded (Default)
Update-AzMLWorkspaceModelVersion
-Name <String>
-ResourceGroupName <String>
-Version <String>
-WorkspaceName <String>
[-SubscriptionId <String>]
[-Description <String>]
[-Flavor <Hashtable>]
[-IsArchived]
[-JobName <String>]
[-ModelType <String>]
[-ModelUri <String>]
[-ResourceBaseProperty <Hashtable>]
[-Stage <String>]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
UpdateViaIdentityWorkspaceExpanded
Update-AzMLWorkspaceModelVersion
-Name <String>
-Version <String>
-WorkspaceInputObject <IMachineLearningServicesIdentity>
[-Description <String>]
[-Flavor <Hashtable>]
[-IsArchived]
[-JobName <String>]
[-ModelType <String>]
[-ModelUri <String>]
[-ResourceBaseProperty <Hashtable>]
[-Stage <String>]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
UpdateViaIdentityModelExpanded
Update-AzMLWorkspaceModelVersion
-Version <String>
-ModelInputObject <IMachineLearningServicesIdentity>
[-Description <String>]
[-Flavor <Hashtable>]
[-IsArchived]
[-JobName <String>]
[-ModelType <String>]
[-ModelUri <String>]
[-ResourceBaseProperty <Hashtable>]
[-Stage <String>]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
UpdateViaIdentityExpanded
Update-AzMLWorkspaceModelVersion
-InputObject <IMachineLearningServicesIdentity>
[-Description <String>]
[-Flavor <Hashtable>]
[-IsArchived]
[-JobName <String>]
[-ModelType <String>]
[-ModelUri <String>]
[-ResourceBaseProperty <Hashtable>]
[-Stage <String>]
[-Tag <Hashtable>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Examples
Example 1: Create or update model version
Update-AzMLWorkspaceModelVersion -ResourceGroupName ml-test -WorkspaceName mlworkspace-test2 -Name heart-classifier-mlflow -Version 1 -Description "Test heart-classifier"
Description : Test heart-classifier
Flavor : {
"python_function": {
"data": {
"env": "conda.yaml",
"loader_module": "mlflow.sklearn",
"model_path": "model.pkl",
"python_version": "3.8.5"
}
},
"sklearn": {
"data": {
"pickled_model": "model.pkl",
"serialization_format": "cloudpickle",
"sklearn_version": "1.1.2"
}
}
}
Id : /subscriptions/11111111-2222-3333-4444-123456789101/resourceGroups/ml-test/providers/Microsoft.MachineLearningServices/workspaces/mlworkspace-test2/models/heart-classifier-mlflow/versions/1
IsAnonymou : False
IsArchived : False
JobName :
ModelType : mlflow_model
ModelUri : azureml://subscriptions/11111111-2222-3333-4444-123456789101/resourceGroups/ml-test/workspaces/mlworkspace-test2/datastores/workspaceblobstore/paths/heart-classifier
-mlflow
Name : 1
ProvisioningState : Succeeded
ResourceBaseProperty : {
}
ResourceGroupName : ml-test
Stage : Development
SystemDataCreatedAt : 11/5/2025 10:16:48 AM
SystemDataCreatedBy : User Name (Example)
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 11/5/2025 10:18:16 AM
SystemDataLastModifiedBy : User Name (Example)
SystemDataLastModifiedByType : User
Tag : {
}
Type : Microsoft.MachineLearningServices/workspaces/models/versions
XmsAsyncOperationTimeout :
This command updates model version
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-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
-Description
The asset description text.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Flavor
Mapping of model flavors to their properties.
Parameter properties
Type: Hashtable
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
UpdateViaIdentityExpanded
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-IsArchived
Is the asset archived?
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-JobName
Name of the training job which produced this model
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
UpdateViaIdentityModelExpanded
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-ModelType
The storage format for this entity.
Used for NCD.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ModelUri
The URI path to the model contents.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
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
UpdateExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
UpdateViaIdentityWorkspaceExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceBaseProperty
The asset property dictionary.
Parameter properties
Type: Hashtable
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
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
UpdateExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Stage
Stage in the model lifecycle assigned to this model
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
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
UpdateExpanded
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Tag
Tag dictionary.
Tags can be added, removed, and updated.
Parameter properties
Type: Hashtable
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Version
Version identifier.
This is case-sensitive.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
UpdateExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
UpdateViaIdentityWorkspaceExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
UpdateViaIdentityModelExpanded
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
UpdateViaIdentityWorkspaceExpanded
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
UpdateExpanded
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 .
Outputs
Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.IModelVersion