Azure Blob Storage
Application Type
Traditional Web
Service Studio Version
11.10.22 (Build 42084)

Hello,

I am trying to connect to an azure blob storage. 

I downloaded the "AzureBlobStorage module on forge" and added it to the web app. 

How do I edit the connection string so that I can actually connect to the azure blob?

Platform: OutSystems Cloud

Blob.jpg

Solution

Hello @Siavash Noorizadeh,

A storage account may have several containers and as per the examples for connection strings provided here -- https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string, the recommended connection string only has the storage account name in it.

It is possible in your case that the storage account name and the container name is the same as you may only have one container at this time.

By the way you may access your connection string under your storage account's menu options in Azure portal Access keys.

So, yes you do have to provide the container name separately to the DownloadBlob widget. Hope this helps,

Regards,

AJ

Hi Siavash,

On the AzureBlobStorage component, you can specify the Connection String as an input parameter for each action individually:

If you want to use the same connection string everywhere, you could define a Site Property of type Text, and reuse it for all the Server Actions involving Azure Blob Storage. This way, you can modify it at runtime directly from Service Center.

Let me know if that works for you.

Do you have an example of an Azure Blob connection string for outsystems to recognize ?

According to microsoft docs we put the "Container" name in the connection string but here in outsystems I have to put the container name in a separate window.

Solution

Hello @Siavash Noorizadeh,

A storage account may have several containers and as per the examples for connection strings provided here -- https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string, the recommended connection string only has the storage account name in it.

It is possible in your case that the storage account name and the container name is the same as you may only have one container at this time.

By the way you may access your connection string under your storage account's menu options in Azure portal Access keys.

So, yes you do have to provide the container name separately to the DownloadBlob widget. Hope this helps,

Regards,

AJ

Hi Siavash,

Like AJ is mentioning, the Connection String can have several parameters, but to use the Forge component's actions you will typically just need the Account Name and Key, but if you use the full version the Extension should also work as expected:

DefaultEndpointsProtocol=https;AccountName=<Account Name>;AccountKey=<Account Key in Base64 Format>;BlobEndpoint=<Blob EndpointURL>;QueueEndpoint=<Queue Endpoint URL>;TableEndpoint=<Table Endpoint URL>;FileEndpoint=<File Endpoint URL>;

The container's name isn't included in the Conenction String, therefore you have to use the container's name separately in the extension's actions:

If by example you mean a sample Connection String that you can use for tests, unfortunately you will have to set up an account for yourself, but you can follow the instructions here https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.