Got following exception (on GetSecretAsync call):
'TS003: Error, TS001: This account 'XXXXXXX' needs re-authentication. Please go to Tools->Azure Services Authentication, and re-authenticate the account you want to use.
when using standard Azure auth code from How to use managed identities...
var azureServiceTokenProvider = new AzureServiceTokenProvider();
var kv = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(
azureServiceTokenProvider.KeyVaultTokenCallback));
var secret = await
kv.GetSecretAsync("https://myvault.vault.azure.net/secrets/mysecret");
Could not find "Tools->Azure Services Authentication" anywhere in VS 2019...
There are some similar questions but none tells if that tool is anywhere in VS 2019.