Kudu REST API Command endpoint error when executing powershell

后端 未结 3 1256
情书的邮戳
情书的邮戳 2021-01-25 01:46

When trying to execute the POST to /api/command according to this description the following error occurs:

PS C:\\> $Result.Error
remove-item : The Win32 int         


        
3条回答
  •  滥情空心
    2021-01-25 02:02

    After checking this issue on github the correct POSH command should be:

    get-childitem -recurse | remove-item -recurse -force

    It works well when executing directly from Kudu console or even REST API /api/command endpoint

提交回复
热议问题