【问题标题】:Using certificate/secret from multiple KeyVault under different subscriptions in VMSS在 VMSS 中的不同订阅下使用来自多个 KeyVault 的证书/密钥
【发布时间】:2020-10-16 22:42:01
【问题描述】:

我正在尝试从不同订阅下的 KeyVault 安装证书。

目前我的 VMSS 和 KeyVault 订阅相同。我想从位于不同订阅中的 KeyVault 添加一个证书。

下面是我尝试添加证书机密 URL 的 VMSS 资源模板部分。

"secrets": [
  {
    "sourceVault": {
      "id": "/subscriptions/xxxx/resourceGroups/resgroupname/providers/Microsoft.KeyVault/vaults/KV1"
    },
    "vaultCertificates": [
      {
        "certificateUrl": "certificate1 secret URL",
        "certificateStore": "My"
      }
    ]
  },
  {
    "sourceVault": {
      "id": "/subscriptions/yyyy/resourceGroups/resgroupname/providers/Microsoft.KeyVault/vaults/KV2"
    },
    "vaultCertificates": [
      {
        "certificateUrl": "certificate2 secret URL",
        "certificateStore": "My"
      }
]

更新时出现以下错误。

{ “错误”:{ "code": "无效参数", "message": "请求的 SubscriptionId:"xxxx" 必须与 Key Vault Id 中包含的 SubscriptionId "yyyy" 匹配。", “目标”:“sourceVault.id”}}

我的 VMSS 在订阅 xxxx 下,并且启用了托管标识,并且资源 ID 已添加到不同订阅中的 Key Vault 的访问策略中。有可能实现这一目标吗?如果我可以添加更多详细信息,请告诉我。

【问题讨论】:

标签: azure-resource-manager azure-keyvault arm-template azure-vm-scale-set


【解决方案1】:

不,不是根据我找到的另一个问题和答案。 https://stackoverflow.com/a/39778536/2778027

回复似乎来自 Microsoft Azure 的某人。

【讨论】:

    猜你喜欢
    • 2020-09-27
    • 1970-01-01
    • 1970-01-01
    • 2012-06-06
    • 2018-11-24
    • 1970-01-01
    • 2017-05-26
    • 2023-03-27
    • 1970-01-01
    相关资源
    最近更新 更多