Search code examples
azurejenkinsdashboard

Cannot access Azure Jenkins dashboard


I created a Jenkins server on Azure according to this tutorial: https://learn.microsoft.com/en-us/azure/jenkins/install-jenkins-solution-template. The problem is that when I try to access the Jenkins dashboard by entering the dns of this form: http://jenkins2517454.eastus.cloudapp.azure.com, I get 404 not found nginx. I double checked the dns. Any idea what could have gone wrong?


Solution

  • After creating Jenkins on Azure, set up tunnel using Putty in order to access Jenkins via http://localhost:8080/.

    Step1: Open Putty and enter the Hostname and Port.

    enter image description here

    Step2: Configure the tunnel [Source port: 8080 & Destination 127.0.0.1:8080] and click add.

    enter image description here

    Step3: Click on Open to login using jenkinsadmin and password

    enter image description here

    Step4: After you have started the tunnel, navigate to http://localhost:8080/ on your local machine.

    Get the initial password by running the following command in the command line while connected through SSH to the Jenkins VM.

    sudo cat /var/lib/jenkins/secrets/initialAdminPassword

    enter image description here

    Step6: Select Install suggested plugins on the next page and then create a Jenkins admin user used to access the Jenkins dashboard.

    Welcome to Jenkins!

    enter image description here