I'm using PowerShell inline task in the release pipeline to deploy the respective zip file to the Azure App Service, but im unable to achieve it due to the below error. Can you please let me know if there is any thing that im missing here.

I'm getting below error  

Invoke-RestMethod : Path 'D:\a\r1\a\_CI-VI-Maven/DeployPackages/marnet.zip' resolves to a directory. Specify a path including a file name, and then retry the command.

[![enter image description here](https://i.stack.imgur.com/7f7XD.png)](https://i.stack.imgur.com/7f7XD.png)

**Below is the script that im using:**

$username = "username"  

$password = "pwd"

$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username, $password)))
$userAgent = "powershell/1.0"

$apiUrl = "https://{appservice}.scm.azurewebsites.net/api/zip/site/wwwroot/webapps/"  

$filePath = "$(System.DefaultWorkingDirectory)\_CI-VI-Maven/DeployPackages/marnet.zip"  

Invoke-RestMethod -Uri $apiUrl -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -UserAgent $userAgent -Method POST -InFile $filePath -ContentType "multipart/form-data"