I'm attempting to script a backup process of a docker volume hosted in a azure linux app service, I need to create a ssh tunnel using powershell.
Calling the script from task scheduler with the following :
powershell -noninteractive -File R:\path\to\ftp-backups.ps1
When the following command is executed to create the tunnel
az webapp create-remote-connection --subscription 00000000-9dfs-4fdsxexxxx-324jklsdf4308320324 --resource-group my-resource-group -n my-app-name -p 12345
A powershell dialog pops up indicating progress, and then pauses the script with the feedback below and offering the interactive options to close
Opening tunnel on port: 12345
SSH is available { username: user, password: password }
Ctrl + C to close
The script does not move past this point, how can I suppress this interactive dialog prompt so the rest of the script will continue?