After having done the Packaging .NET sources of Azure Serveless, you have to build the sources the following way:
dotnet build /p:Configuration=Release <deployment.sln> --output <output_dir> -p:CosmosDBSupport=false -p:TimerSupport=false -p:AzureQueueSupport=false -p:ServiceBusSupport=false -p:HttpSupport=true -p:BlobSupport=false -p:EventGridSupport=false
The <deployment.sln> is inside the zip package, under src\build folder.
In the following example, the Deployment Unit object is called "DpuWithoutGAM".
This feature is available since GeneXus 18 Upgrade 5