eye eye - 4 months ago 74
PowerShell Question

Create Azure website (app service) within a resource group with service plan with Powershell

I looked on the web and I found only trival examples of usage New-AzureWebsite like:

New-AzureWebsite -Name appName -Location yourLocation

However this commands creates a website in a new resource group and with new service plan. How to create a website within a existing resource group with existing service plan?


You can use the new AzureRM Powershell v.1.0.1 and use the following command

New-AzureRMWebApp -ResourceGroupName <RGName> -AppServicePlan <AppServPlan> -Name <SiteName>