ModelBatchDeployment Class

Model Batch Deployment entity.

Constructor

ModelBatchDeployment(*, name: str, endpoint_name: str | None = None, environment: str | Environment | None = None, properties: Dict[str, str] | None = None, model: str | Model | None = None, description: str | None = None, tags: Dict[str, Any] | None = None, settings: ModelBatchDeploymentSettings | None = None, resources: ResourceConfiguration | None = None, compute: str | None = None, code_configuration: CodeConfiguration | None = None, code_path: PathLike | str | None = None, scoring_script: PathLike | str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

Name of the deployment resource.

endpoint_name

Name of the endpoint.

Default value: None
environment

Environment to use for deployment.

Default value: None
properties

The asset property dictionary.

Default value: None
model

Model to deploy.

Default value: None
description

Deployment description.

Default value: None
tags

Deployment tags.

Default value: None
settings

Deployment settings.

Default value: None
resources

Resource configuration.

Default value: None
compute

Compute target to use.

Default value: None
code_configuration

Code configuration for deployment.

Default value: None
code_path
Optional[Union[str, <xref:PathLike>]]

Path to the code directory.

Default value: None
scoring_script
Optional[Union[str, <xref:PathLike>]]

Path to the scoring script.

Default value: 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

The base path of the resource.

Returns

Type Description
str

The base path of the resource.

code_path

The code directory containing the scoring script.

Returns

Type Description
Union[str, <xref:PathLike>]

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.

instance_count

provisioning_state

Batch deployment provisioning state, readonly.

Returns

Type Description

Batch deployment provisioning state.

scoring_script

The scoring script file path relative to the code directory.

Returns

Type Description
Union[str, <xref:PathLike>]

settings

type

Type of deployment.

Returns

Type Description
str