2 ways to setup up Node.js on Azure:
Once logged in, run:
sudo apt-get update sudo apt-get install nodejs sudo apt-get install npm
Then run: nodejs -v to check your version and if all is well. *On your local, install the Azure CLI via Homebrew:
brew update brew install azure-cli
A few commands to get you started:
az -h az vm -h az login az stop az deallocate az start az account set --subscription your-subcription-name az vm list --output-table az vm deallocate --name your-vm-name --resource-group your-resource-group
You can then setup Local Git as a deployment source to Azure.
cd your-project git init git add . git commit -m 'First commit' git add remote azure http://the-azure-git-url.git git push azure master az webapp browse --name your-app-name --resource-group your-resource-group
Once that is done, you can setup deployment slots as:
az webapp -h az webapp deployment slot swap --slot your-slot-name --name your-app-name --resource-group your-resource-group-name