This tutorial azure cloud project demonstrates how to install a basic web app on a virtual machine. We will use our azure account to creature a resource group and virtual machine. Then we will install and configure the virtual machine to run nginx web server and python. Our web app is a flask template and python web application that is uploaded to our virtual machine and then configured to run with nginx.
Watch the video tutorials and follow step-by-step instructions to learn how to create your own starter web app running on an azure cloud virtual machine.
Step #3 - Create A Virtual Machine
Login to the Azure portal.
On the homepage, click "Create a resource"
Select "Compute" from the category menu
Select the "Virtual Machine" product and select Create to start the wizard process
Create a Linux VM with the following details:
Subscription: This will vary for you. Should default to your main subscription.
Resource Group: web-app-vm-project
VM Name: linux-vm-project
Region: East US or a region closest to you that is available
Availability Options: Default option of "No infrastructure redundancy required" is fine here.
Image: Ubuntu Server (any version) but I'm going to use the latest version 18.04 LTS
Azure Spot instance: No
Size: Click on "Select Size" and select "Standard B1ls"
Authentication type: Password
Username: (any username you choose) projectadmin
Password: (any password you choose) projectadmin|2021
Inbound Port Rules: "Allow Select Ports" and make sure from the drop-down menu, 22 and 80 are selected
Monitoring: Disable boot diagnostics
Click Review + Create and carefully review your virtual machine settings
Create your virtual machine (VM). This process may take awhile but a notification will inform you that your resource is created when it is ready.
Take a look at your newly created and running resource.
Stop the machine if you are done using it or continue to the next section.
Note: We chose not to reserve a Public IP address. The one shown in the VM overview is temporary for only when the VM is running and will change the next time you start the VM.
GitHub Project Repo
https://github.com/kathleenwest/Azure...
Project Series - Azure Virtual Machine Web App Demo (5 Episodes) See Link Below
• Azure Virtual Machine Web App Tutoria...
Transcript Step-By-Step
1 Let's create a Resource.
2 Virtual Machines are found under the Compute category.
3 Make sure you select "Virtual Machine" and not "Virtual Machine Scale Set", then click Create.
4 Let's walk through the wizard process.
5 Select the project Resource Group.
6 Enter a valid virtual machine name.
7 Select the size for the Virtual Machine.
8 It may take a moment for the cost option to load.
9 Sort ascending to find the cheapest size.
10 Review the Virtual Machine size for your project needs.
11 Yes, it's true. You can resize the Virtual Machine after creating it.
12 Select the virtual machine size.
13 Let's set up our administrator account.
14 Select the password option. Enter a username and a password.
15 Let's look at the setup wizard for disks.
16 I don't need any changes here, so I am going to look at the Networking tab.
17 By default, Azure includes settings for a new virtual network.
18 If you have an existing virtual network, you can add this virtual machine to that network.
19 Make sure you have the inbound port rules turned on, and click the Management tab.
20 We don't need advanced monitoring, so let's disable boot diagnostics.
21 For this project, let's leave the rest as defaults.
22 Let's take a look at advanced settings.
23 For this project, let's leave the defaults.
24 Click on tags to add custom tags. Skip ahead to Review and Create.
25 Here you are going to see an estimate of the costs of your virtual machine. Review the terms and conditions.
26 Make sure you carefully review all the settings before you click on the Create button.
27 Let's create the virtual machine and get this project started.
28 It could take awhile to create a virtual machine.
29 You'll receive a notification that your resource has been created.
30 Click on Go To Resource.
31 Let's take a look at the overview of our newly created and currently running virtual machine.
32 Azure created a temporary public IP address for when our virtual machine is running.
33 Click on Stop to stop the virtual machine.
34 Keep your project cheap and reduce costs. Make sure to stop your virtual machine when you are done working on it.
35 It will take awhile to stop and the status will change to Deallocating.
36 The final status should say "Stopped Deallocated" and you will now see that your public IP has disappeared.