【问题标题】:What fields am I supposed to populate in test_configurations.json?我应该在 test_configurations.json 中填充哪些字段?
【发布时间】:2021-07-02 13:53:21
【问题描述】:

总的来说,我对 Azure 和云服务非常陌生。我正在尝试在我的应用程序中使用 azure storage sdk (https://github.com/Azure/azure-storage-cpp) 并尝试习惯它。我正在尝试运行测试以确保我正确构建了库。

查看自述文件,它说要填写test_configurations.json 文件,但我不知道应该填写什么或如何获取实际应该在其中的信息。我注册了免费的 Azure 帐户并创建了一个存储帐户,但在控制台的任何地方都看不到 client_id、tenant_id 或客户端密码。这是配置文件:

{
  "target": "production",
  "premium_target": "premium_account",
  "blob_storage_target": "blob_storage_account",
  "tenants": [
    {
      "name": "devstore",
      "type": "devstore",
      "connection_string": "UseDevelopmentStorage=true"
    },
    {
      "name": "production",
      "type": "cloud",
      "connection_string": "DefaultEndpointsProtocol=https;"
    },
    {
      "name": "premium_account",
      "type": "cloud",
      "connection_string": "DefaultEndpointsProtocol=https;"
    },
    {
      "name": "blob_storage_account",
      "type": "cloud",
      "connection_string": "DefaultEndpointsProtocol=https;"
    }
  ],
  "token_information": {
    "account_name": "",
    "tenant_id": "",
    "client_id": "",
    "client_secret": "",
    "resource": "https://storage.azure.com"
  }
}

如何获取我需要的 id 和 secret?

【问题讨论】:

    标签: azure azure-storage azure-blob-storage


    【解决方案1】:

    您需要将应用程序注册为存储客户端,然后您才能获取这些详细信息 如上所述here

    使用 Azure AD 授权访问存储的第一步 资源正在向 Azure AD 注册您的客户端应用程序

    【讨论】:

      猜你喜欢
      • 2015-12-06
      • 2012-10-12
      • 2011-12-19
      • 2012-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-07
      • 1970-01-01
      相关资源
      最近更新 更多