Blog Post

Azure Lab Services Blog
3 MIN READ

Update to Azure Lab Services

planetmaher's avatar
planetmaher
Icon for Microsoft rankMicrosoft
Aug 08, 2022

The product team has been busy working on fundamental improvements for the service to boost performance, reliability, and scalability. It has been a multi-quarter effort, and we’re excited to announce all the great changes now available! The latest update is a generally available which is intended for running production labs with real students\classes and is backed by the service SLA We have a bunch of exciting new features, so let’s walk through all the goodness one by one.

 

Lab plans replace lab accounts. The lab account concept is being replaced with a new concept called a lab plan. Although similar in functionality, there are some fundamental differences between the two concepts. The lab plan serves as a collection of settings that apply to the labs created from it. Also, labs are now an Azure resource and a sibling resource to lab plans.

 

Canvas Integration. Now, instructors don’t have to leave Canvas to create their labs. Students can connect to a virtual machine from inside their course.

 

Per customer assigned capacity. No more sharing capacity with others. If your organization has requested more quota, Azure Lab Services will save it just for you.

 

Advanced networking. Virtual network peering is replaced by virtual network injection. In your own subscription, create a virtual network in the same region as the lab plan and delegate a subnet to Azure Lab Services. Lab plans with advanced networking (i.e., vnet injection) will cause labs to create VMs attached to your virtual network.  Checkout our tutorial at Tutorial: Set up lab to lab communication with advanced networking.  

 

Improved auto-shutdown. Auto-shutdown settings are now available for all operating systems!

 

More built-in roles. Previously, there was only the Lab Creator built-in role. We’ve added a few more roles including Lab Operator and Lab Assistant. Lab operators can manage existing labs, but not create new ones. Lab assistants can only help students by starting, stopping, or redeploying virtual machines. Lab assistants can't adjust quota or set schedules.

 

Improved cost tracking in Azure Cost Management. Lab virtual machines are now the cost unit tracked in Azure Cost Management. Tags for lab plan ID and lab name are automatically added to each cost entry. If you want to track the cost of a single lab, group the lab VM cost entries together by the lab name tag. Custom tags on labs will also propagate to Azure Cost Management entries to allow further cost analysis.

 

Updates to lab owner experience. Now you can choose to skip the template creation process when creating a new lab if you already have an image ready to use. We’ve also added the ability to add a non-admin user to lab VMs.

 

Updates to student experience. Students can now redeploy their VM without losing data. We also updated the registration experience for some scenarios. A lab VM is assigned to students automatically if the lab is set up to use Azure AD group sync, Teams, or Canvas.

SDKs. The Azure Lab Services PowerShell is now be integrated with the Az PowerShell module. Also, check out the .NET SDK and Python SDKs.

 

Give it a try!

 

In this release, there are a few known issues:

  • When using virtual network injection, use caution in making changes to the virtual network and subnet. Changes may cause the lab VMs to stop working. For example, deleting your virtual network will cause all the lab VMs to stop working. We plan to improve this experience in the future, but for now make sure to delete labs before deleting networks.
  • Moving lab plan and lab resources from one Azure region to another isn't supported.
  • Azure Compute resource provider must be registered before Azure Lab Services can create and attach an Azure Compute Gallery resource.

 

We hope you enjoy all the new features! Look for more in-depth blog posts coming soon. For now, check out our updated documentation at https://docs.microsoft.com/azure/lab-services.  If you are interested in working with the Azure Lab Services Customer Success team to provide feedback, please fill out our engagement form.   

 

Thanks,

Azure Lab Services Team

Updated Jun 20, 2024
Version 2.0

5 Comments

  • Great question regarding vnets/subnets in a different subscription.  This should work based on the underlying implementation.  When creating a lab plan via the API, we ensure that:

    - The subnet is delegated to Azure Lab Services, and

    - The user creating the lab plan has "Subnet/Join" permission on the subnet

     

    The portal only shows vnets/subnets in the same region as the Lab Plan, that the user has access to and that are delegated to Azure Lab Services.

     

    You should be able to create a lab plan connected to a subnet in another subscription (as long as it's in the same AAD tenant and as long as the user has subnet/join permission to the subnet).  You would need to do this via an ARM template or PowerShell script.

     

    Thanks!

    ~Pete [msft]

     

  • Thanks for your comment.

     

    That's too bad, our vnets/subnets were managed in a separate subscription by our network team. Now we have to mix them with the subscriptions containing the azure labs.

  • masih-shek's avatar
    masih-shek
    Copper Contributor

    Bart Vermeersch 

     

    Hi!

     

    I believe the subnet must be in your subscription. When you are creating the lab and want to use the advanced networking, the service only shows you A) the networks that are in the same region as the lab plan and B) the subnets that are Delegated to LabServices.

     

    However, if you use other services to connect the two networks (peering for example), then I think you can access the labs from outside your subscription.  

     

    Regards,

    Masih

  • A question regarding the vnet injection: should the vnet be in the same subscription as the azure labs? According to the documentation the only requirement is identical regions. 

  • Masih17's avatar
    Masih17
    Copper Contributor

    Hi, 

     

    It's lovely to see that your team managed to make this service available for all before the Autumn term.

     

    Huge thanks to the team!

     

    Regards,

    Masih