Bulk add Cloudflare's IPs to Azure App Service Access Restrictions using Az PowerShell
Azure App Services are publicly accessible via Azure's public DNS, but when using Cloudflare you should lock this down to only allow Cloudflare to reach your service. This script will add all Cloudflare's IP ranges to your app service Access Restriction.
Clearing Cloudflare cache using PowerShell in Azure DevOps Pipelines
Learn how to purge Cloudflare's cache as part of your Continuous Deployment. This post will walk you through creating a PowerShell task that interacts with Cloudflare's API to clear the cache. This task will run as part of an Azure DevOps Pipelines.
PowerShell Snippet: Clearing Cloudflare Cache with Cloudflare's API
Cloudflare provides a GUI to purge cache, but every action you can perform using the GUI, you can also do with Cloudflare's API. You could use the API to auto purge the cache whenever you update content in your CMS of choice, or purge the cache as part of your Continuous Delivery pipeline. Using PowerShell we'll interact with Cloudflare's API and purge their cache.
Setting up Cloudflare Full Universal SSL/HTTPS with an Azure App Services
Using Cloudflare's Universal SSL service, we can provide our website over a safe HTTPS connection. This post walks you through setting up the SSL encrypted connection from client to Cloudflare, to your Azure Web Application using the Full (strict) option and Cloudflare's origin certificates.