In the Creating and configuring a new Microsoft Azure website section of Chapter 5, Deploying and Managing Azure Websites with PowerShell, we covered how to create a new Microsoft Azure website. We will use that method to create two new Azure websites with the following steps:
Open Microsoft Azure PowerShell from the Start menu and connect it to an Azure subscription.
Note
We must first be connected to Azure in order to work with Microsoft Azure websites. If not connected to Azure, refer to the Connecting to a Microsoft Azure subscription section in Chapter 1, Getting Started with Azure and PowerShell.
Use the
New-AzureWebsite
cmdlet to create a new Microsoft Azure website:PS C:\> New-AzureWebsite –Name psautoprimary –Location "West US"