Front Door Purge Script

Nibbler 616 Reputation points
2021-04-20T21:41:51.367+00:00

Hello,

I seems that running a purge script with "-AsJob" is not possible. Is there any alternative to this?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
622 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,446 questions
0 comments No comments
{count} votes

Accepted answer
  1. suvasara-MSFT 10,026 Reputation points
    2021-04-21T20:52:38.07+00:00

    @KE1980 , Adding "&" at the end of the command does the job for me,

    90020-image.png

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


1 additional answer

Sort by: Most helpful
  1. suvasara-MSFT 10,026 Reputation points
    2021-04-23T09:03:34.547+00:00

    @KE1980, I did try running it as wrapped PS script and it did work,

    90678-image.png

    May be Your deployment pipeline requires this & to escape. Try adding double quotes around this whole command and do a redeploy. Also, try this way, '"command"' [singlequote+doublequote+command+doublequote+singlequote]