Share via


ArmResourcesModelFactory.WhatIfChange Method

Definition

Initializes a new instance of WhatIfChange.

public static Azure.ResourceManager.Resources.Models.WhatIfChange WhatIfChange (string resourceId = default, Azure.ResourceManager.Resources.Models.WhatIfChangeType changeType = Azure.ResourceManager.Resources.Models.WhatIfChangeType.Create, string unsupportedReason = default, BinaryData before = default, BinaryData after = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.WhatIfPropertyChange> delta = default);
static member WhatIfChange : string * Azure.ResourceManager.Resources.Models.WhatIfChangeType * string * BinaryData * BinaryData * seq<Azure.ResourceManager.Resources.Models.WhatIfPropertyChange> -> Azure.ResourceManager.Resources.Models.WhatIfChange
Public Shared Function WhatIfChange (Optional resourceId As String = Nothing, Optional changeType As WhatIfChangeType = Azure.ResourceManager.Resources.Models.WhatIfChangeType.Create, Optional unsupportedReason As String = Nothing, Optional before As BinaryData = Nothing, Optional after As BinaryData = Nothing, Optional delta As IEnumerable(Of WhatIfPropertyChange) = Nothing) As WhatIfChange

Parameters

resourceId
String

Resource ID.

changeType
WhatIfChangeType

Type of change that will be made to the resource when the deployment is executed.

unsupportedReason
String

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

before
BinaryData

The snapshot of the resource before the deployment is executed.

after
BinaryData

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

delta
IEnumerable<WhatIfPropertyChange>

The predicted changes to resource properties.

Returns

A new WhatIfChange instance for mocking.

Applies to