az aimanager modelsource
Note
This reference is part of the aimanager extension for the Azure CLI (version 2.61.0 or higher). The extension will automatically install the first time you run an az aimanager modelsource command. Learn more about extensions.
Manage model sources within an AI Manager.
A model source tells the platform where to pull model artifacts from and, for gated or private sources, which credential to authenticate with. Model sources are referenced by 'az aimanager namespace modeldeployment add --model-source-resource-id'.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az aimanager modelsource add |
Add a model source to an AI Manager. |
Extension | GA |
| az aimanager modelsource delete |
Delete a model source from an AI Manager. |
Extension | GA |
| az aimanager modelsource list |
List the model sources within an AI Manager. |
Extension | GA |
| az aimanager modelsource show |
Show the details of a model source within an AI Manager. |
Extension | GA |
| az aimanager modelsource update |
Update a model source within an AI Manager. |
Extension | GA |
| az aimanager modelsource wait |
Wait for an AI Manager model source to reach a desired state. |
Extension | GA |
az aimanager modelsource add
Add a model source to an AI Manager.
az aimanager modelsource add --aimanager-name
--name
--resource-group
--source-type {HuggingFace}
[--acquire-policy-token]
[--aks-custom-headers]
[--change-reference]
[--description]
[--no-wait]
[--token]
Examples
Add a public Hugging Face model source
az aimanager modelsource add -g myrg --aimanager-name my-ai-manager -n hf --source-type HuggingFace
Add a Hugging Face model source with an access token for gated models
az aimanager modelsource add -g myrg --aimanager-name my-ai-manager -n hf -s HuggingFace --token hf_xxx --description "Gated models"
Required Parameters
The name of the AI Manager resource.
The name of the model source.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
The type of the model source. Immutable after creation.
| Property | Value |
|---|---|
| Accepted values: | HuggingFace |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Comma-separated key=value pairs to specify custom headers.
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
An optional, free-form description of the model source.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Access token used by the platform to authenticate to the source. Optional for public sources such as ungated Hugging Face models.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az aimanager modelsource delete
Delete a model source from an AI Manager.
az aimanager modelsource delete --aimanager-name
--name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--yes]
Examples
Delete a model source
az aimanager modelsource delete -g myrg --aimanager-name my-ai-manager -n hf
Required Parameters
The name of the AI Manager resource.
The name of the model source.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az aimanager modelsource list
List the model sources within an AI Manager.
az aimanager modelsource list --aimanager-name
--resource-group
Examples
List model sources
az aimanager modelsource list -g myrg --aimanager-name my-ai-manager
Required Parameters
The name of the AI Manager resource.
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.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az aimanager modelsource show
Show the details of a model source within an AI Manager.
az aimanager modelsource show --aimanager-name
--name
--resource-group
Examples
Show a model source
az aimanager modelsource show -g myrg --aimanager-name my-ai-manager -n hf
Required Parameters
The name of the AI Manager resource.
The name of the model source.
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.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az aimanager modelsource update
Update a model source within an AI Manager.
The source type is immutable after creation and is always preserved. Omitted properties keep their current values.
az aimanager modelsource update --aimanager-name
--name
--resource-group
[--acquire-policy-token]
[--aks-custom-headers]
[--change-reference]
[--description]
[--no-wait]
[--token]
Examples
Rotate the access token of a model source
az aimanager modelsource update -g myrg --aimanager-name my-ai-manager -n hf --token hf_yyy
Update the description of a model source
az aimanager modelsource update -g myrg --aimanager-name my-ai-manager -n hf --description "Internal mirror"
Required Parameters
The name of the AI Manager resource.
The name of the model source.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Comma-separated key=value pairs to specify custom headers.
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
An optional, free-form description of the model source.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Access token used by the platform to authenticate to the source. Optional for public sources such as ungated Hugging Face models.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |
az aimanager modelsource wait
Wait for an AI Manager model source to reach a desired state.
az aimanager modelsource wait --aimanager-name
--name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Required Parameters
The name of the AI Manager resource.
The name of the model source.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Wait until created with 'provisioningState' at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
Wait until deleted.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the resource exists.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Polling interval in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 30 |
Maximum wait in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
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.
| Property | Value |
|---|---|
| Default value: | False |