Demo webhook as an example for SaaS Azure marketplace offering. This is sample implementation in .NET for the purpose of hackathon and integration into Azure SaaS solution on the Azure commercial marketplace. Guide on how to implement webhook is available here.
Solution is built on .NET Core 6 as Azure Functions and is structured in the following way:
- SaaSFunctions - contains code for sending email via SendGrid provider and handling webhook calls from Azure Marketplace based on documentation.
- SaasFunctionsTests - Unit tests to check the validity of requests to webhook to understand functionality and ways to test it out without Azure Commercial marketplace.
If you want to run it locally, you will need to setup local environment. Here are the instructions for different platforms and tools to work with. You will need to have .NET installed.
To deploy Azure function in production or Azure environment, you can use different deployment options, described here. If you don't have tools you can use zip deploy option. In that case, you will need Azure subscription. Check options here.