How do I make a connection string to a cloud storage account so I can access tables, blobs, and queues? Sample code appreciated.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With