Skip to content

Deployment in azure virtual machine

Sara Fernández Arias edited this page Apr 25, 2023 · 7 revisions

For this deployment, we used an Azure virtual machine with the following especifications:

Once the machine was created, we connected to it in order to install docker: image

Once we acceded to the machine, we updated the apt repositories from where the machine downloads the packages, libraries, programs.. also we installed docker and gave DEPLOY_USER permissions of execution of the file docker-compose.

Then , we came back to github and created the secrets that are referenced in our .yml

image

image

Then , the workflow was adapted to the architecture of or own app.

Problems encountered along the way

I access the ip / domain and it does not connect..

  •     Check your docker file is accurate, and has the command ["npm","run","start"] (we had this line commented)!
    
  •     HAVE YOU OPENED THE PORTS ON THE VIRTUAL MACHINE? :) Because ours werent open at first :)
    

I managed to host my app, but it seems like it does not log into inrupt? Even if my login data is correct..

This happens because inrupt works with HTTPS only. In order to  have an https connection in your web , you'll need TLS/SSL certificates.

For that , we will create a key vault following the default steps:

image

after fullfilling the form , we obtain the following resource.

image

then , we go to certificates and we click on generating one.

image

once it was indeed created, it will be disabled. We need to enable it manually.

image

read the original tutorial by azure here