Start-SecretRotationStart-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.

parametersParameters

-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.