CertificateOperationsExtensions.CancelDeletionAsync(ICertificateOperations, String, String, CertificateCancelDeletionOptions, CancellationToken) Method

Definition

Cancels a failed deletion of a certificate from the specified account.

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.CertificateCancelDeletionHeaders> CancelDeletionAsync (this Microsoft.Azure.Batch.Protocol.ICertificateOperations operations, string thumbprintAlgorithm, string thumbprint, Microsoft.Azure.Batch.Protocol.Models.CertificateCancelDeletionOptions certificateCancelDeletionOptions = null, System.Threading.CancellationToken cancellationToken = null);
static member CancelDeletionAsync : Microsoft.Azure.Batch.Protocol.ICertificateOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.CertificateCancelDeletionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.CertificateCancelDeletionHeaders>

Parameters

operations
ICertificateOperations

The operations group for this extension method.

thumbprintAlgorithm
System.String

The algorithm used to derive the thumbprint parameter. This must be sha1.

thumbprint
System.String

The thumbprint of the certificate being deleted.

certificateCancelDeletionOptions
CertificateCancelDeletionOptions

Additional parameters for the operation

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<CertificateCancelDeletionHeaders>

Remarks

If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.

Applies to