Skip to main content

managed_compute_deployments

Creates, updates, deletes, gets or lists a managed_compute_deployments resource.

Overview

Namemanaged_compute_deployments
TypeResource
Idazure.cognitive_services.managed_compute_deployments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
acceleratorTypestringAccelerator type (e.g., H100_80GB). Optional on creation; immutable after creation.
acceleratorsPerInstanceintegerRead-only. Number of accelerators (GPUs) consumed by each model instance, sourced from the deployment template.
capabilitiesobjectDeployment capabilities represented as key-value pairs. Example: { assetsV2: "true" }.
computeIdstringFoundry compute ARM resource ID for VM-backed managed compute deployments. Required when sku.name is VmManagedCompute; immutable after creation.
deploymentTemplatestringDeployment template identifier. Optional on creation. Accepts an AzureML Registry deployment template URI or a project-scoped deployment template path for VmManagedCompute. Examples: azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}, projects/{project}/deploymentTemplates/{template}/versions/{version}.
etagstringResource Etag.
modelstringAzureML Registry model asset URI. Required on creation; immutable after creation. Example: azureml://registries/{registry}/models/{model}/versions/{version}. Required.
prioritystringScheduling priority for VM-backed managed compute deployments. Immutable after creation.
provisioningDetailsobjectRead-only. Status message and timestamp from the last provisioning operation.
provisioningStatestringRead-only. Current provisioning state. Known values are: "Accepted", "Creating", "Deleting", "Moving", "Failed", "Succeeded", "Canceled", and "ResolvingDNS". (Accepted, Creating, Deleting, Moving, Failed, Succeeded, Canceled, ResolvingDNS)
routesobjectRead-only. Inference route paths relative to the account endpoint. Populated when provisioningState is Succeeded.
skuobjectThe resource model definition representing SKU.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
totalAcceleratorsintegerRead-only. Total accelerators allocated: sku.capacity (instances) x acceleratorsPerInstance.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
versionUpgradeOptionstringTemplate auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable. Known values are: "OnceNewDefaultVersionAvailable", "OnceCurrentVersionExpired", and "NoAutoUpgrade". (OnceNewDefaultVersionAvailable, OnceCurrentVersionExpired, NoAutoUpgrade)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, deployment_name, subscription_idGets the specified managed compute deployment associated with the Cognitive Services account.
listselectresource_group_name, account_name, subscription_idGets the managed compute deployments associated with the Cognitive Services account.
create_or_updateinsertresource_group_name, account_name, deployment_name, subscription_idCreates or updates a managed compute deployment associated with the Cognitive Services account.
updateupdateresource_group_name, account_name, deployment_name, subscription_idUpdates the specified managed compute deployment associated with the Cognitive Services account.
create_or_updatereplaceresource_group_name, account_name, deployment_name, subscription_idCreates or updates a managed compute deployment associated with the Cognitive Services account.
deletedeleteresource_group_name, account_name, deployment_name, subscription_idDeletes the specified managed compute deployment associated with the Cognitive Services account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_namestringThe name of Cognitive Services account. Required.
deployment_namestringThe name of the managed compute deployment associated with the Cognitive Services Account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets the specified managed compute deployment associated with the Cognitive Services account.

SELECT
id,
name,
acceleratorType,
acceleratorsPerInstance,
capabilities,
computeId,
deploymentTemplate,
etag,
model,
priority,
provisioningDetails,
provisioningState,
routes,
sku,
systemData,
totalAccelerators,
type,
versionUpgradeOption
FROM azure.cognitive_services.managed_compute_deployments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a managed compute deployment associated with the Cognitive Services account.

INSERT INTO azure.cognitive_services.managed_compute_deployments (
properties,
sku,
resource_group_name,
account_name,
deployment_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ sku }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ deployment_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
sku,
systemData,
type
;

UPDATE examples

Updates the specified managed compute deployment associated with the Cognitive Services account.

UPDATE azure.cognitive_services.managed_compute_deployments
SET
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
sku,
systemData,
type;

REPLACE examples

Creates or updates a managed compute deployment associated with the Cognitive Services account.

REPLACE azure.cognitive_services.managed_compute_deployments
SET
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
sku,
systemData,
type;

DELETE examples

Deletes the specified managed compute deployment associated with the Cognitive Services account.

DELETE FROM azure.cognitive_services.managed_compute_deployments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND deployment_name = '{{ deployment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;