Now that we are connected to our Microsoft Azure subscription in PowerShell, we will create a simple Azure website to illustrate what we can do with Azure PowerShell.
Many of the cmdlets used to instantiate new services, such as a website, in Microsoft Azure include a
-Location parameter. This parameter specifies in which Azure data center the new service will be instantiated. To get a list of the data centers available to your subscription, use the
Get-AzureLocation | Format-List -Property Name command in PowerShell.
To create an Azure website, we will use the following steps:
New-AzureWebsitecmdlet to create the new Azure website (
PS C:\> New-AzureWebsite –Name "PowerShellAutomationIsAwesome" ...