A sample .NET Core console app that shows how to pass the Azure Partner Id (PID) value using the Azure Management Libraries for .NET's Fluent APIs (https://github.com/Azure/azure-libraries-for-net).
The Partner Id use in Customer Usage Attribution is described in detail on the following Azure documentation page: https://docs.microsoft.com/en-us/azure/marketplace/azure-partner-customer-usage-attribution