In previous articles we have seen features of Azure Web app. lets take discussion one step further and see how we can make use all the supported features one by one.
Create Azure Web App – Step by Step
There are multiple ways to create Azure Web App e.g. create web app using ARM portal, Visual Studio, Azure Explorer.
New Web app using Visual Studio
To create new Azure web app using visual studio you can create web projects from the cloud template provided by visual studio. if you are using visual studio which does not have inbuilt template you can download one and use.
Step 1: Create new project
Select menu file -> new project and select Asp.Net or any desired project template. click ok and select web application type
this step will create web app on you local environment, you can develop web app locally as per your needs.
Step 2: Publish Web app to Azure
Once you are done with development, you need to publish web app to azure. in solution explorer window right click on solution and select option publish. you will be prompted to select or create Azure web app profile. there are multiple options to publish web app. Select Microsoft Azure App Service and select create new option, which will create new profile.
Step 3: App Service Plan
once you select or create publish profile, you will be prompted to select or create app service plan based on your needs. you need to provide details like web app name, subscription, resource group and service plan.
Visual studio provides option to create new resource group and app service plan in azure from visual studio itself.
Step 4: Publish Web App
once you are done with profile and app service plan, you are ready to publish web app to azure from visual studio.
you will able to see web app deployed in Azure, and browse the URL in visual studio itself for testing deployed web site.
New Web App using Azure Explorer
Another way you can create web app is azure explorer. recent versions of visual studio provides azure explore inbuilt.
Azure Explorer is very handy and useful, allows developers to create many azure artifacts without navigating to portal.
It allows you to create objects in App Services, Storage, VMs, Databases, HDinsight, Data lake etc.
if your visual studio does not have azure explorer inbuild you can download and use the same.
New Web App using ARM portal
Step 1: New App Service
To create new web app using ARM portal, navigate to new Web+Mobile option and select Web app service.
You will be prompted to provide App name, Subscription and Resource Group, operating system (Linux is in preview mode). By selecting operating system, compute, storage, web server resources will be provisioned with that operating system.
Step 2: Application Service Plan
An App Service plan is important configuration and container for your app, it determine the location, features, cost and compute resources associated with your app. By default you will be given on service plan, but you have an option to create new service plan too.
Microsoft Azure provides wide range of pricing tiers or SKUs (Stock Keeping Units) as follows.
This is new introduction to the pricing tier of Azure Web app, which services of premium plus enables web app to run in specific Virtual Network of customers. Also provides SSD storage and faster CPU for web app.
This SKU provides option of standard plus high availability, disaster recovery, fifty time’s daily backup and up to twenty stating slots.
This SKU provides option of basic plus high availability and up to five stating slots and one daily backup.
This SKU provides option of shared plus manual web app scaling up to three instances.
This SKU provides option of free pricing tier with shared infrastructure plus enables to configure your own custom domain for the web app.
With This SKU you will be able to publish the web app on shared infrastructure with up to one GB storage.
You can either click on Create button to create web app as per configuration or opt for automation, if you want to follow automation steps continue to read.
Step 3: (optional) Automation Option
While creating new azure web app, after providing all the required details you also have a option to automate the web app creation process with Infrastructure as a Code IaaC. if you click on the automation option link next to create button, it will navigate to ARM template of Web app.
You can also choose to deploy web app using template by selecting deploy option at the top of template.
click on purchase button to create web app with provided parameters. azure web app gets created, and can be seen in App Services as follows.
Next articles will continue to focus on configuring features provided by Azure Web app.
Products from Amazon.com
- Price: Check on Amazon
- Price: Check on Amazon
- Price: Check on Amazon
- Price: $30.35Was: $44.99
- Price: $46.34Was: $49.99
- Price: $20.50Was: $22.99