|
1 | 1 | ---
|
2 | 2 | title: Use Azure Lab Services for hackathon
|
3 |
| -description: This article describes how to use Azure Lab Services for creating labs that you can use for running hackathons. |
4 |
| -ms.topic: how-to |
5 |
| -ms.date: 11/19/2021 |
| 3 | +description: Learn how to use Azure Lab Services for creating labs that you can use for running hackathons. |
| 4 | +services: lab-services |
| 5 | +ms.service: lab-services |
| 6 | +author: ntrogh |
| 7 | +ms.author: nicktrog |
| 8 | +ms.topic: conceptual |
| 9 | +ms.date: 05/22/2023 |
6 | 10 | ---
|
7 | 11 |
|
8 |
| -# Use Azure Lab Services for your next hackathon |
| 12 | +# Guidance for using Azure Lab Services for running a hackathon |
9 | 13 |
|
10 |
| -Azure Lab Services is designed to be lightweight and easy to use so that you can quickly spin up a new lab of virtual machines (VMs) for your hackathon. Use the following checklist to ensure that your hackathon goes as smoothly as possible. This checklist should be completed by your IT department or faculty who are responsible for creating and managing your hackathon lab. |
| 14 | +With Azure Lab Services, hackathon organizers can quickly create preconfigured cloud-based environments for running a hackathon with multiple participants. Each participant can use identical and isolated virtual machine (VM) for the hackathon. |
11 | 15 |
|
12 |
| -To use Lab Services for your hackathon, ensure that both lab plan and your lab are created at least a few days before the start of your hackathon. Also, follow the guidance below: |
| 16 | +Azure Lab Services is designed to be lightweight and easy to use so that you can quickly spin up a new lab of virtual machines (VMs) for your hackathon. This article provides guidance for configuring your labs in Azure Lab Services for optimally running a hackathon. |
| 17 | + |
| 18 | +Azure Lab Services uses Azure Role-Based Access (Azure RBAC) to manage access to Azure Lab Services. For more information, see the [Azure Lab Services built-in roles](./concept-lab-services-role-based-access-control.md). Using Azure RBAC lets you clearly separate roles and responsibilities for creating and managing labs across different teams and people in your organization. Depending on your organization structure and responsibilities, this guidance might affect different people, such as IT administrators or hackathon organizers. |
| 19 | + |
| 20 | +To use Lab Services for your hackathon, ensure that both lab plan and your lab are created at least a few days before the start of your hackathon. |
13 | 21 |
|
14 | 22 | ## Guidance
|
15 | 23 |
|
16 | 24 | - **Create the lab in a region or location that's closest to participants**.
|
17 | 25 |
|
18 |
| - To reduce latency, create your lab in a region that's closest to your hackathon participants. If your participants are located all over the world, you need to use your best judgment to create a lab that is centrally located. Or, split the hackathon to use multiple labs based on the locations where your participants are located. |
| 26 | + To reduce latency, create your lab in a region that's closest to your hackathon participants. If your participants are located all over the world, use your best judgment to create a lab that is centrally located. Alternately, use multiple labs based on the locations where your participants are located. |
| 27 | + |
19 | 28 | - **Choose a compute size best suited for usage needs**.
|
20 | 29 |
|
21 |
| - Generally, the larger the compute size, the faster the virtual machine will perform. However, to limit costs, you'll need to select the appropriate compute size based on your participants’ needs. See [VM sizing information in the administrator guide](administrator-guide.md#vm-sizing) for details on the available compute sizes. |
| 30 | + Generally, the larger the compute size, the faster the virtual machine performs. However, to limit costs, you might select the appropriate compute size based on your participants’ needs. See [VM sizing information in the administrator guide](administrator-guide.md#vm-sizing) for details on the available compute sizes. |
| 31 | + |
22 | 32 | - **Configure RDP\SSH for remote desktop connection to Linux VMs**.
|
23 | 33 |
|
24 |
| - If your hackathon uses Linux VMs, ensure that remote desktop is enabled so that your participants can use either RDP (remote desktop protocol) or SSH (secure shell) to connect to their VMs. This step is only required for Linux VMs and must be enabled when creating the lab. Also, for RDP, you may need to install and configure the RDP server and GUI packages on the template VM before publishing. For more information, see the [how-to guide on enabling remote desktop for Linux](how-to-enable-remote-desktop-linux.md). |
| 34 | + If your hackathon uses Linux VMs, ensure that remote desktop is enabled so that your participants can use either RDP (remote desktop protocol) or SSH (secure shell) to connect to their VMs. This step is only required for Linux VMs and must be enabled when creating the lab. Also, for RDP, you might need to install and configure the RDP server and GUI packages on the template VM before publishing. For more information, see the [how to enable remote desktop for Linux](how-to-enable-remote-desktop-linux.md). |
25 | 35 |
|
26 | 36 | - **Install and stop Windows updates**.
|
27 | 37 |
|
28 |
| - If you're using a Windows image, we recommend you install the latest Windows updates on the lab’s [template VM](how-to-create-manage-template.md) before you publish it to create labs’ VMs. It's for security purposes and to prevent participants from being disrupted during the hackathon to install updates, which can also cause their VMs to restart. You might also consider turning off Windows updates to prevent any future interruptions. See the [how-to guide on installing and configuring Windows updates](how-to-prepare-windows-template.md#install-and-configure-updates). |
29 |
| -- **Decide how students will back up their work**. |
| 38 | + If you're using a Windows image, we recommend you install the latest Windows updates on the lab’s [template VM](how-to-create-manage-template.md) before you publish the lab. Install the latest updates for security purposes, and to avoid that hackathon participants are disrupted during the hackathon to install updates, which can also cause their VMs to restart. You might also consider turning off Windows updates to prevent any future interruptions during the hackathon. See the [how-to guide on installing and configuring Windows updates](how-to-prepare-windows-template.md#install-and-configure-windows-updates). |
| 39 | + |
| 40 | +- **Decide how participants back up their work**. |
| 41 | + |
| 42 | + Hackathon participants are each assigned a virtual machine for the lifetime of the hackathon. Instead of saving their work directly to the virtual machine, participants can back up their work outside of the VM, which also enables them to access the data after the hackathon is over. For example, participants can save to OneDrive, GitHub, and so on. To use OneDrive, you may choose to configure it automatically for participants on their lab virtual machines. See the [how-to guide to install and configure OneDrive](how-to-prepare-windows-template.md#install-and-configure-onedrive). |
30 | 43 |
|
31 |
| - Students are each assigned a virtual machine for the lifetime of the hackathon. They can save their work directly to the machine, but it’s recommended that students back up their work so that they have access to it after the hackathon is over. For example, they should save to an external location, such as OneDrive, GitHub, and so on. To use OneDrive, you may choose to configure it automatically for students on their lab virtual machines. See the [how-to guide to install and configure OneDrive](how-to-prepare-windows-template.md#install-and-configure-onedrive). |
32 | 44 | - **Set VM capacity according to number of participants**.
|
33 | 45 |
|
34 |
| - Ensure that your lab’s virtual machine capacity is set based on the number of participants you expect at your hackathon. When you publish the template virtual machine, it can take several hours to create all of the machines in the lab. That's why we recommend that you do it well in advance to the start of the hackathon. For more information, see [Set lab capacity](how-to-manage-vm-pool.md#set-lab-capacity). |
| 46 | + Ensure that your lab virtual machine capacity is set based on the number of participants you expect at your hackathon. When you publish the template virtual machine, it can take several hours to create all of the lab virtual machines. It's recommended that you create the lab and lab VMs well in advance of the start of the hackathon. For more information, see [Set lab capacity](how-to-manage-vm-pool.md#set-lab-capacity). |
35 | 47 |
|
36 | 48 | - **Decide whether to restrict lab access**.
|
37 | 49 |
|
38 |
| - When adding users to the lab, there is a restrict access option that's enabled by default. This feature requires you to add all of your hackathon participants’ emails to the list before they can register and access the lab using the registration link. If you have a hackathon where you don’t know who the participants will be before the event, you can choose to disable the restrict access option, which allows anyone to register to the lab using the registration link. For more information, see the [how-to guide on adding users](how-to-configure-student-usage.md). |
| 50 | + By default, access to the lab is restricted. This feature requires you to add all of your hackathon participants’ emails to the list before they can register and access the lab using the registration link. If you have a hackathon where you don’t know the specific participants, you can choose to disable the restrict access option. In this case, anyone can register directly to the lab by using the registration link. For more information, see the [how-to guide on adding users](how-to-configure-student-usage.md). |
39 | 51 |
|
40 | 52 | - **Verify schedule, quota, and autoshutdown settings**.
|
41 | 53 |
|
42 |
| - Lab Services provides several cost controls to limit usage of VMs. However, if these settings are misconfigured, they can cause your lab’s virtual machines to unexpectedly shut down. To ensure that these settings are configured appropriately for your hackathon, verify the following settings: |
| 54 | + Azure Lab Services provides several cost controls to limit usage of VMs. However, if these settings are misconfigured, they can cause your lab’s virtual machines to shut down unexpectedly. To ensure that these settings are configured appropriately for your hackathon, verify the following settings: |
43 | 55 |
|
44 |
| - **Schedule**: A [schedule](how-to-create-schedules.md) allows you to automatically control when your labs’ machines are started and shut down. By default, no schedule is configured when you create a new lab. However, you should ensure that your lab’s schedule is set according to what makes sense for your hackathon. For example, if your hackathon starts on Saturday at 8:00 AM and ends on Sunday at 5:00 PM, create a schedule that automatically starts the machine at 7:30 AM on Saturday (about 30 minutes before the start of the hackathon) and shuts it down at 5:00 PM on Sunday. You may also decide not to use a schedule at all and rely on quota time. |
| 56 | + **Schedule**: A [schedule](how-to-create-schedules.md) allows you to automatically control when your labs’ machines are started and shut down. By default, no schedule is configured when you create a new lab. However, you should ensure that your lab’s schedule is set according to what makes sense for your hackathon. For example, if your hackathon starts on Saturday at 8:00 AM and ends on Sunday at 5:00 PM, create a schedule that automatically starts the machine at 7:30 AM on Saturday (about 30 minutes before the start of the hackathon) and shuts it down at 5:00 PM on Sunday. You might also decide not to use a schedule at all and rely on quota time. |
45 | 57 |
|
46 |
| - **Quota**: The [quota](how-to-configure-student-usage.md#set-quotas-for-users) controls the number of hours that participants will have access to a virtual machine outside of the scheduled hours. If the quota is reached while a participant is using it, the machine is automatically shut down and the participant won't be able to restart it unless the quota is increased. By default, when you create a lab, the quota is set to 10 hours. Again, you should be sure to set the quota so that it allows enough time for the hackathon, which is especially important if you haven't created a schedule. |
| 58 | + **Quota**: The [quota](how-to-configure-student-usage.md#set-quotas-for-users) controls the number of hours that participants have access to a lab virtual machine outside of the scheduled hours. If the quota is reached while a participant is using it, the machine is automatically shut down and the participant is unable to restart it, unless the quota is increased. By default, when you create a lab, the quota is set to 10 hours. Configure the quota to allow enough time for the duration of the hackathon, especially if you haven't created a schedule. |
47 | 59 |
|
48 |
| - **Autoshutdown**: When enabled, the [autoshutdown](how-to-enable-shutdown-disconnect.md) setting causes Windows virtual machines to automatically shut down after a certain period of time once a student has disconnected from their RDP session. By default, this setting is disabled. |
| 60 | + **Autoshutdown**: When enabled, the [autoshutdown](how-to-enable-shutdown-disconnect.md) setting causes Windows virtual machines to automatically shut down after a certain period of time once a participant has disconnected from their RDP session. By default, this setting is disabled. |
49 | 61 |
|
50 | 62 | - **Configure firewall settings to allow connections to lab VMs**.
|
51 | 63 |
|
52 |
| - Ensure that your school’s or organization’s firewall settings allow connecting to lab VMs using RDP\SSH. For more information, see the [how-to guide on configuring your network’s firewall settings](how-to-configure-firewall-settings.md). |
| 64 | + Ensure that the firewall settings of your organization, or the location where you're hosting the hackathon, allow connecting to lab VMs by using RDP or SSH. For more information, see the [how-to guide on configuring your network’s firewall settings](how-to-configure-firewall-settings.md). |
53 | 65 |
|
54 | 66 | - **Install RDP/SSH client on participants’ tablets, Macs, PCs, and so on**.
|
55 | 67 |
|
56 |
| - Hackathon participants must have an RDP and/or SSH client installed on their tablets or laptops that they'll use to connect to lab VMs. For more information about required software and how to connect to lab VMs, see [Connect to a lab VM](connect-virtual-machine.md). |
| 68 | + Hackathon participants must have an RDP and/or SSH client installed on their tablets or laptops to connect to lab VMs. For more information about required software and how to connect to lab VMs, see [Connect to a lab VM](connect-virtual-machine.md). |
57 | 69 |
|
58 | 70 | - **Verify lab virtual machines**.
|
59 | 71 |
|
60 |
| - Once you’ve published lab VMs, you should verify they're configured properly. You only need to do this verification for one of the participant’s lab virtual machines: |
| 72 | + Once you’ve published lab VMs, verify that they're configured properly. As all lab VMs are identical, you only need to do this verification for one of the lab VMs: |
61 | 73 |
|
62 |
| - 1. Connect using RDP and\or SSH. |
63 |
| - 2. Open each additional application and tool that you installed to customize the base virtual machine image. |
64 |
| - 3. Walk through a few basic scenarios that are representative of the activities that participants will do to ensure VM performance is adequate based on the selected compute size. |
| 74 | + 1. Connect to the lab VM by using RDP and\or SSH. |
| 75 | + 1. Open each application and tool that you installed to customize the base virtual machine image. |
| 76 | + 1. Walk through a few basic scenarios that are representative of the hackathon activities to ensure that the VM performance is adequate, based on the selected compute size. |
65 | 77 |
|
66 | 78 | ## On the day of hackathon
|
67 | 79 |
|
68 | 80 | This section outlines the steps to complete the day of your hackathon.
|
69 | 81 |
|
70 | 82 | 1. **Start lab VMs**.
|
71 | 83 |
|
72 |
| - Depending on your OS, your lab machine may take up to 30 minutes to start. As a result, it’s important to start machines before the hackathon starts so that your participants don’t have to wait. If you're using a schedule, ensure that the VMs are automatically started at least 30 minutes earlier as well. |
73 |
| -2. **Invite students to register and access their lab virtual machine**. |
| 84 | + Depending on your OS, your lab machine might take up to 30 minutes to start. As a result, it’s important to start machines before the hackathon starts so that your participants don’t have to wait. If you're using a schedule, ensure that the VMs are automatically started at least 30 minutes before the beginning of the hackathon. |
| 85 | + |
| 86 | +1. **Invite hackathon participants to register and access their lab virtual machine**. |
74 | 87 |
|
75 | 88 | Provide your participants with the following information so that participants can access their lab VMs.
|
76 | 89 |
|
77 | 90 | - The lab’s registration link. For more information, See [how-to guide on sending invitations to users](how-to-configure-student-usage.md#send-invitations-to-users).
|
78 |
| - - Credentials that should be used to connect to the machine. This step applies only if your lab has configured all VMs to use the same password. |
79 |
| - - Instructions to connect to their VM. For OS-specific instructions connection to a lab VM, see [Connect to a lab VM](connect-virtual-machine.md). |
| 91 | + - Credentials to use for connecting to the machine. This step only applies if the lab was configured with the same credentials for all lab VMs. |
| 92 | + - Instructions on how to connect to the lab VM. For OS-specific instructions, see [Connect to a lab VM](connect-virtual-machine.md). |
80 | 93 |
|
81 | 94 | ## Next steps
|
82 | 95 |
|
83 |
| -Start with creating a lab plan in labs by following instructions in the article: [Quickstart: Set up a lab plan with Azure Lab Services](quick-create-resources.md). |
| 96 | +- Get started by [creating a lab plan](quick-create-resources.md) |
0 commit comments