Azure Function in .NET, (C#)
When Printix sends a WebHook on a New User Create event, this function will:
- Get the
userID - Authorize to Printix API
- Get user details like name and email
- Connect to Azure SQL instance and look up email to retrieve the user's Card Number
- Convert card number to Base64
- Update Printix user with the card number in Base64
- The function is written in Visual Studio 2022, the Microsoft-recommended IDE for Azure Functions in .NET
- Add Azure Development Workloads in Visual Studio 2022
- PRINTIX_CLIENT_ID
- PRINTIX_CLIENT_SECRET
- CONNECTION_STRING
These are saved as environment variables in Azure Function Configuration