Start-SecretRotation 參考Start-SecretRotation

概要Synopsis

觸發戳記上的秘密輪替。Triggers secret rotation on a stamp.

語法Syntax

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

描述Description

針對 Azure Stack Hub 系統的基礎結構秘密叫用秘密輪替程式。Invokes the secret rotation process for infrastructure secrets of an Azure Stack Hub system. 根據預設,它只會旋轉外部網路基礎結構端點的憑證。By default, it rotates only the certificates of external network infrastructure endpoints. 如需詳細資訊,請參閱 Azure Stack Hub 中的輪替秘密See Rotate secrets in Azure Stack Hub for more details.

參數Parameters

-Internal-Internal

輪替內部網路基礎結構端點的秘密。Rotate secrets for internal network infrastructure endpoints.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-PfxFilesPath-PfxFilesPath

共用於外部憑證輪替的新 pfx 檔案的路徑。Path of the new pfx files shared for external certs rotation. 若要進行外部憑證輪替,則必須有此項目。It's mandatory if external certs rotation is desired.

Type: Object
Parameter Sets: (All)
Aliases:

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

-PathAccessCredential-PathAccessCredential

存取 PfxFilesPath 的認證。Credentials to access PfxFilesPath. 若要進行外部憑證輪替,則必須有此項目。It's mandatory if external certs rotation is desired.

Type: Object
Parameter Sets: (All)
Aliases:

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

-CertificatePassword-CertificatePassword

提供的新 pfx 檔案的密碼。Password for the new pfx files provided. 若要進行外部憑證輪替,則必須有此項目。It's mandatory if external certs rotation is desired. 此密碼可能與初始部署時提供的原始 pfx 密碼不同。It can be different from the original pfx password provided at initial deployment time. 我們將以正確的 CA 密碼重新產生 pfx 檔案。We will regenerate the pfx files with correct CA password.

使用方式:Usage ::

    # 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-ReRun

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-AsJob-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

後續步驟Next steps

若要了解如何存取和使用具有特殊權限的端點,請參閱使用 Azure Stack Hub 中具有特殊權限的端點For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.