Skip to content

matjazbravc/Storage-SasTokenGenerator-AzureFunction-Demo

Repository files navigation

Storage SAS token generator Azure Function Demo

A shared access signature (SAS) provides you with a way to grant limited access to objects in your storage account to other clients, without exposing your account key. Read more.

This application demonstrate following functionalities:

Prerequisites

To create and deploy functions, you also need:

Let's get started!

First, you have to enter your Azure storage account connection string into local.settings.json:

{
  "IsEncrypted": false,
  "Values": {
    "Logging.Storage.TableName": "LogAzureFunctions",
    "StorageAccount.ConnectionString": "UseDevelopmentStorage=true"
  }
}

P.S. More about how to test Azure functions locally you can read here.

Second, if you use development storage you have to setup Azure Storage Emulator. See Use the Azure storage emulator for development and testing and Configuring and Using the Storage Emulator with Visual Studio.

Third, build solution and run it with local Azure Functions runtime:

Finally test it with Postman:

Enjoy!

Licence

Licenced under MIT. Contact me on LinkedIn.

About

A shared access signature (SAS) provides you with a way to grant limited access to objects in your storage account to other clients, without exposing your account key.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages