az ml workspace-hub
Note
This reference is part of the ml extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az ml workspace-hub command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage Azure ML WorkspaceHub.
An WorkspaceHub is a resource used to help manage and create Azure Machine Learning workspaces. It provides a centralized Azure setup for a group of Azure ML workspaces.
Commands
Name | Description | Type | Status |
---|---|---|---|
az ml workspace-hub create |
Create a WorkspaceHub. |
Extension | Preview |
az ml workspace-hub delete |
Delete a WorkspaceHub. |
Extension | Preview |
az ml workspace-hub list |
List all the WorkspaceHubs in a subscription. |
Extension | Preview |
az ml workspace-hub show |
Show details for a WorkspaceHub. |
Extension | Preview |
az ml workspace-hub update |
Update a WorkspaceHub. |
Extension | Preview |
az ml workspace-hub create
Command group 'ml workspace-hub' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a WorkspaceHub.
When a WorkspaceHub is created, several Azure resources that will be used by Azure ML also get created by default: Azure Storage, Azure Key Vault. You can instead use existing Azure resource instances for those when creating the WorkspaceHub by specifying the resource IDs in the WorkspaceHub's configuration YAML file.
az ml workspace-hub create --resource-group
[--additional-workspace-storage-accounts]
[--container-registry]
[--default-workspace-resource-group]
[--description]
[--display-name]
[--file]
[--key-vault]
[--location]
[--managed-network]
[--name]
[--no-wait]
[--primary-user-assigned-identity]
[--public-network-access]
[--set]
[--storage-account]
[--tags]
[--update-dependent-resources]
Examples
Create a WorkspaceHub from a YAML specification file.
az ml workspace-hub create --file workspace-hub.yml --resource-group my-resource-group
Required Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
A list of comma separated resource IDs of existing storage accounts that will be utilized in addition to the default one.
ARM id of the container registry associated with this WorkspaceHub.
A destination resource group for any Project workspaces that join the workspaceHub, it will be the workspaceHub's resource group by default.
Description of the Azure ML WorkspaceHub.
Display name for the WorkspaceHub.
Local path to the YAML file containing the Azure ML workspace-hub specification. The YAML reference docs for workspace-hub can be found at: https://aka.ms/ml-cli-v2-workspace-hub-entity-yaml-reference.
ARM id of the key vault associated with this WorkspaceHub.
The location to be used for the new WorkspaceHub.
Managed Network Isolation Mode for the WorkspaceHub.
Name of the Azure ML WorkspaceHub.
Do not wait for WorkspaceHub creation to finish.
ARM identifier of primary user assigned managed identity, in case multiple ones are specified. Also the default managed identity for clusterless compute.
Allow public endpoint connectivity when a WorkspaceHub is private link enabled.
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
ARM id of the storage account associated with this WorkspaceHub.
Space-separated key-value pairs for the tags of the object.
Specifying --update_dependent_resources, gives your consent to update the workspace dependent resources. Updating the workspace-attached Azure Container Registry or Application Insights resource may break lineage of previous jobs, deployed inference endpoints, or your ability to rerun earlier jobs in this workspace.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az ml workspace-hub delete
Command group 'ml workspace-hub' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a WorkspaceHub.
By default the dependent resources associated with the WorkspaceHub (Azure Storages, Azure Container Registries, Azure Key Vaults) are not deleted. To delete those as well, include --all-resources. To permanently delete the WorkspaceHub, include --permanently-delete.
az ml workspace-hub delete --name
--resource-group
[--all-resources]
[--no-wait]
[--permanently-delete]
[--yes]
Required Parameters
Name of the Azure ML WorkspaceHub. You can configure the default group using az configure --defaults workspace=<name>
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Delete all the dependent resources associated with the WorkspaceHub (Azure Storage account, Azure Container Registry, Azure Application Insights, Azure Key Vault).
Do not wait for the long-running-operation to finish. Default is False.
WorkspaceHub are soft-deleted state by default to allow recovery of data. Set this flag to override the soft-delete behavior and permanently delete your workspace-hub.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az ml workspace-hub list
Command group 'ml workspace-hub' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List all the WorkspaceHubs in a subscription.
The list of WorkspaceHub can be filtered by resource group.
az ml workspace-hub list [--max-results]
[--resource-group]
Examples
List all the WorkspaceHubs in a resource group
az ml workspace-hub list --resource-group my-resource-group
List all the WorkspaceHubs using --query argument to execute a JMESPath query on the results of commands.
az ml workspace-hub list --query "[].{Name:name}" --output table --resource-group my-resource-group
Optional Parameters
Max number of results to return.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az ml workspace-hub show
Command group 'ml workspace-hub' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show details for a WorkspaceHub.
az ml workspace-hub show --name
--resource-group
Required Parameters
Name of the Azure ML WorkspaceHub. You can configure the default group using az configure --defaults workspace=<name>
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az ml workspace-hub update
Command group 'ml workspace-hub' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a WorkspaceHub.
The 'description', 'tags', and 'friendly_name' properties can be updated.
az ml workspace-hub update --name
--resource-group
[--add]
[--description]
[--display-name]
[--file]
[--force-string]
[--managed-network]
[--no-wait]
[--primary-user-assigned-identity]
[--public-network-access]
[--remove]
[--set]
[--update-dependent-resources]
Examples
update a WorkspaceHub from a YAML specification file.
az ml workspace-hub update --resource-group my-resource-group --name my-workspace-hub-name --file workspace-hub.yml
Required Parameters
Name of the Azure ML WorkspaceHub. You can configure the default group using az configure --defaults workspace=<name>
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Description of the Azure ML WorkspaceHub.
Display name for the WorkspaceHub.
Local path to the YAML file containing the Azure ML workspace-hub specification. The YAML reference docs for workspace-hub can be found at: https://aka.ms/ml-cli-v2-workspace-hub-entity-yaml-reference.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
Managed Network Isolation Mode for the WorkspaceHub.
Do not wait for the long-running-operation to finish. Default is False.
ARM id of the primary user assigned identity associated with this WorkspaceHub.
Allow public endpoint connectivity when a WorkspaceHub is private link enabled.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
Specifying --update_dependent_resources, gives your consent to update the workspace dependent resources. Updating the workspace-attached Azure Container Registry or Application Insights resource may break lineage of previous jobs, deployed inference endpoints, or your ability to rerun earlier jobs in this workspace.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for