Hello @Torben ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand you have a couple of questions regarding Azure Front Door purge. I've answered them below:
What is the difference between
az network front-door purge-endpoint
andaz afd endpoint
purge?
az network front-door
commands are used to manage Classic Azure Front Doors.
https://learn.microsoft.com/en-us/cli/azure/network/front-door?view=azure-cli-latest
az afd
commands are used to manage Azure Front Door Standard/Premium.
https://learn.microsoft.com/en-us/cli/azure/afd?view=azure-cli-latest
az network front-door purge-endpoint
requires a name. What's the name here explicitly? Is it the name of the routing rule? In this case "staging-multilanguage"?
The name parameter in the az network front-door purge-endpoint
command is the name of the Azure Front Door.
https://learn.microsoft.com/en-us/azure/frontdoor/standard-premium/how-to-cache-purge-cli
So, if you have a Classic Azure Front Door, you can use az network front-door
command.
If you have a Standard/Premium Azure Front Door, you can use az afd
command.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.