> For the complete documentation index, see [llms.txt](https://docs.duplocloud.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.duplocloud.com/docs/automation-platform/overview-2/azure-services/web-applications/functions.md).

# Function Apps

Azure Function Apps allow you to run serverless, event-driven code that automatically scales with demand. You can deploy Function Apps from the DuploCloud Portal using either built-in runtimes or Docker images.

## Creating a Function App Resource

1. In the DuploCloud Portal, navigate to **Cloud Services** → **Serverless**.
2. Select the **Function Apps** tab.
3. Click **Add**. The **Add Function App** pane displays.<br>

   <figure><img src="/files/E47v7ZNTOU0zx7fvP0Z6" alt=""><figcaption></figcaption></figure>
4. Complete the fields:

<table data-header-hidden><thead><tr><th width="207.7777099609375"></th><th></th></tr></thead><tbody><tr><td><strong>Name</strong></td><td>Enter a unique name for the Function App.</td></tr><tr><td><strong>Deploy from Package</strong></td><td>Select <strong>Yes</strong> to upload a deployment package (ZIP file) containing your function code. Select <strong>No</strong> to configure the app without a pre-built package.</td></tr><tr><td><strong>Storage Account</strong></td><td>Select an existing storage account. This is required for the Function App to manage state.</td></tr><tr><td><strong>Runtime Stack</strong></td><td>Choose the function runtime environment (e.g., <strong>Node.js</strong>, <strong>Python</strong>, <strong>.NET</strong>).</td></tr><tr><td><strong>Version</strong></td><td>Select the runtime version (e.g., <strong>3.1</strong>).</td></tr><tr><td><strong>Plan Type</strong></td><td>Choose the hosting plan (e.g., <strong>Consumption (Serverless</strong>), <strong>Premium</strong>, or <strong>App Service Plan</strong>).</td></tr><tr><td><strong>App Settings</strong></td><td>(Optional) Define key-value pairs for environment variables used by the function.</td></tr><tr><td><strong>Connection Strings</strong></td><td>(Optional) Specify database or service connection strings the function will use.</td></tr></tbody></table>

5. Click **Create**. The Function App URL is published in the DuploCloud portal. You can view the function app by opening the URL in the browser.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.duplocloud.com/docs/automation-platform/overview-2/azure-services/web-applications/functions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
