Creating Azure Web Site Using PowerShell

Before creating an azure website we have to determine the location you want to create the site and unique name for the site we can use the following cmdlet to get the locations.


To determine the unique website name we can use the following cmdlet. It returns true or false if it returns true that website name already existed in azure,if it returns false we can use it.

Test-AzureName -Website "geekgost"

Test site

To create a website we can use New-AzureWebsite cmdlet.

$location = "Southeast Asia"
$name = "geekgost"
New-AzureWebsite -Location $location -Name $name -Verbose

This slideshow requires JavaScript.

As you see when we create site using powershell it creates a blank site we can use visual studio,web metrix or FTP method to upload the developed site.

See you in next post 🙂