Freigeben über


ArmDeploymentResource.WhatIf Methode

Definition

Gibt Änderungen zurück, die von der Bereitstellung vorgenommen werden, wenn sie im Bereich der Mandantengruppe ausgeführt werden.

  • Anfordern von Path/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf
  • Vorgang IdDeployments_WhatIfAtTenantScope
  • Anfordern von Path/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf
  • Vorgang IdDeployments_WhatIfAtManagementGroupScope
  • Request Path/subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf
  • Vorgang IdDeployments_WhatIfAtSubscriptionScope
  • Request Path/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deployments/{deploymentName}/whatIf
  • Vorgang IdDeployments_WhatIf
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.WhatIfOperationResult> WhatIf (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member WhatIf : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.WhatIfOperationResult>
override this.WhatIf : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ArmDeploymentWhatIfContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.WhatIfOperationResult>
Public Overridable Function WhatIf (waitUntil As WaitUntil, content As ArmDeploymentWhatIfContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of WhatIfOperationResult)

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

content
ArmDeploymentWhatIfContent

Zu überprüfende Parameter.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: