Azure 存储帐户连接字符串在 Azure 门户中的位置在哪里?

Alm*_*lma 1 azure azure-storage

我尝试使用以下代码将 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"; 
Run Code Online (Sandbox Code Playgroud)

Ans*_*-MT 6

连接字符串是从存储帐户访问密钥刀片中找到的,正如Gaurav Mantri (StorageAccount>>AccessKeys>>ShowKeys)已经说过的那样。

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

在此输入图像描述

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

查看和管理密钥

配置连接字符串