%3CLINGO-SUB%20id%3D%22lingo-sub-1968267%22%20slang%3D%22en-US%22%3E%5BNew%20feature%5D%20Auto-sync%20roster%20to%20a%20lab%20through%20AAD%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1968267%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%0A%3CP%3EYou%20can%20now%20sync%20the%20user%20list%20of%20a%20lab%20to%20an%20existing%20Azure%20Active%20Directory%20(AAD)%20group%20in%20%3CA%20href%3D%22https%3A%2F%2Flabs.azure.com!%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Flabs.azure.com!%3C%2FA%3E%26nbsp%3BUsers%20and%20VMs%20are%20automatically%20added%2Fdeleted%20based%20on%20the%20AAD%20group%20membership.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EBut%20first%2C%20what%20is%20an%20AAD%20group%3F%3C%2FSTRONG%3E%20To%20put%20it%20simply%2C%20it%E2%80%99s%20a%20group%20that%20can%20be%20created%20within%20your%20organization%E2%80%99s%20Azure%20Active%20Directory%20to%20manage%20access%20to%20organizational%20resources%20and%20cloud-based%20apps.%20To%20learn%20more%2C%20see%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Factive-directory%2Ffundamentals%2Factive-directory-manage-groups%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%20on%20AAD%20groups%3C%2FA%3E.%20If%20your%20organization%20uses%20Microsoft%20Office%20365%20or%20Azure%20services%2C%20your%20organization%20will%20already%20have%20admins%20who%20manage%20your%20Azure%20Active%20Directory.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EHow%20to%20add%20a%20lab%20to%20an%20AAD%20group%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EGo%20to%20the%20Users%20tab%20inside%20a%20lab%2C%20and%20make%20sure%20the%20user%20list%20is%20empty.%20If%20there%20are%20existing%20users%20inside%20a%20lab%20that%20you%20added%20manually%20or%20through%20importing%20a%20CSV%20file%2C%20the%20option%20to%20sync%20the%20lab%20to%20an%20existing%20group%20will%20not%20appear.%3C%2FLI%3E%0A%3CLI%3EClick%20on%20the%20%E2%80%9CSync%20from%20group%E2%80%9D%20button.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22add-users-sync-group.png%22%20style%3D%22width%3A%20636px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F238729iCEAFB2D02183A727%2Fimage-dimensions%2F636x279%3Fv%3D1.0%22%20width%3D%22636%22%20height%3D%22279%22%20role%3D%22button%22%20title%3D%22add-users-sync-group.png%22%20alt%3D%22add-users-sync-group.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EYou%20will%20be%20prompted%20to%20pick%20an%20existing%20AAD%20group%20to%20sync%20your%20lab%20to.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-60px%22%3E%3CSTRONG%3ENOTE%3A%20If%20you%20don't%20see%20an%20Azure%20AD%20group%20in%20the%20list%2C%20it%20could%20be%20because%20of%20the%20following%20reasons%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20class%3D%22lia-indent-padding-left-60px%22%3EIf%20you%20are%20a%20guest%20user%20for%20an%20Azure%20Active%20Directory%20(usually%20if%20you're%20outside%20the%20organization%20that%20owns%20the%20Azure%20AD)%2C%20and%20you%20are%20not%20able%20to%20to%20search%20for%20groups%20inside%20the%20Azure%20AD.%20In%20this%20case%2C%20you%20won%E2%80%99t%20be%20able%20to%20add%20an%20Azure%20AD%20group%20to%20the%20lab.%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-indent-padding-left-60px%22%3EAzure%20AD%20groups%20created%20through%20Teams%20do%20not%20show%20up%20in%20this%20list.%20You%20can%20add%20the%20Azure%20Lab%20Services%20app%20inside%20Teams%20to%20create%20and%20manage%20labs%20directly%20from%20within%20it.%20See%20more%20information%20about%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Flab-services%2Fhow-to-manage-user-lists-within-teams%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Emanaging%20a%20lab%E2%80%99s%20user%20list%20from%20within%20Teams%3C%2FA%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EOnce%20you%20picked%20the%20AAD%20group%20to%20sync%20your%20lab%20to%2C%20click%20Add.%3C%2FLI%3E%0A%3CLI%3EOnce%20a%20lab%20is%20synced%2C%20it%20will%20pull%20everyone%20inside%20the%20AAD%20group%20into%20the%20lab%20as%20users%2C%20and%20you%20will%20see%20the%20user%20list%20updated.%20Only%20the%20people%20in%20this%20AAD%20group%20will%20have%20access%20to%20your%20lab.%20The%20user%20list%20will%20refresh%20every%2024%20hours%20to%20match%20the%20latest%20membership%20of%20the%20AAD%20group.%20You%20can%20also%20click%20on%20the%20Sync%20button%20in%20the%20Users%20tab%20to%20manually%20sync%20to%20the%20latest%20changes%20in%20the%20AAD%20group.%3C%2FLI%3E%0A%3CLI%3EInvite%20the%20users%20to%20your%20lab%20by%20clicking%20on%20the%20Invite%20All%20button%2C%20which%20will%20send%20an%20email%20to%20all%20users%20with%20the%20registration%20link%20to%20the%20lab.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAutomatic%20management%20of%20virtual%20machines%20based%20on%20changes%20to%20the%20AAD%20group%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EOnce%20the%20lab%20is%20synced%20to%20an%20AAD%20group%2C%20the%20number%20of%20virtual%20machines%20in%20the%20lab%20will%20automatically%20match%20the%20number%20of%20users%20in%20the%20group.%20You%20will%20no%20longer%20be%20able%20to%20manually%20update%20the%20lab%20capacity.%20When%20a%20user%20is%20added%20to%20the%20AAD%20group%2C%20a%20lab%20will%20automatically%20add%20a%20virtual%20machine%20for%20that%20user.%20When%20a%20user%20is%20deleted%20from%20the%20AAD%20group%2C%20a%20lab%20will%20automatically%20delete%20the%20user%E2%80%99s%20virtual%20machine%20from%20the%20lab.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20go%20try%20this%20out%20and%20let%20us%20know%20if%20you%20have%20any%20questions%20or%20feedback!%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Flab-services%2Fhow-to-configure-student-usage%23sync-users-with-azure-ad-group%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ELink%20to%20the%20documentation%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%2C%3C%2FP%3E%0A%3CP%3EAzure%20Lab%20Services%20team%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1968267%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20now%20sync%20the%20user%20list%20of%20a%20lab%20to%20an%20existing%20AAD%20group.%20Users%20and%20VMs%20are%20automatically%20added%2Fdeleted%20based%20on%20the%20AAD%20group%20membership.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1968267%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELab%20Services%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1972872%22%20slang%3D%22en-US%22%3ERe%3A%20%5BNew%20feature%5D%20Auto-sync%20roster%20to%20a%20lab%20through%20AAD%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1972872%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20new%20addition.%20Are%20all%20group%20types%2C%20including%20Dynamic%2C%20supported%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1973812%22%20slang%3D%22en-US%22%3ERe%3A%20%5BNew%20feature%5D%20Auto-sync%20roster%20to%20a%20lab%20through%20AAD%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1973812%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F626861%22%20target%3D%22_blank%22%3E%40SvenAelterman%3C%2FA%3E%26nbsp%3Bwe%20do%20support%20all%20group%20types%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1980743%22%20slang%3D%22en-US%22%3ERe%3A%20%5BNew%20feature%5D%20Auto-sync%20roster%20to%20a%20lab%20through%20AAD%20groups%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1980743%22%20slang%3D%22en-US%22%3E%3CP%3ENice%20feature%20add!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E(FYI%20-%20The%20link%20in%20the%20first%20sentence%20-%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Flabs.azure.com%2521%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Flabs.azure.com!%3C%2FA%3E%26nbsp%3B-%20fails%20because%20the%20exclamation%20point%20is%20included.)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Hi everyone,

