> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Azure Functions in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/microsoft-azure-functions
Last updated: 2026-11-24

Share Azure Functions with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 10 tools (5 read-only).

---

To give your team Azure Functions in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Azure Functions integration in a Metorial portal, and each person signs in to Azure Functions with their own account. Agents can manage and invoke Azure Functions serverless compute resources. The integration has 10 tools, 5 read-only, 4 write and 1 destructive, plus 2 triggers.

**What you will learn**

- How an admin shares Azure Functions in a portal and how each person connects
- The 2 OAuth scopes Azure Functions can request, and what each one allows
- How to keep the 5 read-only tools and reject the other 5

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Azure Functions for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Work Only** (default) | OAuth | Signs in to Azure Functions |
| **Work & Personal** | OAuth | Signs in to Azure Functions |

The portal and `metorial setup` use **Work Only** unless someone picks another method.

### Work Only

People sign in to Azure Functions and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `https://management.azure.com/.default` | Azure Management | Full access to manage Azure resources via the Azure Resource Manager API |
| `offline_access` | Offline Access | Maintain access with a refresh token |

### Work & Personal

It requests the same scopes as **Work Only**.

### Setup settings

Whichever method you pick, setup also asks for:

- `subscriptionId`: Azure subscription ID (GUID format, e.g. 00000000-0000-0000-0000-000000000000)
- `resourceGroupName`: Name of the resource group containing your function apps

## Use your own Azure Functions OAuth app

With your own OAuth app, people see your company's name on the Azure Functions consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Azure Functions and copy the **Redirect URI**.

2. **Register the app**

   In the Microsoft Entra admin center, go to **Entra ID**, **App registrations** and select **New registration**. Under **Authentication**, add a redirect URI on the **Web** platform and paste the one from Metorial. Create a client secret under **Certificates & secrets** and copy its **Value**, which Microsoft shows only once.

   The [Microsoft 365 guide](https://metorial.com/docs/platform/integrations/microsoft-365) covers the app registration, client secret and admin consent in Microsoft Entra step by step.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Azure Functions integration.

## Admin: share Azure Functions in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Azure Functions. Under **Auth Method**, keep **Work Only** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Azure Functions as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Azure Functions.

4. **Choose who gets it**

   Add the access groups that should see Azure Functions. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Azure Functions integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "azure functions"
```

## Employee: connect Azure Functions

### In the portal

1. **Open Azure Functions in the catalog**

   Sign in to your portal and open Azure Functions. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. An Azure Functions sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "azure functions"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Work Only**. To connect with **Work & Personal** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Azure Functions connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "azure functions"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 5 read-only tools, such as `get_function` and `list_functions`, and lose the 4 write tools, such as `manage_keys` or `manage_slots`, and the destructive tool `manage_function_app`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "azure functions"
metorial tools <integration-id>
metorial call <integration-id> list_function_apps -d '{}'
```

`metorial tools` lists the 10 tools, minus any you rejected. `list_function_apps` takes no input. It lists all Azure Function Apps in the configured resource group.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (5)

- `get_function_app`: Get detailed information about a specific Azure Function App, including its configuration, state, hosting details, and site settings. Needs `appName`.
- `list_deployments`: List deployment history for an Azure Function App. Needs `appName`.
- `list_functions`: List all individual functions within a specific Azure Function App. Needs `appName`.
- `list_function_apps`: List all Azure Function Apps in the configured resource group.
- `get_function`: Get detailed information about a specific function within a function app, including its invocation URL, language, configuration, and associated files. Needs `appName` and `functionName`.

### Write tools (4)

- `manage_app_settings`: List or update application settings (environment variables) for an Azure Function App. Needs `appName` and `action`.
- `manage_slots`: Manage deployment slots for an Azure Function App. Needs `appName` and `action`.
- `invoke_function`: Invoke an HTTP-triggered Azure Function directly. Needs `appName` and `functionName`.
- `manage_keys`: Manage function-level and host-level access keys for Azure Function Apps. Needs `appName`, `scope` and `action`.

### Destructive tools (1)

- `manage_function_app`: Perform lifecycle operations on an Azure Function App. Needs `appName` and `action`.

## Triggers

Azure Functions has 2 triggers, which fire on events in Azure Functions:

- `function_app_changes`: Detects changes to function apps and their functions by polling.
- `inbound_webhook`

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Azure Functions there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Microsoft 365 guide](https://metorial.com/docs/platform/integrations/microsoft-365): the app registration, client secret and admin consent in Microsoft Entra
- [Azure Functions on metorial.com](https://metorial.com/integrations/microsoft-azure-functions): the integration overview