解決方案:https://github.com/Azure/azure-functions-servicebus-extension/issues/81#issuecomment-1139175220
public class Startup : FunctionsStartup { public override void Configure(IFunctionsHostBuilder builder) { var tempServices = builder.Services.BuildServiceProvider(); var azureFuncConfig = tempServices.GetService<IConfiguration>(); var config = new ConfigurationBuilder() .AddConfiguration(azureFuncConfig) // if you commented this line hots.json settings will be overridden to defaults .AddEnvironmentVariables() .Build(); builder.Services.AddSingleton<IConfiguration>(config); } }
相關帖子: c# - Azure Function Timeout after 30 minutes - Stack Overflow