title: .NET Core - Able to connect to Azure App Config but can't return any config values?
body: <p>I have a .NET Core Azure Function app where I am connecting to an Azure App Config service and registering a Key Vault connection:</p>
  <pre><code>using Azure.Identity;
  using Microsoft.Azure.Functions.Extensions.DependencyInjection;
  using Microsoft.Extensions.Configuration;
  using System;
  
  [assembly: FunctionsStartup(typeof(Func.Accounts.Api.Startup))]
  
  namespace Func.Accounts.Api
  {
      public class Startup : FunctionsStartup
      {
          public override void ConfigureAppConfiguration(IFunctionsConfigurationBuilder builder)
          {
              string connectionString = Environment.GetEnvironmentVariable(&quot;AppConfigConnectionString&quot;);
  
              builder.ConfigurationBuilder.AddAzureAppConfiguration(options =&gt;
              {
                  options.Connect(connectionString)
                      .ConfigureKeyVault(kv =&gt;
                      {
                          kv.SetCredential(new DefaultAzureCredential());
                      });
              });
          }
  
          public override void Configure(IFunctionsHostBuilder builder)
          {
          }
      }
  }
  </code></pre>
  <p>I can connect to the service fine, and I can see through the Azure portal that it is receiving requests however I cannot get it to actually return any config values. This is what the config looks like after its been injected into the function:</p>
  <p><a href="https://i.stack.imgur.com/TduHz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TduHz.png" alt="enter image description here" /></a></p>
  <p>I know there are 3 config values in the App Config Service but it does not return any data and I cannot see where it is failing. As far as I can tell there isn't an authentication issue and I have achieved this successfully in a different project using the same method.</p>
  <p>Interestingly, if I try to retrieve the key through the <code>Azure App Configuration client library</code> I get the following <code>404</code> error on the <code>GetConfigurationSetting</code> method. I'm struggling to understand how it doesn't see any of my config settings.</p>
  <p><a href="https://i.stack.imgur.com/ir1Rz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ir1Rz.png" alt="enter image description here" /></a></p>