代码之家  ›  专栏  ›  技术社区  ›  Leonardo Herrera

Azure密钥库门户不显示机密

  •  0
  • Leonardo Herrera  · 技术社区  · 4 年前

    Azure Key Vault showing no secrets

    但是,使用命令行我可以得到它们(修订版):

    C:\Program Files\Microsoft SDKs\Azure\.NET SDK\v2.9>az keyvault secret list --vault-name <my vault>
    [
      {
        "attributes": {
          "created": "2020-03-05T14:48:37+00:00",
          "enabled": true,
          "expires": "2021-01-28T19:23:00+00:00",
          "notBefore": "2018-01-29T19:23:00+00:00",
          "recoveryLevel": "CustomizedRecoverable+Purgeable",
          "updated": "2020-03-05T14:48:37+00:00"
        },
        "contentType": "application/x-pkcs12",
        "id": "https://<my vault>.vault.azure.net/secrets/SomeSecret",
        "managed": true,
        "tags": null
      },
      {
        "attributes": {
          "created": "2020-03-06T13:10:32+00:00",
          "enabled": true,
          "expires": "2021-01-28T19:23:00+00:00",
          "notBefore": "2018-01-29T19:23:00+00:00",
          "recoveryLevel": "CustomizedRecoverable+Purgeable",
          "updated": "2020-03-06T13:10:32+00:00"
        },
        "contentType": "application/x-pkcs12",
        "id": "https://<my vault>.vault.azure.net/secrets/SomeSecret2",
        "managed": true,
        "tags": null
      }
    ]
    

    我还对我的web应用程序进行了身份验证,并且我能够获得这个秘密并使用它而不出任何问题(使用 Azure Identity Azure.KeyVault.Certificates Azure.KeyVault.Secrets ).

    为什么我的秘密没有在Azure门户中显示?

    0 回复  |  直到 4 年前
        1
  •  2
  •   Joy Wang    4 年前

    Secrets 在azure门户的keyvault中。

    不仅是你提到的SDK,还有 powershell CLI , REST API Secret Identifier Certificates

    enter image description here