Azure Website in 2 mins
Love that you can create a hosted website from the command line with a few simple commands:
azure site create --git fromCmdLine
copy con index.html
<!DOCTYPE html>
Hello Azure Website!
[CTRL-Z]
[ENTER]
git add -A
git commit -m "initial add"
git push azure master
</blockquote>Using the –git parameter with azure site create will create a Git repository on Azure for the named website. This will also initialize a Git repository in the directory from which the command was ran if one does not already exist. It will also create a Git remote named azure, which can be used to push deployments to the Azure Website using the
git push azure master
command. If you are using bash replace the ‘copy con’ with ‘cat’.There are a few pre-requisites:
Azure account – sign up for a free trial if you don’t have one
Azure cross platform CLI tools with instructions including how to configure the current subscription here - http://azure.microsoft.com/en-gb/documentation/articles/xplat-cli/
Comments