October 2018
Beginner to intermediate
390 pages
9h 9m
English
To create the same resources with Azure PowerShell, we need to execute a single script that will create a resource group, App Service Plan, and Web App. The script starts with parameters and then executes three cmdlets to create everything we need for deployment. Make sure you are connected to Azure in Azure PowerShell:
$ResourceGroupName = "packt-demo-ps"$webappname="packt-demo-ps-webapp-01"$location="West Europe"New-AzureRmResourceGroup -Name $ResourceGroupName -Location $locationNew-AzureRmAppServicePlan -Name $webappname -Location $location -ResourceGroupName $ResourceGroupName -Tier FreeNew-AzureRmWebApp -Name $webappname -Location $location -AppServicePlan $webappname -ResourceGroupName ...
Read now
Unlock full access