Condividi tramite


BatchAccountCertificateResource.CancelDeletion(CancellationToken) Method

Definition

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.

Warning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete
  • Operation Id: Certificate_CancelDeletion
  • Default Api Version: 2024-07-01
  • Resource: BatchAccountCertificateResource
public virtual Azure.Response<Azure.ResourceManager.Batch.BatchAccountCertificateResource> CancelDeletion (System.Threading.CancellationToken cancellationToken = default);
abstract member CancelDeletion : System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Batch.BatchAccountCertificateResource>
override this.CancelDeletion : System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Batch.BatchAccountCertificateResource>
Public Overridable Function CancelDeletion (Optional cancellationToken As CancellationToken = Nothing) As Response(Of BatchAccountCertificateResource)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to