In this article, we are going to see the steps required to create a Web App with deployment from GitHub using Azure PowerShell. You can create, deploy and test web apps using Azure PowerShell. Azure PowerShell contains sets of modules that provide multiple cmdlets to manage Azure with Windows PowerShell.
Prerequisite
Before you begin to utilize PowerShell to oversee the Azure PowerShell, ensure that the Azure PowerShell has been installed. If not installed, here is an article on How to install the Azure PowerShell module. You need to do this only once for each computer from which you are running Azure PowerShell commands.
Connecting to Azure Portal
Connect to Azure Portal using Connect-AzureRmAccount cmdlet.
Prerequisite
Before you begin to utilize PowerShell to oversee the Azure PowerShell, ensure that the Azure PowerShell has been installed. If not installed, here is an article on How to install the Azure PowerShell module. You need to do this only once for each computer from which you are running Azure PowerShell commands.
Connecting to Azure Portal
Connect to Azure Portal using Connect-AzureRmAccount cmdlet.
Connect-AzureRmAccount

Creating Azure Resource Group
Create an Azure Resource Group so that we can deploy, update, and test web apps in a group. Azure Resource Group is a new approach to group a collection of resources that share a unified life cycle. The benefit of using resource groups in Azure is that we can group all resources that belong to one application.
You can create Resource Groups in Azure using New-AzureRmResourceGroup cmdlets. The required parameters are,
You can create Resource Groups in Azure using New-AzureRmResourceGroup cmdlets. The required parameters are,
-
Name - Specify the name of the resource group.
-
Location - Specify the Azure data center location of the resource group, such as southindia and westus.
- $ResourceGroupName="HubflyGroup003"
- $location="southindia"
- New-AzureRmResourceGroup -Name $ResourceGroupName -Location $location

Now check your Azure portal the resource group will be created

Creating App Service Plan
Create an App Service plan using New-AzureRmAppServicePlan cmdlets for the resource group. The required parameters are,
-
Name - Specify the name of the webApp.
-
ResourceGroupName - Specify the name of the resource group
-
Location - Specify the Azure data center location of the resource group, such as South India and the West US.
- $webappname="Hubflysoft"
- New-AzureRmAppServicePlan -Name $webappname -Location $location ResourceGroupName $ResourceGroupName -Tier Free

Creating Azure Web App
Create a web app using New-AzureRmWebApp cmdlets. The required parameters are,
-
Name - Specify the name of the webApp.
-
ResourceGroupName - Specify the name of the resource group
-
Location - Specify the Azure data centre location of the resource group, such as southindia and westus.
- New-AzureRmWebApp -Name $webappname -Location $location -AppServicePlan $webappname -ResourceGroupName $ResourceGroupName






Sushant KesariPosted Nov 23, 2018, 10:28 PM
Nice article..
JosephsPosted Sep 10, 2018, 12:55 AM
How to use same concept in dotnet?
Viknaraj ManogararajahPosted Sep 9, 2018, 3:35 AM
superb....
Muthu KumarPosted Sep 7, 2018, 12:08 PM
Nice article. Thanks for sharing..
Hadshana KamalanathanPosted Sep 7, 2018, 10:41 AM
Thanks for sharing.....