I'm trying to update my Azure function project to use a newer version of Azure.Identity than 1.7. I'm using the .net6 and v4 functions. I've tried with 1.8, 1.9, and 1.10 versions of Azure. Identity but I get the error below. Version 1.7 works fine but it has vulnerabilities so I need to update it.
Azure.Identity.CredentialUnavailableException when updating Azure.Identity from version 1.7
99 Views Asked by Heden Den Qvisten At
2

You can use
Azure.Identitywith version1.10in .NET 6.0.To resolve your issue, try sign out and sign in to your account in visual studio.
Go to
Tools => Options =>Azure Service Authentication => Account Selectionsign in to your account.Azure.Identitypackage version1.10in my Http triggered Azure function and it worked as expected.Function.cs:
.csproj:
Output: