# C# Azure Functions

## 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](https://revdebug.gitbook.io/revdebug/supported-langauges/c/..#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](https://revdebug.gitbook.io/revdebug/supported-langauges/c/..#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&#x26;token=3f7d3bbc-7376-4b6b-ad90-d56350c4d610" alt="Azure Portal > Azure Function > Settings > Configuration"></div>

&#x20;
