Azure function as common service for multiple projects

asked 2022-06-21T04:04:43.647+00:00
SidK 21 Reputation points

whenever an image is uploaded to Blob storage, it will trigger azure function. This Azure function will create thumbnail of the image & place it in another folder of storage. Now I want this Azure function to be used as common service in multiple projects in which connection strings(of storage) of multiple projects should be handled wisely,

How to achieve that.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,575 questions
No comments
{count} votes

Accepted answer
  1. answered 2022-06-21T06:00:52.837+00:00
    MughundhanRaveendran-MSFT 11,606 Reputation points Microsoft Employee

    Hi @KumawatSumeet-4295 ,

    Thanks for reaching out to Q&A forum.

    You can either create multiple function apps or have one dedicated function app and create multiple blob triggered functions inside the same function app. Whenever we create a new blob triggered function, the storage account connection needs to be specified, lets's say you create a new connection with the name "storage-connection-1", and this connection name gets added to the app setting under the configuration section. So for every blob triggered function you will have separate connection names that contain the connection string of the storage account. So the connections are handled by the function app itself, you can further secure it by adding keyvault references to these connection settings.

    https://learn.microsoft.com/en-us/azure/app-service/app-service-key-vault-references?tabs=azure-cli

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful