다음을 통해 공유


DeploymentsOperationsExtensions.Cancel Method

Definition

Cancels a currently running template deployment.

public static void Cancel (this Microsoft.Azure.Management.ResourceManager.IDeploymentsOperations operations, string resourceGroupName, string deploymentName);
static member Cancel : Microsoft.Azure.Management.ResourceManager.IDeploymentsOperations * string * string -> unit
<Extension()>
Public Sub Cancel (operations As IDeploymentsOperations, resourceGroupName As String, deploymentName As String)

Parameters

operations
IDeploymentsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

deploymentName
String

The name of the deployment.

Remarks

You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed.

Applies to