Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection String to an Azure Cloud Storage Account

How do I make a connection string to a cloud storage account so I can access tables, blobs, and queues? Sample code appreciated.

like image 517
user281674 Avatar asked Feb 26 '10 00:02

user281674


People also ask

How do I connect to Azure cloud storage?

Open your storage account page and select Settings > Access keys. In the Select Resource panel of the Connect to Azure Storage dialog, select Storage account. Select Account name and key and select Next. Enter a display name for your connection, the name of the account, and one of the account keys.

How do I use Azure connection string?

Connection String within Azure Management PortalOpen the Azure Management Portal via https://portal.azure.com. Navigate to the Azure App Service Web App within the portal. Under Settings open up the Configuration option. The Connection strings section can be used to manage the settings for the application.

How do I get the connection string for Azure storage account using PowerShell?

To get a connection string with PowerShell, first get a StorageAccountContext object, then retrieve the ConnectionString property. To get a connection string with Azure CLI, call the az storage account show-connection-string command.


1 Answers

Notating this because it's a top Google hit and the information is no longer current.

You can configure CloudStorageAccount via a connection string passed to FromConfigurationSetting().

You build a configuration string per below: https://docs.microsoft.com/en-gb/azure/storage/common/storage-configure-connection-string

There's also a helper in the IDE if you right click on the Role.

like image 154
chadwackerman Avatar answered Oct 15 '22 05:10

chadwackerman