I needed a script to purge the CDN of this blog, I have the CDN setup already.
Get a list of all the powershell commands for the CDN
get-command -module AzureRM.Cdn
$resourceGroupName = '' $profileName = '' $endpointName = '' $cdnEndpoint = Get-AzureRmCdnEndpoint -ResourceGroupName $ResourceGroupName -ProfileName $profileName -EndpointName $endpointName $cdnEndpoint | Unpublish-AzureRmCdnEndpointContent -PurgeContent "/*"
This is really something you want to have inclued as part of your automated deployment. In a future article I will tie this together with a deployment scenario.
I'm a .NET Software Engineer that is currently working at SafeToNet. Opinions are my own.
Nant (1) Load testing (1) Visual studio (1) Azure (24) Aws (1) Asp.net (1) Tfs (1) Puppetlabs reports (2) Devops (2) Iis (1) Powershell (6) Arm templates (2) Arm template (1) Azure (5) Powershell (1) Dsc (1) Arm (1) Jekyll (1) Vsts (1)