/azure-blob-storage-gallery

A simple azure blob storage example in the form of a photo gallery using ASP.Net Core MVC.

Primary LanguageC#MIT LicenseMIT

Azure Blob Storage Gallery

A simple azure blob storage example in the form of a photo gallery. This app provides the ability to view any images in the storage container, upload new images and delete images.

.NET

Technologies used

  • ASP.NET Core MVC 5.0
  • .NET 5.0
  • Azure Storage.Blobs

Running this sample

  1. You must replace the connection string with the values of an active Azure Storage Account. If you don't have an account, refer to the Create a Storage Account article.

  2. Retrieve the STORAGE ACCOUNT NAME and PRIMARY ACCESS KEY (or SECONDARY ACCESS KEY) values from the Keys blade of your Storage account in the Azure Preview portal. For more information on obtaining keys for your Storage account refer to [View, copy, and regenerate storage access keys](https://azure.microsoft.com/en-us/documentation/articles/storage-create-storage-account/#view-copy-and-regenerate-storage-access-keys

  3. In the appsettings.json file, located in the project root, find the StorageAccount app setting and replace the placeholder values with the values obtained for your account.

  "StorageAccount": "DefaultEndpointsProtocol=https;AccountName=[Enter Your Storage AccountName];AccountKey=[Enter Your Storage AccountKey]"

More information