<p>I have deployed Azure Durable Http Triggered Function app in Azure Kubernetes Service. I used Visual Studio Code to create the function app. I have followed instructions from this this <a href="https://dev.to/anirudhgarg_99/scale-up-and-down-a-http-triggered-function-app-in-kubernetes-using-keda-4m42" rel="nofollow noreferrer">article</a> and <a href="https://learn.microsoft.com/en-us/azure/azure-functions/functions-kubernetes-keda#deploying-a-function-app-to-kubernetes" rel="nofollow noreferrer">Microsoft official documentation</a>.</p>
<pre><code>Function runtime: 3.0.2630
Python version: 3.7.7
azure-functions: 1.3.1
azure-functions-durable: 1.0.0b9
</code></pre>
<p>Here is my HttStart <code>function.json</code> file looks like,</p>
<pre><code>{
  &quot;scriptFile&quot;: &quot;__init__.py&quot;,
  &quot;bindings&quot;: [
    {
      &quot;authLevel&quot;: &quot;anonymous&quot;,
      &quot;name&quot;: &quot;req&quot;,
      &quot;type&quot;: &quot;httpTrigger&quot;,
      &quot;direction&quot;: &quot;in&quot;,
      &quot;route&quot;: &quot;orchestrators/{functionName}&quot;,
      &quot;methods&quot;: [
        &quot;post&quot;,
        &quot;get&quot;
      ]
    },
    {
      &quot;name&quot;: &quot;$return&quot;,
      &quot;type&quot;: &quot;http&quot;,
      &quot;direction&quot;: &quot;out&quot;
    },
    {
      &quot;name&quot;: &quot;starter&quot;,
      &quot;type&quot;: &quot;orchestrationClient&quot;,
      &quot;direction&quot;: &quot;in&quot;
    }
  ]
}
</code></pre>
<p>Docker file:</p>
<pre><code>FROM mcr.microsoft.com/azure-functions/python:3.0-python3.7

ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
    AzureFunctionsJobHost__Logging__Console__IsEnabled=true

COPY requirements.txt /
RUN pip install -r /requirements.txt

COPY . /home/site/wwwroot
</code></pre>
<p>This application works perfectly in my local environment. After deploying to AKS cluster, when I call URL, it throws the following expection</p>
<pre><code>fail: Function.HelloWorldHttpStart[3]
      Executed 'Functions.HelloWorldHttpStart' (Failed, Id=e7dd35a1-2001-4f11-396f-d251cbd87a0d, Duration=82ms)
Microsoft.Azure.WebJobs.Host.FunctionInvocationException: Exception while executing function: Functions.HelloWorldHttpStart
 ---&gt; System.InvalidOperationException: Webhooks are not configured
   at Microsoft.Azure.WebJobs.Extensions.DurableTask.HttpApiHandler.ThrowIfWebhooksNotConfigured() in d:\a\r1\a\azure-functions-durable-extension\src\WebJobs.Extensions.DurableTask\HttpApiHandler.cs:line 737
</code></pre>
<p>Is there any configuration I missed out? Any suggestions would be appreciated.</p>
<p>Thank you.</p>

Shariful Nibir
<p>Try adding a <code>WEBSITE_HOSTNAME</code> environment variable with <code>&lt;ip-address&gt;:&lt;port&gt;</code> as the value, where <code>&lt;ip-address&gt;:&lt;port&gt;</code> refers to the address that can be used to reach your function app from outside.</p>
<p>This error happens when you use an API that depends on this environment variable. When running using the local core tools, this value is set to <code>localhost:7071</code> automatically. When running in the Azure Functions hosted service, this environment variable is also pre-configured to be the DNS name of the function app (e.g. <code>myfunctionapp.azurewebsites.net</code>. For other environments, like AKS, you'll need to add this environment variable explicitly and set it to the correct value for your deployment.</p>
