> For the complete documentation index, see [llms.txt](https://revdebug.gitbook.io/revdebug/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://revdebug.gitbook.io/revdebug/supported-langauges/c/c-azure-functions.md).

# C# Azure Functions

How to enable error reporting and monitoring for Azure Functions (serverless)

## Adding RevDeBug NuGet packages

First, add a RevDeBug NuGet repository:

* <https://nexus.revdebug.com/repository/nuget/>

Please refer to detailed instructions on the main [C# manual page](/revdebug/supported-langauges/c.md#adding-revdebug-dependency).

For Azure Function project install two NuGet packages:

* RevDeBug.Net.Compilers.Toolset
* RevDeBugAPM.Agent.AzureFunction

Configure the RevDeBug build time connection as described on the main [C# manual page](/revdebug/supported-langauges/c.md#configure-the-connection-to-revdebug-monitor).

## Setting the RevDeBug recording server address and service name

Using the Azure Portal set two environment variables (application settings) for Azure Functions:

* `SKYWALKING__SERVICENAME` - set to your Function Name
* `SKYWALKING__TRANSPORT__GRPC__SERVERS` - set to address of RevDeBug server instance with 11800 port number appended at the end, eg. `revdebug.server.name:11800`

<div align="center"><img src="https://1776828725-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MTk4m0D_HMejz7b-sEi%2F-MZRZmSU9zE1b4zg-OI5%2F-MZRkdTi3vuPvd4PAgY-%2Fimage.png?alt=media&amp;token=3f7d3bbc-7376-4b6b-ad90-d56350c4d610" alt="Azure Portal > Azure Function > Settings > Configuration"></div>

&#x20;
