# Configuring Automatic API Updates

{% hint style="warning" %}
If you choose to sponsor and use the CyberDrain hosted version, you can skip over these steps and jump over to our [Sponsor Quick Start](/setup/resources/sponsor-quick-start.md) guide for further direction.
{% endhint %}

### Connect to GitHub for Continuous Deployment

If you want your Function App to auto-update whenever you commit to your **CIPP-API** fork, follow these steps:

{% stepper %}
{% step %}
Still in the **Function App** settings, go to **Deployment Center** (sometimes under **Deployment → Deployment Center**).
{% endstep %}

{% step %}
If an existing CI/CD connection is configured, **Disconnect** it to avoid conflicts.
{% endstep %}

{% step %}
Under **Source**, select **GitHub**, then log in if prompted.
{% endstep %}

{% step %}
**Choose** your Organization, Repository, and Branch (where your CIPP-API code lives).
{% endstep %}

{% step %}
Leave **“Workflow Option”** set to **“Add a workflow”** (the default).
{% endstep %}

{% step %}
For **Authentication Type**, pick **“Basic Authentication.”** (Azure portal doesn’t support Identity-based auth yet.)
{% endstep %}

{% step %}
Click **Add a workflow**, then **Save.**
{% endstep %}

{% step %}
Repeat this for any additional function apps you may have deployed for [Function Offloading](/user-documentation/cipp/advanced/super-admin/function-offloading.md).
{% endstep %}
{% endstepper %}

Your Function App will now be automatically updated pull directly from your GitHub fork whenever you pull the latest version of the CIPP-API repository.


---

# Agent Instructions: 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:

```
GET https://docs.cipp.app/setup/maintaining-cipp/runfrompackage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
