ManagedComputeDeploymentProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cognitiveservices. models. ManagedComputeDeploymentProperties
- com.
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 Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
acceleratorsPerInstance()
Get the accelerators |
| String |
acceleratorType()
Get the accelerator |
| Map<String,String> |
capabilities()
Get the capabilities property: Deployment capabilities represented as key-value pairs. |
| String |
computeId()
Get the compute |
| String |
deploymentTemplate()
Get the deployment |
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
| 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. |
|
Managed |
provisioningDetails()
Get the provisioning |
|
Provisioning |
provisioningState()
Get the provisioning |
|
Managed |
routes()
Get the routes property: Read-only. |
|
Json |
toJson(JsonWriter jsonWriter) |
| Integer |
totalAccelerators()
Get the total |
|
Deployment |
versionUpgradeOption()
Get the version |
|
Managed |
withAcceleratorType(String acceleratorType)
Set the accelerator |
|
Managed |
withComputeId(String computeId)
Set the compute |
|
Managed |
withDeploymentTemplate(String deploymentTemplate)
Set the deployment |
|
Managed |
withModel(String model)
Set the model property: AzureML Registry model asset URI. |
|
Managed |
withPriority(String priority)
Set the priority property: Scheduling priority for VM-backed managed compute deployments. |
|
Managed |
withVersionUpgradeOption(DeploymentModelVersionUpgradeOption versionUpgradeOption)
Set the version |
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:
acceleratorType
public String acceleratorType()
Get the acceleratorType property: Accelerator type (e.g., H100_80GB). Optional on creation; immutable after creation.
Returns:
capabilities
public Map<String,String> capabilities()
Get the capabilities property: Deployment capabilities represented as key-value pairs. Example: { assetsV2: "true" }.
Returns:
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:
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:
fromJson
public static ManagedComputeDeploymentProperties fromJson(JsonReader jsonReader)
Reads an instance of ManagedComputeDeploymentProperties from the JsonReader.
Parameters:
Returns:
Throws:
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:
priority
public String priority()
Get the priority property: Scheduling priority for VM-backed managed compute deployments. Immutable after creation.
Returns:
provisioningDetails
public ManagedComputeDeploymentProvisioningDetails provisioningDetails()
Get the provisioningDetails property: Read-only. Status message and timestamp from the last provisioning operation.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Read-only. Current provisioning state.
Returns:
routes
public ManagedComputeDeploymentRoutes routes()
Get the routes property: Read-only. Inference route paths relative to the account endpoint. Populated when provisioningState is Succeeded.
Returns:
toJson
totalAccelerators
public Integer totalAccelerators()
Get the totalAccelerators property: Read-only. Total accelerators allocated: sku.capacity (instances) x acceleratorsPerInstance.
Returns:
versionUpgradeOption
public DeploymentModelVersionUpgradeOption versionUpgradeOption()
Get the versionUpgradeOption property: Template auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable.
Returns:
withAcceleratorType
public ManagedComputeDeploymentProperties withAcceleratorType(String acceleratorType)
Set the acceleratorType property: Accelerator type (e.g., H100_80GB). Optional on creation; immutable after creation.
Parameters:
Returns:
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:
Returns:
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:
Returns:
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:
Returns:
withPriority
public ManagedComputeDeploymentProperties withPriority(String priority)
Set the priority property: Scheduling priority for VM-backed managed compute deployments. Immutable after creation.
Parameters:
Returns:
withVersionUpgradeOption
public ManagedComputeDeploymentProperties withVersionUpgradeOption(DeploymentModelVersionUpgradeOption versionUpgradeOption)
Set the versionUpgradeOption property: Template auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable.
Parameters:
Returns: