I have been trying to assign a user assigned managed identity or system assigned managed identity, to my Azure function.
However whenever I try and and assign a managed identity, nothing happens. It keeps telling me "Added 1 identity to function" with a green checkmark, both with system assigned and user assigned, but then it reverts back immediately.
I have tried recreating my function (with the same name and a different name) and waiting 1 and 2 days between assigning an identity, with no effect.
I have made a video showing the error https://youtu.be/W9UsYXcsnmg
The weird part about it, is I am able to assign identities to all my other functions, which use the same region, consumption plan and resource group.
I have also made sure it is not a privilege problem, as my Azure administrator has the same issue, but only for this "function".
Has anybody encountered this before or do you have any possible solutions. Right now the function can not connect to our database.
@Thomas, helped me answer my question, so if anyone ever run into the same problem as me, here is what I did.