public async Task Default(IAzureOptionsCommon options) { options.UseMsi = await UseMsi.GetValue() == true; options.AzureEnvironment = await Environment.GetValue(); if (!options.UseMsi) { // These options are only necessary for client id/secret authentication. options.TenantId = await TenantId.GetValue(); options.ClientId = await ClientId.GetValue(); options.Secret = await ClientSecret.GetValue(); } }