你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WhatIfChange Class

Information about a single resource change predicted by What-If operation.

All required parameters must be populated in order to send to server.

Constructor

WhatIfChange(*, change_type: str | _models.ChangeType, resource_id: str | None = None, deployment_id: str | None = None, symbolic_name: str | None = None, identifiers: MutableMapping[str, Any] | None = None, extension: _models.DeploymentExtensionDefinition | None = None, unsupported_reason: str | None = None, before: MutableMapping[str, Any] | None = None, after: MutableMapping[str, Any] | None = None, delta: List[_models.WhatIfPropertyChange] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
resource_id
str

Resource ID.

Default value: None
deployment_id
str

The resource id of the Deployment responsible for this change.

Default value: None
symbolic_name
str

The symbolic name of the resource responsible for this change.

Default value: None
identifiers

A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.

Default value: None
extension

The extension the resource was deployed with.

Default value: None
change_type

Type of change that will be made to the resource when the deployment is executed. Required. Known values are: "Create", "Delete", "Ignore", "Deploy", "NoChange", "Modify", and "Unsupported".

unsupported_reason
str

The explanation about why the resource is unsupported by What-If.

Default value: None
before

The snapshot of the resource before the deployment is executed.

Default value: None
after

The predicted snapshot of the resource after the deployment is executed.

Default value: None
delta

The predicted changes to resource properties.

Default value: None

Variables

Name Description
resource_id
str

Resource ID.

deployment_id
str

The resource id of the Deployment responsible for this change.

symbolic_name
str

The symbolic name of the resource responsible for this change.

identifiers
<xref:JSON>

A subset of properties that uniquely identify a Bicep extensible resource because it lacks a resource id like an Azure resource has.

extension

The extension the resource was deployed with.

change_type

Type of change that will be made to the resource when the deployment is executed. Required. Known values are: "Create", "Delete", "Ignore", "Deploy", "NoChange", "Modify", and "Unsupported".

unsupported_reason
str

The explanation about why the resource is unsupported by What-If.

before
<xref:JSON>

The snapshot of the resource before the deployment is executed.

after
<xref:JSON>

The predicted snapshot of the resource after the deployment is executed.

delta

The predicted changes to resource properties.