I have already created and been using a CDN endpoint with origin type of 'Custom origin' that was pointed to an Application Gateway. Now I want to change the origin type to 'Web app' and point to a Function App. I am able to change the hostName
property to the Function App URL but I cannot find a way to change the origin type and the value continues to be 'Custom origin'. I do not see a property in the ARM template nor any properties in the PowerShell commandlets. Is there a way to change it or do I need to delete and recreate?
How to Change a CDN Endpoint Origin Type
1.1k views Asked by Stringfellow At
1
No need to change the
Origin type
manually, when you change theOrigin hostname
to the url of the function app, theOrigin type
will be changed toWeb App
automatically.Try the powershell command below, it works on my side.
In my sample, the
www-test-com
is theOrigin Name
, it can not be changed once created, so you can just use the old one. If you want to change it, you need to create a new endpoint.After running the commands, the result will be like below.