Hambone Blues Jam

Home Decoration Tips
How to create quicky a Lamp VM in Azure

How to create quicky a Lamp VM in Azure


bonjour hi welcome to another video of
cloud in five minutes I’m Frank Boucher and today I want to talk about how to
create a Lam VM with Linux Apache MySQL and PHP because it’s not only the
Microsoft stack that is available on azure if you prefer, I have an French version of this video click just here in the top right corner a very popular environment for web
development Islam with Linux Apache MySQL and PHP of course you could create
a VM in Azure with your Linux favorite distro and configure your MySQL and your
PHP in it but the purpose of today for this second QuickStart on Azure video is
to have a VM that is re prepackaged for us let’s get started will create VM
using the portal so let’s go to portal Dodger com now from the top left you
will click on this create a new resource button now we’ll search simply for lamb
in here this search box there you will have a lot of options but the one I like
is here lamb certified by bitNami because that one is already prepackaged
for us let’s create it by clicking the blue button now I need to fill that form
with simple question to create my VM I need to pick my subscription that’s fine
now I need to pick a resource group a resource group it’s a logic group where
all the resources will be sitting we’ll come back later so but for now let’s
create a new one so create new and we’ll just call it Frank demo now we give a
name to our VM so I will call mine Frank lamb VM and you pick a region so usually
you will pick a region that is close to you so you get less latency like I was
mentioning you could specify a different image but we already pre select the
certified by minami you could change your size have a very
beefy VM but for now I will keep it as it is so now to connect to our VM we’ll
need a credential so of course you could use the SSH public key but for me since
I’m just demoing I will use a user password so click here deception I will
use Frank has a name and a password I could go in every step and space
specify the size of the disk and everything but since it’s a demo and
since I’m on start I will keep everything by default
so just before the VM is created we have a last validation so in one page I will
have all the information concerning my VM it’s very interesting because right
now a lot of information was pre-selected for me so here I could see
how much will cost my VM by hour and if I scroll down I will have all the other
information if I’m interested to have the arm template to create the exact
same structure I could click here down below to download the template
automation that’s the arm template so I could use that in an automatic
deployment so now let’s create it so after a few minutes you will see it’s
very quick all the resources will be ready so let’s go in the resource group
to see what we have so we’ll click here in my resource group there it is I have
my VM a V net ma an IP a storage and everything I need everything was created
for us so now we need the IP of the VM and the application password because
bitNami to configure our VM created a password and we need that one so let’s
go here in the VM will click on that and here it is my IP so I need to take note
of that so like I told you the VM is already configured let’s open the new
tab and just paste the IP and there it is we have the default web page so the
VM is ready and waiting for us now a tool that is very useful when we play
with lamb is PHP myadmin to access it we need to create an SSH bridge so let’s go
in the terminal so we need to create a bridge between the localhost so 100
27001 and the VM with 1382 236 and 40 that’s the VM we created an azure so we
want to bridge an SSH rich so we will remap the port 8080 to the port 80 so
we’ll execute this and of course we agree and now we need to enter the root
password that’s the password you created when you create a VM
so it should be working let’s go back in our browser I will open a new tab and
now we need to go to localhost 8080 and PHP myadmin
that’s great we have it but one thing that we still miss is the application
password so to get that one we could connect to the VM and look in the files
but we have that information very clean the portal so go back in the azure
portal and we’ll go in boot gymnastics so if I scroll here that’s panel close
to the bottom I have boot diagnostic I will click on that and I will go check
in the serial log the password was created at the end so scroll down close
to the end and here it is you have the setting bit nanny
application password so application password so note this password since it
will be used to connect to everything that was configured by bitNami great so
now that we have it we could connect to our PHP myadmin
I just need to enter it and I have the tool everything is there
perfect but of course I still want to connect remotely to my VM to do that
we’ll go back in our terminal I will open a new tab and I will connect using
SSH so SSH and then Frank with the IP of my
VM and now of course I need to enter my password and there it is I’m connected
to the VM I could do everything I’m on Linux and it will be working perfectly
let’s say for example I want to connect to the MySQL I could go MySQL and there
it is I’m in MySQL and Wow and there it is in only few minutes you’re ready to
code now it’s up to you to create a nice web application if you want to know more
about Asscher click here another video of called in five minutes
Thanks

2 comments found

  1. Hi Frank – Your videos are so nice, precise and gives lot of power user tips. Especially your videos around working wth ARM Templates. Your content has more value than some of the paid course I do in Udemy. Please consider creating a course on Udemy with this kind of content.

    I would like to see the following topics in your video if you get chance
    1. Working with Storage Account
    Creating VHD hard disk and attaching to VM (saving cost using un managed disk instead of disks)
    2. Demo on creating a small office setup 5 computers by networking machines, fileshare setup etc

Leave comment

Your email address will not be published. Required fields are marked with *.