How to purge the Azure CDN to refresh any cached content?
<p>I need to refresh the contents when I upload a new content to CDN. When the content change, it's important that the updated data is immediately available. But CDN caches and it is not reflecting immediately.</p>

<p>I referred to site '<a href="https://msdn.microsoft.com/en-us/library/mt634451.aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/mt634451.aspx</a>' and tried implementing the same. However, when I try to hit it, I get authorzation error. </p>

<p>{
    "error": {
        "code": "AuthenticationFailed",
        "message": "Authentication failed. The 'Authorization' header is missing."
    }
}</p>

<p>But the article does not give info abt what needs to go into Authorization header. Can someone pls help me here, on how to construct this authorization header? Pls let me know if you need more details.</p>

<p><em>Note</em>: I checked the SO post '<a href="https://stackoverflow.com/questions/8754611/how-do-i-force-azure-cdn-content-to-be-purged-or-invalidated">How do I force Azure CDN content to be purged or invalidated?</a>' and it does give link to the msdn link(same as above), but not about the authorization header. </p>