灵感来自fast.ai的aws-alias.sh的Azure虚拟机的包装脚本
希望这很有用。
根据您的环境编辑azure-env.sh
。
# set environment variables and aliases (you MUST do this before executing other commands)
source azure-env.sh
source azure-alias.sh
# start vm
azure-start
# get ip address
azure-ip
# ssh login
azure-ssh
# start jupyter notebook server from local machine
azure-start-jupyter
# open jupyter notebook on local machine
./azure-open-jupyter.sh
# stop and deallocate
azure-stop
麻省理工学院