I am trying to use Azure Managed Service Identity with Azure functions and KeyVault. I want to be able to get secrets from the vault and also use ADAL to authenticate with a certificate to get access to SharePoint Online. I'm developing locally with Visual Studio 2017.
I want to use 3.19.8 of Microsoft.IdentityModel.Clients.ActiveDirectory and the nuget package for Microsoft.Azure.Services.AppAuthentication states a dependency of Microsoft.IdentityModel.Clients.ActiveDirectory (>= 3.14.2). However, it seems to be hard linked to 3.14.2. I get an exception 'Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=3.14.2.11' if I try to access the vault.
If I try to use 3.14.2 then I get exceptions with authenticating with the cert saying method isn't found.
So I am wondering if the description in Nuget is incorrect or if it is possible to use a later version of Microsoft.IdentityModel.Clients.ActiveDirectory in an Azure Function which doesn't seem to allow Redirection of assembly versions.
Thanks