I am trying to recreate this walkthrough
as an Azure Function, and it seems there is some incompatibility between the Azure Function SDK and Microsoft.IdentityModel.Clients.ActiveDirectory. If you try to create a new ArmClientCredentials
like so
ArmClientCredentials credentials = new ArmClientCredentials(config);
You get an error like so
Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=3.19.4.11002
The particular nuget package is added to the project. Is this something that requires an additional step not shown here?
I was able to solve this problem by rolling down the version of the package to 3.14. here is the repo of the solution (using csproj)