Share via

Implement Multi-Tenant Database using Azure functions

Himanshu Shrivastava 21 Reputation points
2022-11-16T11:51:33.863+00:00

Hi,

I want to implement Azure HTTP Trigger in Spring boot (Java), I'm unable to do the same as Tenant-ID is passed in header and azure function doesn't support servlet due to which it is not calling Filter API to filter Tenant-ID parameter from Header.

So, is there any other alternative way to achieve Multi-Tenancy with Server-less.

Regards

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


Answer accepted by question author

MayankBargali-MSFT 71,016 Reputation points Moderator
2022-11-22T06:22:35.91+00:00

@Himanshu Shrivastava Thanks for the confirmation. Unfortunately, it is not possible to set the attribute ConnectionStringSetting dynamically while calling/executing your function.
You need to define the ConnectionStringSetting that contains the connection string for the database to which data is being written.

The alternative would be levering the HTTP trigger and writing your own code to communicate with different Azure SQL database based on the user input.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.