ArmDeploymentResource.Cancel(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 resources partially deployed.
- Request Path: /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}/cancel
- Operation Id: Deployments_CancelAtScope
- Default Api Version: 2024-03-01
- Resource: ArmDeploymentResource
public virtual Azure.Response Cancel (System.Threading.CancellationToken cancellationToken = default);
abstract member Cancel : System.Threading.CancellationToken -> Azure.Response
override this.Cancel : System.Threading.CancellationToken -> Azure.Response
Public Overridable Function Cancel (Optional cancellationToken As CancellationToken = Nothing) As Response
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.