- 10 Sep 2024
- 4 Minutes to read
- Print
Deploy Linux Template
- Updated on 10 Sep 2024
- 4 Minutes to read
- Print
Deploying a Linux Virtual Machine on Microsoft Azure is quick and easy, using Resource Templates. To create a Resource Template in the Skillable Studio platform that will deploy a Linux VM, you must perform the tasks below.
Create a Resource Template
Navigate to the Skillable Studio Administration page.
Click Resource Templates on the Cloud Services tile.
Click Create Resource Template in the upper-right corner of the page.
Enter ++Linux-VM++ into the Name field on the Basic Information tab.
Enter ++Deploys a Linux virtual machine++ into the Description field on the Basic Information tab.
Select your organization, or the organization that will use this resource template.
Click to open this dialog containing an Azure Resource Manager (ARM) template and follow the instructions in that dialog.
Now let's define the parameters for the ARM template by selecting the Parameters tab.
Note that not all parameters in the ARM template you are using are required. When you want to simply use default values for parameters that are optional, you can remove those optional parameters from the Resource Template parameter list. Remove the following parameters by clicking Delete next to each of them:
publicIPAddressName
vnetName
networkSecurityGroupName
subnetName
securityRuleName
size
For the remaining parameters, configure them as follows:
Name
Display Name
Description
Required
Display To Student
name
++VM Name++
++The name of the virtual machine++
No
Yes
nicName
++NIC Name++
++The name of the network interface++
Yes
No
adminUsername
++VM Admin Username++
++Admin username to log in to the virtual machine++
No
Yes
adminPassword
++VM Admin Password++
++Admin password to log in to the virtual machine++
No
Yes
dnsName
++DNS Name++
++The DNS name for the virtual machine++
Yes
Yes
Required and Display to Student are used to assist with the user experience of your lab. Use Required for any parameters that do not have default values, or for any optional parameters that you want lab authors to provide values for when they use this template. Use Display to Student to identify parameter values that you would like students to be able to see on the Resources tab once they are inside of the lab.
Click Save.
Congratulations! You have just finished creating a Resource Template in Skillable Studio that can be used to deploy an Ubuntu Linux virtual machine as part of a lab. Each student launching a lab that uses this template will receive their own Ubuntu Linux VM, and they will not be able to see or access any of the other VMs that other students are using.
Now that you have that done, it's time to configure your Lab Profile to deploy the resources defined in the Resource Template.
Return to the Skillable Studio Administration page.
Navigate to your Lab Profile.
If you are unsure how to get to your Lab Profile, you can get to it by doing the following:
Click Find Lab Profiles to find your Lab Profile.
Enter the name of your Lab Profile in the Name field.
Change the operator drop-down adjacent to the Name field to Equal.
Click Search to find your Lab Profile.
In the search results, click the Name hyperlink of your Lab Profile to open the Lab Profile details view.
Click Edit Profile to open the edit view for your lab profile.
Select the Cloud tab.
Ensure that the Cloud Platform is set to Azure, and the Cloud Portal URL is set to ++https://portal.azure.com++.
If you have not already associated a Cloud Subscription Pool with this lab, click Choose next to Shared Subscription Pool.
Click Search to see all Cloud Subscription Pools that are available to you. If you want to find a specific pool, enter the name that subscription pool in the Name field before you click Search.
Select your cloud subscription pool in the search results.
Click OK.
Click Add User Account, and enter ++Taylor++ into the Name Prefix field.
Click Add Resource Group, and enter ++corp-data++ into the Name Prefix field.
Click Add Permission, select Taylor in the combo box, and select Contributor in the Role combo box.
Click Add Resource Template.
Enter ++linux-vm++ into the Name field, and change the operator drop down adjacent to it to Equal.
Click Search to find your Resource Template.
Select your Resource Template in the list of results, then click OK.
Enter ++nic-@.GlobalLabInstanceId++ into the NIC Name field, and enter ++ubuntu-@.GlobalLabInstanceId++ into the DNS Name field. This will give the NIC and DNS unique names.
Leave VM Name, VM Admin Username, and VM Admin Password blank. Those parameters are optional.
Click OK.
Checking the Deploy In Background checkbox next to a Resource Template will allow the lab user to start using the lab even if this Resource Template is still deploying. This is useful when you have tasks that users can complete while these resources are being deployed in the background. By default, unless you check the Deploy In Background checkbox, users will not be able to start a lab until all Resource Templates have fully deployed.
Click Save to save the updated lab profile.
You have now created a Resource Template that will deploy a single Linux Virtual Machine for each student who launches this lab. Let's launch it to see what it looks like!
In the lab profile details view, click Launch to launch your lab.
Once the lab has finished deploying, click Get Started.
Congratulations! You have just deployed an Ubuntu Linux Virtual Machine in your lab! You are now seeing the lab from the same perspective of a student.