Need to install and connect to OpenVPN through command line task on windows hosted agent of azuredevOps pipeline:
We wrote bash script to install and connect to OpenVPN on ubuntu machine and we executed it through Azure devOps Pipeline Bash script task on microsoft hosted ubuntu machine, we were able to install/connect to OpenVPN successfully.
Scripts we used:
To instal OpenVPN:
sudo apt-get update
sudo apt-get install -y openvpn
To connect to OpenVPN:
sudo openvpn --config $(Agent.TempDirectory)/vpnconfig.ovpn &
Similarly we found some windows commandline commands to install/connect to OpenVPN on windows machine and we executed it through Azure devOps Pipeline command line task on microsoft hosted windows agent but the execution of the command is failing in pipeline.
Script we used:
Referred: https://stackoverflow.com/questions/614 ... on-windows
$(Agent.TempDirectory)/openvpn-gui --command connect vpnconfig.ovpn
Above script is Based on "C:\Program Files\OpenVPN\bin\openvpn-gui.exe"--command connect yourconfigfile.ovpn
Note: We already downloaded openvpn-gui.exe file and configuration file in the agent machine where it stores in agent.tempdirectory location
Please help us on giving the process to install/connect to OpenVPN through windows CLI commands
Need to install and connect to OpenVPN through command line task on windows hosted agent of azuredevOps pipeline
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Aug 16, 2022 12:39 am