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.
Returns
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET