共用方式為


Stop-AzBatchCertificateDeletion

取消憑證的失敗刪除。

語法

Stop-AzBatchCertificateDeletion
    [-ThumbprintAlgorithm] <String>
    [-Thumbprint] <String>
    -BatchContext <BatchAccountContext>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Stop-AzBatchCertificateDeletion Cmdlet 會取消在 Azure Batch 服務中刪除憑證失敗。 只有當憑證處於 DeleteFailed 狀態時,您才能停止刪除。 此 Cmdlet 會將憑證還原至 Active 狀態。

範例

範例 1:取消刪除

Stop-AzBatchCertificateDeletion -ThumbprintAlgorithm "sha1" -Thumbprint "c1e494a415149c5f211c4778b52f2e834a07247c" -BatchContext $Context

此命令會取消刪除具有指定指紋的憑證。

參數

-BatchContext

指定此 Cmdlet 用來與 Batch 服務互動的 BatchAccountContext 實例。 如果您使用 Get-AzBatchAccount Cmdlet 來取得 BatchAccountContext,則與 Batch 服務互動時,將會使用Microsoft Entra 驗證。 若要改用共用密鑰驗證,請使用 Get-AzBatchAccountKey Cmdlet 來取得已填入其存取金鑰的 BatchAccountContext 物件。 使用共用金鑰驗證時,預設會使用主要存取金鑰。 若要變更要使用的密鑰,請設定 BatchAccountContext.KeyInUse 屬性。

類型:BatchAccountContext
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Thumbprint

指定此 Cmdlet 還原至 Active 狀態的憑證指紋。

類型:String
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ThumbprintAlgorithm

指定用來衍生 指紋 參數的演算法。 目前,唯一有效的值為sha1。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

BatchAccountContext

輸出

Void