DeploymentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ResourceManagementClient's

<xref:deployments> attribute.

Inheritance
builtins.object
DeploymentsOperations

Constructor

DeploymentsOperations(*args, **kwargs)

Methods

begin_create_or_update

Create a named template deployment using a template.

begin_delete

Delete deployment.

calculate_template_hash

Calculate the hash of the given template.

cancel

Cancel a currently running template deployment.

check_existence

Checks whether deployment exists.

export_template

Exports a deployment template.

get

Get a deployment.

list

Get a list of deployments.

validate

Validate a deployment template.

begin_create_or_update

Create a named template deployment using a template.

begin_create_or_update(resource_group_name: str, deployment_name: str, parameters: _models.Deployment, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DeploymentExtended]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

deployment_name
Required
str

The name of the deployment. Required.

parameters
Required

Additional parameters supplied to the operation. Is either a Deployment type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns either DeploymentExtended or the result of cls(response)

Exceptions

Type Description

begin_delete

Delete deployment.

begin_delete(resource_group_name: str, deployment_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

deployment_name
Required
str

The name of the deployment to be deleted. Required.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

calculate_template_hash

Calculate the hash of the given template.

calculate_template_hash(template: MutableMapping[str, Any], **kwargs: Any) -> TemplateHashResult

Parameters

Name Description
template
Required
<xref:JSON>

The template provided to calculate hash. Required.

Returns

Type Description

TemplateHashResult or the result of cls(response)

Exceptions

Type Description

cancel

Cancel a currently running template deployment.

cancel(resource_group_name: str, deployment_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

deployment_name
Required
str

The name of the deployment. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

check_existence

Checks whether deployment exists.

check_existence(resource_group_name: str, deployment_name: str, **kwargs: Any) -> bool

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to check. The name is case insensitive. Required.

deployment_name
Required
str

The name of the deployment. Required.

Returns

Type Description

bool or the result of cls(response)

Exceptions

Type Description

export_template

Exports a deployment template.

export_template(resource_group_name: str, deployment_name: str, **kwargs: Any) -> DeploymentExportResult

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

deployment_name
Required
str

The name of the deployment. Required.

Returns

Type Description

DeploymentExportResult or the result of cls(response)

Exceptions

Type Description

get

Get a deployment.

get(resource_group_name: str, deployment_name: str, **kwargs: Any) -> DeploymentExtended

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to get. The name is case insensitive. Required.

deployment_name
Required
str

The name of the deployment. Required.

Returns

Type Description

DeploymentExtended or the result of cls(response)

Exceptions

Type Description

list

Get a list of deployments.

list(resource_group_name: str, filter: str | None = None, top: int | None = None, **kwargs: Any) -> Iterable[DeploymentExtended]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group to filter by. The name is case insensitive. Required.

filter
Required
str

The filter to apply on the operation. Default value is None.

top
Required
int

Query parameters. If null is passed returns all deployments. Default value is None.

Returns

Type Description

An iterator like instance of either DeploymentExtended or the result of cls(response)

Exceptions

Type Description

validate

Validate a deployment template.

validate(resource_group_name: str, deployment_name: str, parameters: _models.Deployment, *, content_type: str = 'application/json', **kwargs: Any) -> _models.DeploymentValidateResult

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

deployment_name
Required
str

The name of the deployment. Required.

parameters
Required

Deployment to validate. Is either a Deployment type or a IO[bytes] type. Required.

Returns

Type Description

DeploymentValidateResult or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.resource.resources.v2016_02_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\resource\\resources\\v2016_02_01\\models\\__init__.py'>