POST POST

JAN
27
2022

Purge CDN in DevOps

ORIGINALLY POSTED TO: https://blog.simontimms.com/2022/01/27/purge-cdn-in-devops

In order to purge a cache in the build pipeline you can use some random task that some dude wrote or you can just use the Azure CLI.

Here is an example of what it would look like to purge the entire CDN top to bottom

1
2
3
4
5
6
7
- task: AzureCLI@2
displayName: 'Invalidate CDN Cache'
inputs:
azureSubscription: 'Azure'
scriptType: 'batch'
scriptLocation: 'inlineScript'
inlineScript: 'az cdn endpoint purge --content-paths "/*" -n devascacdnendpoint -g devasca-rg --no-wait --profile-name devascacdn'

Simon Timms

Email Email
Web Web
Twitter Twitter
GitHub GitHub
RSS

Looking for someone else?

You can find the rest of the Western Devs Crew here.

© 2015 Western Devs. All Rights Reserved. Design by Karen Chudobiak, Graphic Designer