NEW 4K Narrated Version Here: • How to Copy Files to a Virtual Machin...
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 #4 - Access Virtual Machine and Transfer Web App
In Visual Studio Code (VSC) create a terminal window in the directory of your project.
Login to azure through the terminal window.
Login to Azure portal and find your virtual machine. Start your VM.
Find and record your Public IP address from the azure portal VM Overview or type az vm list-ip-addresses -g web-app-vm-project -n linux-vm-project in your VSC terminal window to obtain your IP address
Next, we're going to copy our web-app from our local machine to the VM home user directory using the secure copy utility command scp -r ./web-app projectadmin@IPADDRESS:/home/projectadmin
Login with your credentials to the virtual machine to complete the secure copy.
Username: (username you chosen) projectadmin
Password: (password you chosen) projectadmin|2021
NOTE: The first time you try connecting to the VM, you'll see a similar message to the one below and should answer 'yes' to permanently add the IP address to the list of known hosts.
The authenticity of host '52.191.135.139 (52.191.135.139)' can't be established.
ECDSA key fingerprint is SHA256:7bBVTsYNImhXxAn+xscCHm/OkcodHZS615VSKO3GP8c.
Are you sure you want to continue connecting (yes/no)?
Once the files have been copied to the VM, we can connect to the VM using secure shell ssh projectadmin@IPADDRESS and login with the same credentials
Navigate to the web-app directory and ls contents to see that our files have transferred.
Stop the virtual machine if you are done or continue to the next section.
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...