Start-SecretRotation 參考

概要

觸發戳記上的秘密輪替。

語法

Start-SecretRotation [-PathAccessCredential <Object>] [-ReRun] [-CertificatePassword <Object>] [-Internal]
 [-PfxFilesPath <Object>] [-AsJob]

描述

針對 Azure Stack Hub 系統的基礎結構秘密,叫用秘密輪替程序。 根據預設,其只會輪替外部網路基礎結構端點的憑證。 如需詳細資訊,請參閱在 Azure Stack Hub 中輪替秘密

參數

-Internal

輪替內部網路基礎結構端點的秘密。

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-PfxFilesPath

共用於外部憑證輪替的新 pfx 檔案的路徑。 若要進行外部憑證輪替,則必須有此項目。

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PathAccessCredential

存取 PfxFilesPath 的認證。 若要進行外部憑證輪替,則必須有此項目。

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CertificatePassword

提供的新 pfx 檔案的密碼。 若要進行外部憑證輪替,則必須有此項目。 此密碼可能與初始部署時提供的原始 pfx 密碼不同。 我們將以正確的 CA 密碼重新產生 pfx 檔案。

使用方式:

    # Rotates external certificates only
    Start-SecretRotation -PfxFilesPath \<String\> -PathAccessCredential \<PSCredential\> -CertificatePassword \<SecureString\>

    # Rotates internal secrets only
    Start-SecretRotation -Internal  

    # Reruns internal secrets only
    Start-SecretRotation -Internal -ReRun 

    # Reruns external certificates only
    Start-SecretRotation -ReRun
Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ReRun

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

後續步驟

若要了解如何存取和使用具有特殊權限的端點,請參閱使用 Azure Stack Hub 中具有特殊權限的端點