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.
Command group 'aimanager namespace' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage model deployments within an AI Manager namespace.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az aimanager namespace modeldeployment create |
Create a model deployment in an AI Manager namespace. |
Extension | Preview |
| az aimanager namespace modeldeployment delete |
Delete a model deployment from an AI Manager namespace. |
Extension | Preview |
| az aimanager namespace modeldeployment list |
List model deployments within an AI Manager namespace. |
Extension | Preview |
| az aimanager namespace modeldeployment show |
Show a model deployment within an AI Manager namespace. |
Extension | Preview |
| az aimanager namespace modeldeployment update |
Update a model deployment within an AI Manager namespace. |
Extension | Preview |
| az aimanager namespace modeldeployment wait |
Wait for an AI Manager model deployment to reach a desired state. |
Extension | Preview |
az aimanager namespace modeldeployment create
Command group 'aimanager namespace modeldeployment' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a model deployment in an AI Manager namespace.
This command is idempotent: running it again with the same name updates the model deployment and returns it, rather than failing because it already exists.
az aimanager namespace modeldeployment create --aimanager --manager
--model-resource-id
--name
--namespace --ns
--resource-group
--vm-size
[--acquire-policy-token]
[--change-reference]
[--custom-headers]
[--max-replicas]
[--min-replicas]
[--model-source-resource-id --source-id]
[--no-wait]
[--overrides]
[--performance-mode {Balanced, Latency, Throughput}]
[--replicas]
Examples
Create a manually scaled model deployment
az aimanager namespace modeldeployment create -g myrg --aimanager my-ai-manager --namespace 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
Create an autoscaled model deployment
az aimanager namespace modeldeployment create -g myrg --aimanager my-ai-manager --namespace 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 |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Comma-separated key=value pairs to specify custom headers, this is mainly for internal testing.
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
Command group 'aimanager namespace modeldeployment' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a model deployment from an AI Manager namespace.
az aimanager namespace modeldeployment delete --aimanager --manager
--name
--namespace --ns
--resource-group
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--yes]
Examples
Delete a model deployment
az aimanager namespace modeldeployment delete -g myrg --aimanager my-ai-manager --namespace 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
Command group 'aimanager namespace modeldeployment' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List model deployments within an AI Manager namespace.
If --namespace/--ns is omitted, model deployments are listed across namespaces of the AI Manager. This first lists the namespaces, which requires namespace read permission on the AI Manager resource; without it, no namespaces can be listed. Model deployments are then listed per namespace, which requires model deployment read permission for each namespace (granted on the namespace resource, or inherited from the AI Manager resource) — you may have this for some namespaces but not others. Namespaces you are not authorized to read model deployments in are skipped with a warning. To list a single namespace you have model deployment read access to, specify --namespace/--ns.
az aimanager namespace modeldeployment list --aimanager --manager
--resource-group
[--namespace --ns]
Examples
List model deployments in a namespace
az aimanager namespace modeldeployment list -g myrg --aimanager my-ai-manager --namespace team-alpha
List model deployments across all readable namespaces (omit --namespace)
az aimanager namespace modeldeployment list -g myrg --aimanager 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>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the AI Manager namespace. If omitted, model deployments across all readable namespaces of the AI Manager are listed.
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
Command group 'aimanager namespace modeldeployment' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show a model deployment within an AI Manager namespace.
az aimanager namespace modeldeployment show --aimanager --manager
--name
--namespace --ns
--resource-group
Examples
Show a model deployment
az aimanager namespace modeldeployment show -g myrg --aimanager my-ai-manager --namespace 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
Command group 'aimanager namespace modeldeployment' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update a model deployment within an AI Manager namespace.
az aimanager namespace modeldeployment update --aimanager --manager
--name
--namespace --ns
--resource-group
[--acquire-policy-token]
[--change-reference]
[--custom-headers]
[--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 my-ai-manager --namespace team-alpha -n phi --replicas 2
Change the performance mode
az aimanager namespace modeldeployment update -g myrg --aimanager my-ai-manager --namespace 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 |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Comma-separated key=value pairs to specify custom headers, this is mainly for internal testing.
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
Command group 'aimanager namespace modeldeployment' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Wait for an AI Manager model deployment to reach a desired state.
az aimanager namespace modeldeployment wait --aimanager --manager
--name
--namespace --ns
--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 |