OnlineDeployment Class
Online endpoint deployment entity.
Online endpoint deployment entity.
Constructor for Online endpoint deployment entity
- Inheritance
-
azure.ai.ml.entities._deployment.deployment.DeploymentOnlineDeployment
Constructor
OnlineDeployment(name: str, *, endpoint_name: str | None = None, tags: Dict[str, Any] | None = None, properties: Dict[str, Any] | None = None, description: str | None = None, model: str | Model | None = None, data_collector: DataCollector | None = None, code_configuration: CodeConfiguration | None = None, environment: str | Environment | None = None, app_insights_enabled: bool | None = False, scale_settings: OnlineScaleSettings | None = None, request_settings: OnlineRequestSettings | None = None, liveness_probe: ProbeSettings | None = None, readiness_probe: ProbeSettings | None = None, environment_variables: Dict[str, str] | None = None, instance_count: int | None = None, instance_type: str | None = None, model_mount_path: str | None = None, code_path: str | PathLike | None = None, scoring_script: str | PathLike | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
name
Required
|
Name of the deployment resource. |
name
Required
|
Name of the deployment resource. |
Keyword-Only Parameters
Name | Description |
---|---|
endpoint_name
|
Name of the endpoint resource, defaults to None |
tags
|
Tag dictionary. Tags can be added, removed, and updated, defaults to None |
properties
|
The asset property dictionary, defaults to None |
description
|
Description of the resource, defaults to None |
model
|
Model entity for the endpoint deployment, defaults to None |
data_collector
|
Data Collector entity for the endpoint deployment, defaults to None |
code_configuration
|
Code Configuration, defaults to None |
environment
|
Environment entity for the endpoint deployment, defaults to None |
app_insights_enabled
|
Is appinsights enabled, defaults to False |
scale_settings
|
How the online deployment will scale, defaults to None |
request_settings
|
Online Request Settings, defaults to None |
liveness_probe
|
Liveness probe settings, defaults to None |
readiness_probe
|
Readiness probe settings, defaults to None |
environment_variables
|
Environment variables that will be set in deployment, defaults to None |
instance_count
|
The instance count used for this deployment, defaults to None |
instance_type
|
Azure compute sku, defaults to None |
model_mount_path
|
The path to mount the model in custom container, defaults to None |
code_path
|
Equivalent to code_configuration.code, will be ignored if code_configuration is present , defaults to None |
scoring_script
|
Equivalent to code_configuration.code.scoring_script. Will be ignored if code_configuration is present, defaults to None |
endpoint_name
|
Name of the endpoint resource, defaults to None |
tags
|
Tag dictionary. Tags can be added, removed, and updated, defaults to None |
properties
|
The asset property dictionary, defaults to None |
description
|
Description of the resource, defaults to None |
model
|
Model entity for the endpoint deployment, defaults to None |
code_configuration
|
Code Configuration, defaults to None |
environment
|
Environment entity for the endpoint deployment, defaults to None |
app_insights_enabled
|
Is appinsights enabled, defaults to False |
scale_settings
|
How the online deployment will scale, defaults to None |
request_settings
|
Online Request Settings, defaults to None |
liveness_probe
|
Liveness probe settings, defaults to None |
readiness_probe
|
Readiness probe settings, defaults to None |
environment_variables
|
Environment variables that will be set in deployment, defaults to None |
instance_count
|
The instance count used for this deployment, defaults to None |
instance_type
|
Azure compute sku, defaults to None |
model_mount_path
|
The path to mount the model in custom container, defaults to None |
code_path
|
Equivalent to code_configuration.code, will be ignored if code_configuration is present , defaults to None |
scoring_script
|
Equivalent to code_configuration.code.scoring_script. Will be ignored if code_configuration is present, defaults to None |
Methods
dump |
Dump the deployment content into a file in yaml format. |
dump
Dump the deployment content into a file in yaml format.
dump(dest: str | PathLike | IO, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
dest
Required
|
The destination to receive this deployment's content. Must be either a path to a local file, or an already-open file stream. If dest is a file path, a new file will be created, and an exception is raised if the file exists. If dest is an open file, the file will be written to directly, and an exception will be raised if the file is not writable. |
Attributes
base_path
code_path
The code directory containing the scoring script.
Returns
Type | Description |
---|---|
creation_context
The creation context of the resource.
Returns
Type | Description |
---|---|
The creation metadata for the resource. |
id
The resource ID.
Returns
Type | Description |
---|---|
The global ID of the resource, an Azure Resource Manager (ARM) ID. |
provisioning_state
Deployment provisioning state, readonly.
Returns
Type | Description |
---|---|
Deployment provisioning state. |
scoring_script
The scoring script file path relative to the code directory.
Returns
Type | Description |
---|---|
type
Azure SDK for Python