【问题标题】:Where is Azure storage account connection string in Azure portal?Azure 门户中的 Azure 存储帐户连接字符串在哪里?
【发布时间】:2021-12-17 05:17:46
【问题描述】:

我尝试使用以下代码将 XML 文件上传到 Azure FTP 服务器:

https://www.c-sharpcorner.com/article/upload-and-download-files-from-blob-storage-using-c-sharp/

我很难找到 storageAccount_connectionString?我可以访问 Azure 门户中的服务器,但找不到此连接字符串。

//Copy the storage account connection string from Azure portal     
storageAccount_connectionString = "your Azure storage account connection string here"; 

【问题讨论】:

  • 它应该在访问密钥刀片下。

标签: azure azure-storage


【解决方案1】:

Gaurav Mantri (StorageAccount>>AccessKeys>>ShowKeys) 所述,连接字符串可从 Storage Account Access Keys Blade 中找到。

如果您使用的是Primary Access Key,那么您可以使用Box 1 中的连接字符串,如果您使用的是Secondary Access Key,那么您可以使用Box 2 中的连接字符串。

您可以参考以下 Microsoft 文档了解更多信息:

View and Manage Keys

Configure Connection Strings

【讨论】:

  • 仅供参考,这应该是文档的链接,作为评论。不需要答案,因为这纯粹是一个基于文档的问题。此外,在过去的几年里,这个问题已经在其他问题/答案对中被提出(并得到了回答)。
猜你喜欢
  • 2018-12-20
  • 1970-01-01
  • 2015-12-02
  • 1970-01-01
  • 2017-05-09
  • 2020-04-12
  • 2021-05-31
  • 2017-02-22
  • 2018-08-25
相关资源
最近更新 更多