Azure Function that calls Cloudflare's purge_cache
endpoint.
Requires 2 environment variables to be set:
CLOUDFLARE_ZONEID
: the Zone ID of the cache being purged.CLOUDFLARE_PAT
: A Cloudflare PAT withZone.Cache Purge
permissions for the cache's zone.
Requires:
AZURE_RBAC_CREDENTIALS
: secret containing a service principal's RBAC credentials.AZURE_FUNCTIONAPP_NAME
: variable containing the Function App's name.