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
|
Resource ID. Default value: None
|
|
deployment_id
|
The resource id of the Deployment responsible for this change. Default value: None
|
|
symbolic_name
|
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
|
str or
ChangeType
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
|
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
|
Resource ID. |
|
deployment_id
|
The resource id of the Deployment responsible for this change. |
|
symbolic_name
|
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
|
str or
ChangeType
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
|
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. |