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.
5,073 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,516 Reputation points
    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

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