filipw / Strathweb.AspNetCore.AzureBlobFileProvider

MIT License
55 stars 22 forks source link

What should the connection string look like? #16

Closed MikeAlhayek closed 5 years ago

MikeAlhayek commented 5 years ago

This is the first time I use Azure service. Can you please show how the connection string should look like?

Even better, how can one get that info from the Azure portal?

When I enable BlobStorage in Azure I got a JSON format template not sure how to use that to connect using this package

MikeAlhayek commented 5 years ago

I figured it out finally.

After logging into Azure portal do the following

  1. From the left menu click on "All resources"
  2. Click on the "Resource name" from the list or create a new resource.
  3. On the menu to the left click on "Access keys"

That will list the Storage account name along with the Connection string.

Here is an example of the connection string

DefaultEndpointsProtocol=https;AccountName=[STORAGE-ACCOUNT-NAME];AccountKey=[STORAGE-KEY];EndpointSuffix=core.windows.net