You can now sync the user list of a lab to an existing Azure Active Directory (AAD) group in https://labs.azure.com! Users and VMs are automatically added/deleted based on the AAD group membership. 

 

But first, what is an AAD group? To put it simply, it’s a group that can be created within your organization’s Azure Active Directory to manage access to organizational resources and cloud-based apps. To learn more, see the documentation on AAD groups. If your organization uses Microsoft Office 365 or Azure services, your organization will already have admins who manage your Azure Active Directory.

 

How to add a lab to an AAD group

  1. Go to the Users tab inside a lab, and make sure the user list is empty. If there are existing users inside a lab that you added manually or through importing a CSV file, the option to sync the lab to an existing group will not appear.
  2. Click on the “Sync from group” button.

add-users-sync-group.png

  1. You will be prompted to pick an existing AAD group to sync your lab to.

NOTE: If you don't see an Azure AD group in the list, it could be because of the following reasons:

  • If you are a guest user for an Azure Active Directory (usually if you're outside the organization that owns the Azure AD), and you are not able to to search for groups inside the Azure AD. In this case, you won’t be able to add an Azure AD group to the lab.
  • Azure AD groups created through Teams do not show up in this list. You can add the Azure Lab Services app inside Teams to create and manage labs directly from within it. See more information about managing a lab’s user list from within Teams.

 

  1. Once you picked the AAD group to sync your lab to, click Add.
  2. Once a lab is synced, it will pull everyone inside the AAD group into the lab as users, and you will see the user list updated. Only the people in this AAD group will have access to your lab. The user list will refresh every 24 hours to match the latest membership of the AAD group. You can also click on the Sync button in the Users tab to manually sync to the latest changes in the AAD group.
  3. Invite the users to your lab by clicking on the Invite All button, which will send an email to all users with the registration link to the lab.

 

Automatic management of virtual machines based on changes to the AAD group

Once the lab is synced to an AAD group, the number of virtual machines in the lab will automatically match the number of users in the group. You will no longer be able to manually update the lab capacity. When a user is added to the AAD group, a lab will automatically add a virtual machine for that user. When a user is deleted from the AAD group, a lab will automatically delete the user’s virtual machine from the lab.

 

Please go try this out and let us know if you have any questions or feedback! 

Link to the documentation

 

Thank you,

Azure Lab Services team

 

 

 

4 Comments
Microsoft

Great new addition. Are all group types, including Dynamic, supported?

Microsoft

hi @SvenAelterman we do support all group types :) 

Occasional Visitor

Nice feature add! 

 

(FYI - The link in the first sentence - https://labs.azure.com! - fails because the exclamation point is included.)

Microsoft

@Pat_Washburn I have fixed the link in the first sentence.  Thanks for letting us know.