首页 > 解决方案 > Azure 门户中的 Azure 存储帐户连接字符串在哪里?

问题描述

我尝试使用以下代码将 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"; 

标签: azureazure-storage

解决方案


正如Gaurav Mantri所说,连接字符串是从 Storage Account Access Keys Blade 中找到 (StorageAccount>>AccessKeys>>ShowKeys)

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

在此处输入图像描述

您可以参考以下 Microsoft 文档以获取更多信息:

查看和管理密钥

配置连接字符串


推荐阅读