The following forum(s) have migrated to Microsoft Q&A (Preview): Azure App Service - Web Apps!
Visit Microsoft Q&A (Preview) to post new questions.

Learn More

 locked
Create a new web app in App Service Environment RRS feed

Answers

  • You can use the following command:

    New-AzureRmWebApp -ResourceGroupName ResourceGroupName -Name webappname -Location LocationName -AppServicePlan WebApp-AppServicePlan -ASEName ASEName -ASEResourceGroupName ASEResourceGroupName

    -Ahmed

    Friday, April 22, 2016 4:09 PM

All replies

  • Hello Daniel,

    Thank you for posting here!

    You can create a new web app using the New-AzureResourceGroup commandlet and a customized JSON template. Use Command for creating web app as below,

    New-AzureResourceGroup -Name $ResourceGroupName -Location "Australia Southeast" -TemplateFile $TemplateFile -siteName $SiteName -hostingPlanName $HostingPlanName -hostingEnvironment $HostingEnvironment -siteLocation "Australia Southeast" -workerSize 0 -sku "Premium"

    For more information on JSON template, please refer the Stack Over flow.

    Hope this helps.

    Regards,

    Swikruti

    If a post answers your question, please click Mark as Answer on that post and Vote as Helpful.

    Friday, April 22, 2016 2:43 PM
  • You can use the following command:

    New-AzureRmWebApp -ResourceGroupName ResourceGroupName -Name webappname -Location LocationName -AppServicePlan WebApp-AppServicePlan -ASEName ASEName -ASEResourceGroupName ASEResourceGroupName

    -Ahmed

    Friday, April 22, 2016 4:09 PM