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

--aimanager-name

The name of the AI Manager resource.

--model-resource-id

The full ARM resource ID of the AI model to deploy.

--name -n

The name of the model deployment.

--namespace-name

The name of the AI Manager namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--vm-size -s

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--aks-custom-headers

Comma-separated key=value pairs to specify custom headers.

--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--max-replicas

Maximum autoscale replica count.

--min-replicas

Minimum autoscale replica count. Must be at least 1.

--model-source-resource-id --source-id

The full ARM resource ID of the model source used to pull artifacts.

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--overrides

Space-separated experimental deployment overrides (key=value).

--performance-mode

Runtime performance mode.

Property Value
Accepted values: Balanced, Latency, Throughput
--replicas

Fixed replica count. Cannot be combined with autoscale arguments.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--aimanager-name

The name of the AI Manager resource.

--name -n

The name of the model deployment.

--namespace-name

The name of the AI Manager namespace.

--resource-group -g

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--yes -y

Do not prompt for confirmation.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--aimanager-name

The name of the AI Manager resource.

--namespace-name

The name of the AI Manager namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--aimanager-name

The name of the AI Manager resource.

--name -n

The name of the model deployment.

--namespace-name

The name of the AI Manager namespace.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--aimanager-name

The name of the AI Manager resource.

--name -n

The name of the model deployment.

--namespace-name

The name of the AI Manager namespace.

--resource-group -g

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--aks-custom-headers

Comma-separated key=value pairs to specify custom headers.

--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--max-replicas

Maximum autoscale replica count.

--min-replicas

Minimum autoscale replica count. Must be at least 1.

--no-wait

Do not wait for the long-running operation to finish.

Property Value
Default value: False
--overrides

Space-separated experimental deployment overrides (key=value).

--performance-mode

Runtime performance mode.

Property Value
Accepted values: Balanced, Latency, Throughput
--replicas

Fixed replica count. Cannot be combined with autoscale arguments.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

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

--aimanager-name

The name of the AI Manager resource.

--name -n

The name of the model deployment.

--namespace-name

The name of the AI Manager namespace.

--resource-group -g

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--created

Wait until created with 'provisioningState' at 'Succeeded'.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--custom

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
--deleted

Wait until deleted.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--exists

Wait until the resource exists.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
--interval

Polling interval in seconds.

Property Value
Parameter group: Wait Condition Arguments
Default value: 30
--timeout

Maximum wait in seconds.

Property Value
Parameter group: Wait Condition Arguments
Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Property Value
Parameter group: Wait Condition Arguments
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False