【问题标题】:Add-AzureRmServiceFabricClusterCertificate ends with error 'Certificates cannot be added and removed at the same time.'Add-AzureRm ServiceFabricCluster 证书以错误“不能同时添加和删除证书”结尾。
【发布时间】:2018-05-11 03:34:21
【问题描述】:

我尝试翻转服务结构集群的集群证书。所以我尝试用这个命令注入一个新的自签名二级证书:

Add-AzureRmServiceFabricClusterCertificate -ResourceGroupName $configuration.ResourceGroupName -Name $clusterName -SecretIdentifier $certificateVaultUrl_Secondary

错误详情

"error": {
   "code": "AddAndRemoveCertificateNotAllowed",
   "message": "Certificates cannot be added and removed at the same time.",
   "details": []
}

环境

  • AzureRM 5.0.1
  • Powershell 5.0.10586.117
  • Service Fabric 6.0.232.9494

【问题讨论】:

标签: powershell azure azure-service-fabric


【解决方案1】:

使用 ARM 部署时,出现相同的错误消息。

目前(2017 年 11 月),无法修改集群证书指纹。工作流程:

  1. 使用门户删除现有的辅助指纹(触发集群升级)
  2. 使用 ARM 部署指定新辅助证书的位置和指纹(触发集群升级)
  3. 使用门户将辅助证书与主证书交换(触发集群升级)
  4. 使用门户删除辅助指纹 -> 这将删除旧的主证书(触发集群升级)

这是我们发现的向集群提供新证书的唯一工作流程。

【讨论】:

    猜你喜欢
    • 2021-01-17
    • 2011-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-25
    • 1970-01-01
    • 2020-10-14
    • 1970-01-01
    相关资源
    最近更新 更多