Share via


ArmDeploymentResource.Validate Method

Definition

Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager..

  • Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/validate
  • Operation Id: Deployments_ValidateAtScope
  • Default Api Version: 2022-09-01
  • Resource: ArmDeploymentResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult> Validate (Azure.WaitUntil waitUntil, Azure.ResourceManager.Resources.Models.ArmDeploymentContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member Validate : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ArmDeploymentContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult>
override this.Validate : Azure.WaitUntil * Azure.ResourceManager.Resources.Models.ArmDeploymentContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Resources.Models.ArmDeploymentValidateResult>
Public Overridable Function Validate (waitUntil As WaitUntil, content As ArmDeploymentContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ArmDeploymentValidateResult)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
ArmDeploymentContent

Parameters to validate.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to