I created ps1 script, which creates a Linux VirtualMachine and opens ssh session with it. And I would like to ask if it is somehow possible to have bash commands already written in this script. I mean, if I call my script.ps1, it creates my virtual machine, opens ssh session and does eg all apt-gets and so on. Is it possible?
I am not sure if that is possible. Instead of that, i would recommend to do that using command-line interface which may be enabled in Bash. CLI is here - https://github.com/Azure/azure-xplat-cli
Bash in Windows (if you are going to use Windows) is possible only in the latest Windows 10 builds , so you will need to integrate that possibilities somehow
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.