O'Reilly logo

Automating Microsoft Azure with PowerShell by John Chapman, Aman Dhally

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Microsoft Azure website using PowerShell

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.

Note

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:

  1. Use the New-AzureWebsite cmdlet to create the new Azure website (PS C:\> New-AzureWebsite –Name "PowerShellAutomationIsAwesome" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required