Hello,
I seems that running a purge script with "-AsJob" is not possible. Is there any alternative to this?
Hello,
I seems that running a purge script with "-AsJob" is not possible. Is there any alternative to this?
@KE1980 , Adding "&" at the end of the command does the job for me,

Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.
Thanks! And quick and sharp with a solution as allways. Appreciate it!
When I use the script ion a deploy-pipeline, I do get the error
"The ampersand (&) character is not allowed. The & operator is reserved for future use"
Any suggestions to solve this one?
@KE1980, I did try running it as wrapped PS script and it did work,

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]
@suvasara-MSFT Yeah, I was thinking the same with doublequote, although not with the singlequoe+doublequote.
I do work, as it does with doublequote, in the cloud shell, but not when it is in deploy pipeline.
Error message:
A positional parameter cannot be found that accepts argument '"&"'.
@KE1980 , here is the solution,
start-job -ScriptBlock {Remove-AzFrontDoorContent -ResourceGroupName Networking-Resources -Name frontface -ContentPath "/*"}
10 people are following this question.