ManagedComputeDeploymentProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties

Implements

public final class ManagedComputeDeploymentProperties
implements JsonSerializable<ManagedComputeDeploymentProperties>

Properties of a Cognitive Services managed compute deployment.

Constructor Summary

Constructor Description
ManagedComputeDeploymentProperties()

Creates an instance of ManagedComputeDeploymentProperties class.

Method Summary

Modifier and Type Method and Description
Integer acceleratorsPerInstance()

Get the acceleratorsPerInstance property: Read-only.

String acceleratorType()

Get the acceleratorType property: Accelerator type (e.g., H100_80GB).

Map<String,String> capabilities()

Get the capabilities property: Deployment capabilities represented as key-value pairs.

String computeId()

Get the computeId property: Foundry compute ARM resource ID for VM-backed managed compute deployments.

String deploymentTemplate()

Get the deploymentTemplate property: Deployment template identifier.

static ManagedComputeDeploymentProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagedComputeDeploymentProperties from the JsonReader.

String model()

Get the model property: AzureML Registry model asset URI.

String priority()

Get the priority property: Scheduling priority for VM-backed managed compute deployments.

ManagedComputeDeploymentProvisioningDetails provisioningDetails()

Get the provisioningDetails property: Read-only.

ProvisioningState provisioningState()

Get the provisioningState property: Read-only.

ManagedComputeDeploymentRoutes routes()

Get the routes property: Read-only.

JsonWriter toJson(JsonWriter jsonWriter)
Integer totalAccelerators()

Get the totalAccelerators property: Read-only.

DeploymentModelVersionUpgradeOption versionUpgradeOption()

Get the versionUpgradeOption property: Template auto-upgrade policy.

ManagedComputeDeploymentProperties withAcceleratorType(String acceleratorType)

Set the acceleratorType property: Accelerator type (e.g., H100_80GB).

ManagedComputeDeploymentProperties withComputeId(String computeId)

Set the computeId property: Foundry compute ARM resource ID for VM-backed managed compute deployments.

ManagedComputeDeploymentProperties withDeploymentTemplate(String deploymentTemplate)

Set the deploymentTemplate property: Deployment template identifier.

ManagedComputeDeploymentProperties withModel(String model)

Set the model property: AzureML Registry model asset URI.

ManagedComputeDeploymentProperties withPriority(String priority)

Set the priority property: Scheduling priority for VM-backed managed compute deployments.

ManagedComputeDeploymentProperties withVersionUpgradeOption(DeploymentModelVersionUpgradeOption versionUpgradeOption)

Set the versionUpgradeOption property: Template auto-upgrade policy.

Methods inherited from java.lang.Object

Constructor Details

ManagedComputeDeploymentProperties

public ManagedComputeDeploymentProperties()

Creates an instance of ManagedComputeDeploymentProperties class.

Method Details

acceleratorsPerInstance

public Integer acceleratorsPerInstance()

Get the acceleratorsPerInstance property: Read-only. Number of accelerators (GPUs) consumed by each model instance, sourced from the deployment template.

Returns:

the acceleratorsPerInstance value.

acceleratorType

public String acceleratorType()

Get the acceleratorType property: Accelerator type (e.g., H100_80GB). Optional on creation; immutable after creation.

Returns:

the acceleratorType value.

capabilities

public Map<String,String> capabilities()

Get the capabilities property: Deployment capabilities represented as key-value pairs. Example: { assetsV2: "true" }.

Returns:

the capabilities value.

computeId

public String computeId()

Get the computeId property: Foundry compute ARM resource ID for VM-backed managed compute deployments. Required when sku.name is VmManagedCompute; immutable after creation.

Returns:

the computeId value.

deploymentTemplate

public String deploymentTemplate()

Get the deploymentTemplate property: Deployment 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}.

Returns:

the deploymentTemplate value.

fromJson

public static ManagedComputeDeploymentProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagedComputeDeploymentProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedComputeDeploymentProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

model

public String model()

Get the model property: AzureML Registry model asset URI. Required on creation; immutable after creation. Example: azureml://registries/{registry}/models/{model}/versions/{version}.

Returns:

the model value.

priority

public String priority()

Get the priority property: Scheduling priority for VM-backed managed compute deployments. Immutable after creation.

Returns:

the priority value.

provisioningDetails

public ManagedComputeDeploymentProvisioningDetails provisioningDetails()

Get the provisioningDetails property: Read-only. Status message and timestamp from the last provisioning operation.

Returns:

the provisioningDetails value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Read-only. Current provisioning state.

Returns:

the provisioningState value.

routes

public ManagedComputeDeploymentRoutes routes()

Get the routes property: Read-only. Inference route paths relative to the account endpoint. Populated when provisioningState is Succeeded.

Returns:

the routes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalAccelerators

public Integer totalAccelerators()

Get the totalAccelerators property: Read-only. Total accelerators allocated: sku.capacity (instances) x acceleratorsPerInstance.

Returns:

the totalAccelerators value.

versionUpgradeOption

public DeploymentModelVersionUpgradeOption versionUpgradeOption()

Get the versionUpgradeOption property: Template auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable.

Returns:

the versionUpgradeOption value.

withAcceleratorType

public ManagedComputeDeploymentProperties withAcceleratorType(String acceleratorType)

Set the acceleratorType property: Accelerator type (e.g., H100_80GB). Optional on creation; immutable after creation.

Parameters:

acceleratorType - the acceleratorType value to set.

Returns:

the ManagedComputeDeploymentProperties object itself.

withComputeId

public ManagedComputeDeploymentProperties withComputeId(String computeId)

Set the computeId property: Foundry compute ARM resource ID for VM-backed managed compute deployments. Required when sku.name is VmManagedCompute; immutable after creation.

Parameters:

computeId - the computeId value to set.

Returns:

the ManagedComputeDeploymentProperties object itself.

withDeploymentTemplate

public ManagedComputeDeploymentProperties withDeploymentTemplate(String deploymentTemplate)

Set the deploymentTemplate property: Deployment 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}.

Parameters:

deploymentTemplate - the deploymentTemplate value to set.

Returns:

the ManagedComputeDeploymentProperties object itself.

withModel

public ManagedComputeDeploymentProperties withModel(String model)

Set the model property: AzureML Registry model asset URI. Required on creation; immutable after creation. Example: azureml://registries/{registry}/models/{model}/versions/{version}.

Parameters:

model - the model value to set.

Returns:

the ManagedComputeDeploymentProperties object itself.

withPriority

public ManagedComputeDeploymentProperties withPriority(String priority)

Set the priority property: Scheduling priority for VM-backed managed compute deployments. Immutable after creation.

Parameters:

priority - the priority value to set.

Returns:

the ManagedComputeDeploymentProperties object itself.

withVersionUpgradeOption

public ManagedComputeDeploymentProperties withVersionUpgradeOption(DeploymentModelVersionUpgradeOption versionUpgradeOption)

Set the versionUpgradeOption property: Template auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable.

Parameters:

versionUpgradeOption - the versionUpgradeOption value to set.

Returns:

the ManagedComputeDeploymentProperties object itself.

Applies to