I have the following code for obtaining a secret from the Azure key vault:
public static async Task GetToken(string authority, string resource,
I had the same problem and I added my IP address under KeyVault firewall.