Synopsis
在戳记上触发机密轮换。
Syntax
Start-SecretRotation [-PathAccessCredential <Object>] [-ReRun] [-CertificatePassword <Object>] [-Internal]
[-PfxFilesPath <Object>] [-AsJob]
Description
为Azure Stack Hub系统的基础结构机密调用机密轮换过程。 默认情况下,它仅轮换外部网络基础结构终结点的证书。 有关更多详细信息,请参阅Azure Stack Hub中的轮换机密。
Parameters
-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中使用特权终结点。