This post explores ten practical "pearls" or code snippets demonstrating the use of Pulumi to construct serverless applications with Azure Functions and infrastructure as code, categorized into function app deployment, HTTP functions as callbacks, cloud event handling, and data flows with function bindings. It highlights the flexibility of deploying Azure Functions using Pulumi in different languages and hosting plans, such as the Elastic Premium Plan, and the ability to create strongly-typed, serverless HTTP endpoints by mixing JavaScript or TypeScript with infrastructure definitions. The post further examines how to process events from Azure Event Hubs, subscribe to Azure Event Grid, and manage data flows using function bindings, showcasing Pulumi's capabilities in managing relationships between cloud services and infrastructure with minimal configuration. This approach allows developers to efficiently handle tasks like REST API implementation, function "warming" to prevent cold starts, and automation through resource-level event handling, making Pulumi a powerful tool for integrating cloud infrastructure with serverless computing.