title: Azure QueueTriggered Function app dotnet-isolated input binding from keyvault
body: <p>I am trying to connect my function app to keyvault and get queue name and connection secrets. This was working well with .netcore3.1 app using the ConfigureAppConfiguration(IFunctionsConfigurationBuilder builder) method in FunctionStartup.</p>
  <p>After upgrading to .net5 dotnet-isolated, the bindings does not work. I configured azurekeyvault in Program.cs but still it does not pick from keyvault.</p>
  <p><strong>QueueFunction</strong></p>
  <pre><code> public static void Run([QueueTrigger(&quot;%QueueName%&quot;, Connection = &quot;QueueConnection&quot;)] string message, string id)
      
  </code></pre>
  <p><strong>Startup.cs (.netcore3.1)- working</strong></p>
  <pre><code>  public override void ConfigureAppConfiguration(IFunctionsConfigurationBuilder builder)
      {
          var azureKeyVaultURL = Environment.GetEnvironmentVariable(&quot;AzureKeyVaultURL&quot;);
          var azureKeyVaultADAppID = Environment.GetEnvironmentVariable(&quot;AzureKeyVaultMIAppID&quot;);
  
  
          builder.ConfigurationBuilder
                      .SetBasePath(Environment.CurrentDirectory)
                      .AddAzureKeyVault(new Uri(azureKeyVaultURL), new ManagedIdentityCredential(azureKeyVaultADAppID))
                      .AddEnvironmentVariables()
                  .Build();
      }
  </code></pre>
  <p><strong>Program.cs (.net5)- Not working</strong></p>
  <pre><code>var host = new HostBuilder()
              .ConfigureFunctionsWorkerDefaults()
              .ConfigureAppConfiguration(config =&gt;{
                   var azureKeyVaultURL = Environment.GetEnvironmentVariable(&quot;AzureKeyVaultURL&quot;);
                  var azureKeyVaultADAppID = Environment.GetEnvironmentVariable(&quot;AzureKeyVaultMIAppID&quot;);
  
                  config
                     .SetBasePath(Environment.CurrentDirectory)
                     .AddAzureKeyVault(new Uri(azureKeyVaultURL), new ManagedIdentityCredential(azureKeyVaultADAppID))
                     .AddEnvironmentVariables()
                  .Build();
              })
  </code></pre>