Share via

Function App Using Wrong Slot Managed Identity

Rafe Kemmis 20 Reputation points
2024-01-31T16:28:20.5333333+00:00

We have a function app in our dev environment that isn't able to connect to our sql database using managed identity. I used the msi-validator.exe utility from within kudu of the function app production slot to test connectivity with the database and it failed with "Unable to connect to SQL. Exception : Login failed for user '

Azure Functions
Azure Functions

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


2 answers

Sort by: Most helpful
  1. Mike Urnun 9,792 Reputation points Moderator
    2024-02-08T07:16:08+00:00

    Hi @Rafe Kemmis - Were you expecting the app deployed to the dev slot to access the same SQL DB that the production slot already has access to? or apps in both dev and prod slots aren't able to access the DB with either of its managed identities? Deployment slots are separate, live apps with their own hostnames so System Assigned identity would be unique to each slot.

    Was this answer helpful?


  2. Punam 75 Reputation points Microsoft Employee
    2024-02-08T05:21:05.72+00:00

    @Rafe Kemmis can you please switch off and on again the managed identity and see if the behaviour is persistent ?

    Was this answer helpful?

    0 comments No comments

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.