az aimanager namespace modeldeployment
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 namespace modeldeployment command. Learn more about extensions.
Manage model deployments within an AI Manager namespace.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az aimanager namespace modeldeployment add |
Add a model deployment to an AI Manager namespace. |
Extension | GA |
| az aimanager namespace modeldeployment delete |
Delete a model deployment from an AI Manager namespace. |
Extension | GA |
| az aimanager namespace modeldeployment list |
List model deployments within an AI Manager namespace. |
Extension | GA |
| az aimanager namespace modeldeployment show |
Show a model deployment within an AI Manager namespace. |
Extension | GA |
| az aimanager namespace modeldeployment update |
Update a model deployment within an AI Manager namespace. |
Extension | GA |
| az aimanager namespace modeldeployment wait |
Wait for an AI Manager model deployment to reach a desired state. |
Extension | GA |
az aimanager namespace modeldeployment add
Add a model deployment to an AI Manager namespace.
az aimanager namespace modeldeployment add --aimanager-name
--model-resource-id
--name
--namespace-name
--resource-group
--vm-size
[--acquire-policy-token]
[--aks-custom-headers]
[--change-reference]
[--max-replicas]
[--min-replicas]
[--model-source-resource-id --source-id]
[--no-wait]
[--overrides]
[--performance-mode {Balanced, Latency, Throughput}]
[--replicas]
Examples
Add a manually scaled model deployment
az aimanager namespace modeldeployment add -g myrg --aimanager-name my-ai-manager --namespace-name team-alpha -n phi --model-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus2/aiModels/phi --vm-size Standard_NC24ads_A100_v4 --replicas 1
Add an autoscaled model deployment
az aimanager namespace modeldeployment add -g myrg --aimanager-name my-ai-manager --namespace-name team-alpha -n phi --model-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus2/aiModels/phi --vm-size Standard_NC24ads_A100_v4 --min-replicas 1 --max-replicas 3
Required Parameters
The name of the AI Manager resource.
The full ARM resource ID of the AI model to deploy.
The name of the model deployment.
The name of the AI Manager namespace.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
The Azure VM SKU used to host the deployment.
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 |
Maximum autoscale replica count.
Minimum autoscale replica count. Must be at least 1.
The full ARM resource ID of the model source used to pull artifacts.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Space-separated experimental deployment overrides (key=value).
Runtime performance mode.
| Property | Value |
|---|---|
| Accepted values: | Balanced, Latency, Throughput |
Fixed replica count. Cannot be combined with autoscale arguments.
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 namespace modeldeployment delete
Delete a model deployment from an AI Manager namespace.
az aimanager namespace modeldeployment delete --aimanager-name
--name
--namespace-name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--yes]
Examples
Delete a model deployment
az aimanager namespace modeldeployment delete -g myrg --aimanager-name my-ai-manager --namespace-name team-alpha -n phi
Required Parameters
The name of the AI Manager resource.
The name of the model deployment.
The name of the AI Manager namespace.
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 namespace modeldeployment list
List model deployments within an AI Manager namespace.
az aimanager namespace modeldeployment list --aimanager-name
--namespace-name
--resource-group
Examples
List model deployments
az aimanager namespace modeldeployment list -g myrg --aimanager-name my-ai-manager --namespace-name team-alpha
Required Parameters
The name of the AI Manager resource.
The name of the AI Manager namespace.
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 namespace modeldeployment show
Show a model deployment within an AI Manager namespace.
az aimanager namespace modeldeployment show --aimanager-name
--name
--namespace-name
--resource-group
Examples
Show a model deployment
az aimanager namespace modeldeployment show -g myrg --aimanager-name my-ai-manager --namespace-name team-alpha -n phi
Required Parameters
The name of the AI Manager resource.
The name of the model deployment.
The name of the AI Manager namespace.
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 namespace modeldeployment update
Update a model deployment within an AI Manager namespace.
az aimanager namespace modeldeployment update --aimanager-name
--name
--namespace-name
--resource-group
[--acquire-policy-token]
[--aks-custom-headers]
[--change-reference]
[--max-replicas]
[--min-replicas]
[--no-wait]
[--overrides]
[--performance-mode {Balanced, Latency, Throughput}]
[--replicas]
Examples
Change the fixed replica count
az aimanager namespace modeldeployment update -g myrg --aimanager-name my-ai-manager --namespace-name team-alpha -n phi --replicas 2
Change the performance mode
az aimanager namespace modeldeployment update -g myrg --aimanager-name my-ai-manager --namespace-name team-alpha -n phi --performance-mode Throughput
Required Parameters
The name of the AI Manager resource.
The name of the model deployment.
The name of the AI Manager namespace.
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 |
Maximum autoscale replica count.
Minimum autoscale replica count. Must be at least 1.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Space-separated experimental deployment overrides (key=value).
Runtime performance mode.
| Property | Value |
|---|---|
| Accepted values: | Balanced, Latency, Throughput |
Fixed replica count. Cannot be combined with autoscale arguments.
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 namespace modeldeployment wait
Wait for an AI Manager model deployment to reach a desired state.
az aimanager namespace modeldeployment wait --aimanager-name
--name
--namespace-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 deployment.
The name of the AI Manager namespace.
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 |