Azure Cloud: Create your first compute Virtual Machine

Suman Tomer
3 min readMar 29, 2022

--

Creating Jenkins Server for running your tests. Fun!

1. Sign up for trail Azure cloud account and activate subscription.
2. Go to Virtual Machine option and start creating the VM via following the full Wizard.

3. Create a new resource group for the VM.

4. Fill up the VM name, Region, Security type, choose the Jekins Image (Ubuntu), Size and credentials (SSH user/passsword) for the VM as shown below.

5. Click Next for other option like Disks, Networking, Managment, Advanced and Tags leaving the default options selected for you.
6. Under “Review & Create” tab, click the Create button to provision the VM.
7. Now, wait it to complete for few minutes and then go to the Resouce group and select your VM name as shown below.

8. Click on the VM and copy the public IP address and hit on the browser in the following format http://xx.xxx.xxx.xxx:8080/

9. If VM was provisioned correctly, you will see the below page challenging you to get the Admin password.

10. You need to ssh by providing the credentials into the VM from your machine CLI.
$ ssh yourUserName@xx.xxx.xxx.xxx

11. Once you are succesfully sshed into the VM, run the following command to get the first time password.
$sudo cat /var/lib/jenkins/secrets/initialAdminPassword

12. Copy the password from the console without trailing spaces and paste into the browser.

13. Select “Install Suggested Plugins”. Do not worry if all plugin are not installed in the first time. You can always come back install failed plugins.

14. Save and click next with defaults selected. Your Jenkins Server on Azure cloud is ready for you to play with.

15. Do not forget to Delete your VM(s) or resouces from your Azure cloud.

Thanks for reading the article.

--

--

Suman Tomer
Suman Tomer

Written by Suman Tomer

Test Automation, QA Engineer, Azure Cloud, Helping woman who wants to learn testing and join industries

No responses yet