Rediger

Del via


Lab plan setup guide

Important

Azure Lab Services will be retired on June 28, 2027. For more information, see the retirement guide.

If you're an administrator, before you set up your Azure Lab Services environment, you first need to create a lab plan within your Azure subscription. A lab plan is associated one or more labs, and it takes only a few minutes to set up.

This guide includes three sections:

  • Prerequisites
  • Plan your lab plan settings
  • Set up your lab plan

Important

Azure Lab Services lab plans replace lab accounts. Learn how you can get started by creating a lab plan. For existing lab account customers, we recommend that you migrate from lab accounts to lab plans.

Prerequisites

The following sections outline what you need to do before you can set up a lab plan.

Access your Azure subscription

To create a lab plan, you need access to an Azure subscription that's already set up for your school. Your school might have one or more subscriptions. You use a subscription to manage billing and security for all your Azure resources and services, including lab plans. Azure subscriptions are usually managed by your IT department. For more information, see the "Subscription" section of Azure Lab Services - Administrator guide.

Estimate how many VMs and VM sizes you need

It's important to know how many virtual machines (VMs) and VM sizes your school lab requires.

For guidance on structuring your labs and images, see Moving from a physical lab to Azure Lab Services.

For additional guidance on how to structure labs, see the "Lab" section of Azure Lab Services - Administrator guide.

Understand subscription VM limits and regional VM capacity

After you've estimated the number of VMs and the VM sizes for your labs, you need to:

  • Ensure that your Azure subscription's capacity limit allows for the number of VMs and the VM size that you plan to use in your labs.
  • Create your lab plan within a region that has sufficient available VM capacity.

For more information, see VM subscription limits and regional capacity.

Decide how many lab plans to create

To get started quickly, create a single lab plan within its own resource group. Later, you can create additional lab plans and resource groups, as needed. For example, you might eventually have one lab plan and resource group per department as a way to clearly separate costs.

For more information about lab plans, resource groups, and separating costs, see:

Plan your lab plan settings

To plan your lab plan settings, consider the following questions.

Who should be the Owners and Contributors of the lab plan?

Your school's IT administrators ordinarily take on the Owner and Contributor roles for a lab plan. These roles are responsible for managing the policies that apply to all the labs in the lab plan. The person who creates the lab plan is automatically an Owner. You can add additional Owners and Contributors from the Microsoft Entra tenant that's associated with your subscription.

For more information about the lab plan Owner and Contributor roles, see RBAC roles.

If you have an Administrator or Lab Owner role in two or more Microsoft Entra tenants, you can switch between tenants in the Lab Services web portal (https://labs.azure.com) by selecting the control at the upper right, as shown in the following screenshot:

Screenshot of the control for switching between tenants in the Azure Lab Services portal.

Lab users see only a single list of the VMs that they have access to across Microsoft Entra tenants in Azure Lab Services.

Who will be allowed to create labs?

You may choose to have your IT team or faculty members create labs. To create labs, you then assign these people to the Lab Creator role within the lab plan. You ordinarily assign this role from the Microsoft Entra tenant that's associated with your school subscription. Whoever creates a lab is automatically assigned as the Owner of the lab.

For more information about the Lab Creator role, see RBAC roles.

Who will be allowed to own and manage labs?

You can also choose to have IT and faculty members own\manage labs without giving them the ability to create labs. In this case, users from your subscription's Microsoft Entra tenant are assigned either the Owner or Contributor for existing labs.

For more information about the lab Owner and Contributor roles, see RBAC roles.

Do you want to save images and share them across labs?

Azure Compute Gallery is a service that you can use for saving and sharing images. For classes that need to use the same image, Lab Creators can create the image and then export it to a compute gallery. After an image is exported to the compute gallery, it can be used to create new labs.

You might want to create your images in your physical environment and then import them to a compute gallery. For more information, see the blog post Import a custom image to a compute gallery.

If you decide to use the compute gallery service, you'll need to create or attach a compute gallery to your lab plan. You can postpone this decision for now, because a compute gallery can be attached to a lab plan at any time.

For more information, see:

Which images in Azure Marketplace will your labs use?

Azure Marketplace provides hundreds of images that you can enable so that Lab Creators can use them for creating their labs. Some images might include everything that a lab already needs. In other cases, you might use an image as a starting point, and then the Lab Creator can customize it by installing additional applications or tools.

If you don't know which images you need, you can come back later to enable them. The best way to see which images are available is to first create a lab plan. This gives you access so that you can review the list of available images and their contents.

For more information, see Specify the Azure Marketplace images that are available to Lab Creators.

Do the lab VMs need access to other Azure or on-premises resources?

When you set up a lab plan, you also can bring your own virtual network to your lab plan. Keep in mind that both your virtual network and the lab plan must be located in the same region. To decide whether you need to use a virtual network, consider the following scenarios:

  • Access to a license server

    When you use Azure Marketplace images, the cost of the operating system license is bundled into the pricing for lab services. However, you don't need to provide licenses for the operating system itself. For additional software and applications that are installed, you do need to provide a license, as appropriate. To access a license server:

    • You may choose to connect to an on-premises license server. Connecting to an on-premises license server requires additional setup.
    • Another option, which is faster to set up, is to create a license server that you host on an Azure VM. The Azure VM is located within a virtual network that you associated with your lab plan.
  • Access to other on-premises resources such as a file share or database

    You ordinarily create a virtual network to provide access to on-premises resources by using a site-to-site virtual network gateway. Setting up this type of environment will take additional time.

  • Access to other Azure resources that are located outside a virtual network

    If you need access to Azure resources that are not secured within a virtual network, you can access them through the public internet, without adding your own virtual network.

    For more information about virtual networks, see:

Set up your lab plan

After you've finished planning, you're ready to set up your lab plan.

  1. Create your lab plan. For instructions, see Create a lab plan.

    For information about naming conventions, see the "Naming" section of Azure Lab Services - Administrator guide.

  2. Add users to the Lab Creator role. For instructions, see Add users to the Lab Creator role.

  3. Connect to your virtual network. For instructions, see Connect to your virtual network in Azure Lab Services.

  4. Enable and review images. For instructions, see Specify which Azure Marketplace images are available to Lab Creators.

    To review the contents of each Azure Marketplace image, select the image name. For example, the following screenshot shows the details of the Ubuntu Data Science VM image:

    Screenshot of a list of images available for review in Azure Marketplace.

    If a compute gallery is attached to your lab plan, and you want to enable custom images to be shared by Lab Creators, complete similar steps as shown in the following screenshot:

    Screenshot of a list of enabled custom images in a shared image gallery.

Next steps

For more information about setting up and managing labs, see: