Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

588
Views
Azure Function Timeout after 30 minutes

I have set up an Azure Function v3. Configured with Standard plan per this document: https://docs.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout. Also, set up functionTimeout to Unlimited

Is Standard (S1:1) plan the right one? Do I need to change it to P1V12 in order to be able to set it to 'unlimited' timeout?

enter image description here enter image description here host.json:

enter image description here

Keeps crashing after 30 minutes: enter image description here

It's as if host.json is not being considered? or is the plan not correct? Please help.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I was able to get this to work is to add an attribute:

[Timeout("05:00:00")]
[FunctionName("MyFunction")] 

Seems host.json file is being ignored

EDIT - Fix with HOST.JSON file

Found this thread: https://github.com/Azure/azure-functions-servicebus-extension/issues/81

Solution: https://github.com/Azure/azure-functions-servicebus-extension/issues/34#issuecomment-596781972

public override void Configure(IFunctionsHostBuilder builder)
        {
            var tempServices = builder.Services.BuildServiceProvider();
            var azureFuncConfig = tempServices.GetService<IConfiguration>();
            var configBuilder = new ConfigurationBuilder()
                .AddConfiguration(azureFuncConfig)
                .SetBasePath(Environment.CurrentDirectory)
                .AddJsonFile("local.settings.json", optional: true, reloadOnChange: true)
                .AddEnvironmentVariables();

            var configReader = configBuilder.Build();
            var config = configBuilder.AddAzureKeyVault(new AzureKeyVaultConfigurationOptions()
            {
                Client = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback(new AzureServiceTokenProvider().KeyVaultTokenCallback)),
                Vault = configReader["keyvaulturl"],
                Manager = new DefaultKeyVaultSecretManager()),
            }).Build();

            builder.Services.AddSingleton<IConfiguration>(config);
        }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!