%3CLINGO-SUB%20id%3D%22lingo-sub-1754407%22%20slang%3D%22en-US%22%3EConfiguration%20Manager%20%2B%20Azure%20Lab%20Services%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1754407%22%20slang%3D%22en-US%22%3E%3CP%3EA%20question%20that%20we%20get%20asked%20by%20IT%20departments%20is%20whether%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Funderstand%2Fintroduction%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EConfiguration%20Manager%3C%2FA%3E%20can%20be%20used%20to%20%3CSPAN%3Eset%3C%2FSPAN%3E%3CSPAN%3E%20up%20your%20lab%3C%2FSPAN%3E.%26nbsp%3B%20The%20answer%20is%20yes!%26nbsp%3B%20In%20this%20blog%20post%2C%20we%20will%20show%20how%20you%20can%20use%20Microsoft%20Endpoint%20Manager%20Configuration%20Manager%3CSPAN%3E%2C%3C%2FSPAN%3E%20which%20is%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Funderstand%2Fwhat-happened-to-sccm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Enew%20brand%20name%20for%20SCCM%3C%2FA%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%20%3CSPAN%3Eto%20automatically%20deploy%20software%20to%20a%20lab%E2%80%99s%20template%20VM.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CSTRONG%3EIMPORTANT%3A%26nbsp%3B%3C%2FSTRONG%3EIt's%20important%20that%20when%20you%20move%20from%20a%20physical%20lab%20environment%20to%20Azure%20Labs%2C%20that%20you%20also%20restructure%20images%20instead%20of%20reusing%20images%20from%20your%20physical%20environment.%26nbsp%3B%20Refer%20to%20the%20following%20blog%20post%20that%20has%20more%20details%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-lab-services%2Fmoving-from-a-physical-lab-to-azure-lab-services%2Fba-p%2F1654931%22%20target%3D%22_self%22%3EMoving%20from%20a%20Physical%20Lab%20to%20Azure%20Lab%20Services%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ConfigMgrImage.png%22%20style%3D%22width%3A%20555px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224837i27703D4F8195ED47%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ConfigMgrImage.png%22%20alt%3D%22ConfigMgrImage.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1239950858%22%20id%3D%22toc-hId--1239148393%22%3ERecommended%20Approach%3C%2FH2%3E%0A%3CP%3E%3CSPAN%3ETo%20use%3C%2FSPAN%3E%3CSPAN%3E%20Configuration%20Manager%20with%20Azure%20Lab%20Services%2C%20%3C%2FSPAN%3E%3CSPAN%3Eh%3C%2FSPAN%3E%3CSPAN%3Eere%20is%20the%20%3C%2FSPAN%3Eapproach%20that%20we%20recommend%3CSPAN%3E%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-weight%3A%20normal%20!msorm%3B%22%3E%3CSTRONG%3E1.%20Start%20with%20a%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3E%20Windows%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-weight%3A%20normal%20!msorm%3B%22%3Emarketplace%20image%20when%20you%20create%20your%20lab.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ECustom%20images%3C%2FSPAN%3E%3CSPAN%3E%20that%20%3C%2FSPAN%3E%3CSPAN%3Eare%20%3C%2FSPAN%3E%3CSPAN%3Ecreated%20by%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flab-services%2Fhow-to-use-shared-image-gallery%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eexporting%20from%20a%20lab%E2%80%99s%20template%20VM%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E%20are%20specialized%20images%3C%2FSPAN%3E%3CSPAN%3E%20which%20means%20that%20SysPrep%20has%20%3CEM%3Enot%3C%2FEM%3E%20been%20run%20on%20the%20image%3C%2FSPAN%3E%3CSPAN%3E.%26nbsp%3B%20As%20a%20result%2C%20%3C%2FSPAN%3E%3CSPAN%3Eall%3C%2FSPAN%3E%3CSPAN%3E%20VMs%20that%20are%20created%20from%20%3C%2FSPAN%3E%3CSPAN%3Ea%20custom%3C%2FSPAN%3E%3CSPAN%3E%20image%20will%20have%20the%20same%3C%2FSPAN%3E%20%3CSPAN%3EWindows%3C%2FSPAN%3E%3CSPAN%3E%20SID%3C%2FSPAN%3E%3CSPAN%3E.%26nbsp%3B%20Configuration%20Manager%20%3C%2FSPAN%3E%3CSPAN%3Erequires%20that%20each%20VM%20have%20a%20unique%20SID%20for%20%3C%2FSPAN%3E%3CSPAN%3Eits%20features%20to%20work%20properly.%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3ETo%20ensure%20that%20your%20template%20VM%20has%20a%20unique%20%3C%2FSPAN%3E%3CSPAN%3ESID%2C%20we%20recommend%20that%20you%20start%20with%20a%20Windows%20image%20from%20the%20marketplace%3C%2FSPAN%3E%3CSPAN%3E%20when%20you%20create%20the%20%3C%2FSPAN%3E%3CSPAN%3Elab.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E2.%20%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-weight%3A%20normal%20!msorm%3B%22%3E%3CSTRONG%3EUse%20Configuration%20Manager%20to%20%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3Edeploy%20software%20to%20the%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-weight%3A%20normal%20!msorm%3B%22%3E%20template%20VM.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EYou%20should%20use%20Configuration%20Manage%3C%2FSPAN%3E%3CSPAN%3Er%3C%2FSPAN%3E%3CSPAN%3E%20to%20deploy%20software%20to%20the%20template%20VM%3C%2FSPAN%3E%3CSPAN%3E%20%E2%80%93%20%3C%2FSPAN%3E%3CEM%3E%3CSPAN%3Enot%3C%2FSPAN%3E%3C%2FEM%3E%20%3CSPAN%3Eto%20%3C%2FSPAN%3E%3CSPAN%3Edeploy%3C%2FSPAN%3E%3CSPAN%3E%20software%20%3C%2FSPAN%3E%3CSPAN%3Edirectly%20to%20the%20student%20VMs.%26nbsp%3B%20There%20are%20a%20couple%20of%20reasons%20for%20this%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3EThe%20template%20VM%20should%20serve%20as%20the%20%E2%80%98master%E2%80%99%20%3C%2FSPAN%3E%3CSPAN%3Eimage%20for%20all%20of%20the%20student%20VMs%20in%20the%20lab.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EWhen%20the%20student%20VMs%20are%20publi%3C%2FSPAN%3E%3CSPAN%3Eshed%2C%20%3C%2FSPAN%3E%3CSPAN%3Ethey%20all%20have%20the%20same%20SID%20as%20the%20template%20VM%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3EConfiguration%20Manager%E2%80%99s%20features%20won%E2%80%99t%20work%20properly%20because%20the%20student%20VMs%20do%20%3CEM%3Enot%3C%2FEM%3E%20have%20unique%20%3C%2FSPAN%3E%3CSPAN%3ESIDs.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-1247561975%22%20id%3D%22toc-hId-1248364440%22%3E%3CSPAN%3EPrerequisites%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%3EThese%20steps%20assume%20the%20following%20prerequisites%20have%20been%20configured%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSPAN%3EYou%20already%20have%20a%20Configuration%20Manager%20site%20server%20installed%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EYou%20have%20a%20Lab%20Account%20that%20is%20peered%20with%20a%20Virtual%20Network%20(VNet)%20that%20has%20access%20to%20your%20Configuration%20Manager%20site%20server.%26nbsp%3B%20By%20peering%20your%20Lab%20Account%2C%20this%20will%20enable%20its%20lab%20VMs%20to%20communicate%20with%20the%20site%20server.%26nbsp%3B%20More%20information%20on%20Lab%20Account%20creation%20and%20VNet%20peering%20can%20be%20found%20in%20this%20article%3A%20%3C%2FSPAN%3E%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flab-services%2Ftutorial-setup-lab-account%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3ESet%20up%20a%20lab%20account%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flab-services%2Fhow-to-connect-peer-virtual-network%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EConnect%20your%20lab%E2%80%99s%20network%20with%20a%20peer%20virtual%20network%3C%2FSPAN%3E%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSTRONG%3E%3CSPAN%3EIMPORTANT%3A%20%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3EThe%20lab%20account%20must%20be%20peered%20to%20the%20VNet%20%3CSTRONG%3Ebefore%3C%2FSTRONG%3E%20the%20lab%20is%20created.%26nbsp%3B%20You%20may%20also%20need%20to%20ensure%20that%20required%20ports%20are%20enabled%20within%20your%20VNet%20and%5Cor%20on-premise%20network.%26nbsp%3B%20For%20example%2C%20you%20need%20to%20allow%20HTTP%5CHTTPS%20communication%20between%20your%20lab%20VMs%20and%20the%20Configure%20Manager%20site%20server.%26nbsp%3B%20Refer%20to%20the%20following%20link%20for%20details%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Fplan-design%2Fhierarchy%2Fports%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3EPorts%20used%20in%20Configuration%20Manager%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--559892488%22%20id%3D%22toc-hId--559090023%22%3ELab%20Setup%3C%2FH2%3E%0A%3CP%3ELet%E2%80%99s%20look%20at%20the%20steps%20to%20%3CSPAN%3Eset%20up%20your%20lab%20to%20use%20Configuration%20Manager%20to%20deploy%20software%20to%20the%20template%20VM.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E1.%20Create%20lab%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flab-services%2Ftutorial-setup-classroom-lab%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ECreate%20a%20new%20lab%3C%2FA%3E%20using%20a%20Windows%20%3CSPAN%3Emarketplace%20image%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%3E2.%20Install%20%3C%2FSPAN%3E%3CSPAN%3Ethe%20Configuration%20Manager%20client%3C%2FSPAN%3E%3CSPAN%3E%20onto%20the%20template%20VM%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EYou%20have%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Fclients%2Fdeploy%2Fplan%2Fclient-installation-methods%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eseveral%20options%20for%20installing%20Configuration%20Manager%E2%80%99s%20client%3C%2FA%3E%3C%2FSPAN%3E%20%3CSPAN%3Eonto%20the%20template%20VM%3C%2FSPAN%3E%3CSPAN%3E.%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3EThe%20%3C%2FSPAN%3E%3CSPAN%3Esimplest%3C%2FSPAN%3E%3CSPAN%3E%20option%20is%20to%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Fclients%2Fdeploy%2Fplan%2Fclient-installation-methods%23manual-installation%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Emanually%20install%20Configuration%20Manager%E2%80%99s%20client%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E.%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3EOnce%20the%20template%20VM%20ha%3C%2FSPAN%3E%3CSPAN%3Es%20the%20client%20installed%20and%20is%20assigned%20to%20a%20site%2C%20you%20%3C%2FSPAN%3E%3CSPAN%3Emay%3C%2FSPAN%3E%3CSPAN%3E%20need%20to%20manually%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Fclients%2Fmanage%2Fmanage-clients%23approve%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eapprove%20the%20template%20VM%3C%2FA%3E%3C%2FSPAN%3E%20%3CSPAN%3Ein%20Configuration%20Manager%E2%80%99s%20console.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ConfigMgrConsole.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F224839i57D708C0617D90DA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ConfigMgrConsole.png%22%20alt%3D%22ConfigMgrConsole.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E3.%26nbsp%3B%3C%2FSTRONG%3E%3CSTRONG%3E%3CSPAN%3EDeploy%20software%20applications%20using%20Configuration%20Manager%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EOnce%20the%3C%2FSPAN%3E%3CSPAN%3E%20template%20VM%20is%20%3C%2FSPAN%3E%3CSPAN%3Eapproved%20in%20Configuration%20Manage%3C%2FSPAN%3E%3CSPAN%3Er%2C%20%3C%2FSPAN%3E%3CSPAN%3Eyou%20can%20use%20Configuration%20Manager%20to%20deploy%20software%20applications%20onto%20the%20template%20VM.%26nbsp%3B%20Read%20the%20following%20instructions%20for%20details%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fapps%2Fdeploy-use%2Fdeploy-applications%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDeploy%20applications%20with%20Configuration%20Manager%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%3E4.%20Uninstall%20Configuration%20Manager%E2%80%99s%20client%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EBefore%20you%20publish%20t%3C%2FSPAN%3E%3CSPAN%3Ehe%20template%20VM%2C%20you%20should%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Fclients%2Fmanage%2Fmanage-clients%23BKMK_UninstalClient%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Euninstall%20Configuration%20Manager%E2%80%99s%20client%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E.%26nbsp%3B%20Otherwise%2C%20if%20you%20leave%20the%20Configuration%20Manager%20client%20installed%3C%2FSPAN%3E%3CSPAN%3E%20when%20you%20publish%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%3E%20this%3C%2FSPAN%3E%3CSPAN%3E%20will%20potentially%20cause%20%3C%2FSPAN%3E%3CSPAN%3Enegative%3C%2FSPAN%3E%3CSPAN%3E%20side-effects%3C%2FSPAN%3E%3CSPAN%3E%20because%20the%20student%20VMs%20will%20be%20assigned%3C%2FSPAN%3E%3CSPAN%3E%20to%3C%2FSPAN%3E%3CSPAN%3E%20a%20site%20yet%20will%20have%20%3C%2FSPAN%3E%3CSPAN%3Enon-unique%3C%2FSPAN%3E%3CSPAN%3E%20SIDs.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%3E5.%20Publish%20the%20template%20VM%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFinally%2C%20you%20can%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Flab-services%2Fhow-to-create-manage-template%23publish-the-template-vm%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Epublish%20the%20template%20VM%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E%20as%20you%20normally%20would%20to%20create%20the%20student%20VMs.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1927620345%22%20id%3D%22toc-hId-1928422810%22%3E%3CSPAN%3EA%20Few%20%3C%2FSPAN%3E%3CSPAN%3EConsiderations%20with%20Active%20Directory%20Domain%20Joining%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%3EIn%20addition%20to%20using%20Configuration%20%3C%2FSPAN%3E%3CSPAN%3EManager%20to%20set%20up%20your%20%3C%2FSPAN%3E%3CSPAN%3Etemplate%3C%2FSPAN%3E%3CSPAN%3E%20VM%2C%20you%20may%20also%20be%20planning%20to%20join%20your%20student%20VMs%20to%20your%20AD%20domain%20as%20shown%20in%20a%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-lab-services%2Fusing-powershell-to-domain-join-windows-10-azure-lab-service-vms%2Fba-p%2F1565688%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3Eprevious%20blog%20post%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E.%26nbsp%3B%20There%20are%20a%20few%20things%20to%20note%20if%20you%20are%20planning%20to%20do%20%3CSPAN%20style%3D%22font-style%3A%20normal%20!msorm%3B%22%3E%3CEM%3Eboth%3C%2FEM%3E%3C%2FSPAN%3E%20in%20your%20lab%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFir%3C%2FSPAN%3E%3CSPAN%3Est%2C%20w%3C%2FSPAN%3E%3CSPAN%3Ehen%3C%2FSPAN%3E%3CSPAN%3E%20you%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3ED%3C%2FSPAN%3E%3CSPAN%3Eomain%20join%20your%20student%20VM%3C%2FSPAN%3E%3CSPAN%3Es%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EAnd%20%3C%2FSPAN%3E%3CSPAN%3Eyou%20use%20Configuration%20Manager%E2%80%99s%20AD%20discovery%20methods%20to%20automatically%20discover%20client%20computers%20in%20your%20domain%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%3EYou%20will%20likely%3C%2FSPAN%3E%3CSPAN%3E%20see%20your%20student%20VMs%20listed%20in%20Configuration%20Manager%E2%80%99s%20console.%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3EHowever%2C%20you%20should%20%3CEM%3Enot%3C%2FEM%3E%3C%2FSPAN%3E%20%3CSPAN%3Euse%20Configuration%20Manager%20to%20manage%20%3C%2FSPAN%3E%3CSPAN%3Ethe%20student%20VMs%3C%2FSPAN%3E%3CSPAN%3E%20due%20to%20the%20reasons%20already%20mentioned%20in%20this%20%3C%2FSPAN%3E%3CSPAN%3Epost%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ESecondly%2C%20y%3C%2FSPAN%3E%3CSPAN%3Eou%20may%20%3C%2FSPAN%3E%3CSPAN%3Echoose%3C%2FSPAN%3E%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Fclients%2Fdeploy%2Fplan%2Fclient-installation-methods%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eother%20options%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E%20for%20installing%20the%20%3C%2FSPAN%3E%3CSPAN%3EConfiguration%20Manager%20%3C%2FSPAN%3E%3CSPAN%3Eclient%20on%20the%20template%20VM%2C%20such%20as%20a%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmem%2Fconfigmgr%2Fcore%2Fclients%2Fdeploy%2Fdeploy-clients-to-windows-computers%23BKMK_ClientPush%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eclient%20push%20installation%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E%2C%20where%20you%20also%20need%20to%20use%20AD%20discovery.%26nbsp%3B%20%3C%2FSPAN%3E%3CSPAN%3EHere%20%3C%2FSPAN%3E%3CSPAN%3Eare%20%3C%2FSPAN%3E%3CSPAN%3Ea%20few%20helpful%20tips%3C%2FSPAN%3E%3CSPAN%3E%20for%20%3C%2FSPAN%3E%3CSPAN%3Eusing%20AD%20discovery%3C%2FSPAN%3E%3CSPAN%3E%20to%20find%20your%20lab%E2%80%99s%20template%20VM%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3EY%3C%2FSPAN%3E%3CSPAN%3Eou%20will%20need%20to%20manually%20join%20the%20template%20VM%20to%20y%3C%2FSPAN%3E%3CSPAN%3Eour%20domain.%26nbsp%3B%20%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EAfter%20you%E2%80%99ve%20finished%20%3C%2FSPAN%3E%3CSPAN%3Einstalling%20the%20Configuration%20Manager%20client%20and%20%3C%2FSPAN%3E%3CSPAN%3Edeploying%20applications%20to%20the%20template%20VM%2C%20then%20make%20sure%20that%20you%20%3CEM%3Eremove%3C%2FEM%3E%20the%20template%20VM%20from%20the%20domain.%26nbsp%3B%20Otherwise%2C%20if%20the%20template%20VM%20remains%20joined%20to%20the%20domain%2C%20this%20%3C%2FSPAN%3E%3CSPAN%3Ewill%20cause%20an%3C%2FSPAN%3E%3CSPAN%3E%20issue%20later%20when%20you%20use%20the%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-lab-services%2Fusing-powershell-to-domain-join-windows-10-azure-lab-service-vms%2Fba-p%2F1565688%22%20target%3D%22_self%22%3Esteps%20for%20joining%20student%20VMs%20to%20the%20domain%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-120165882%22%20id%3D%22toc-hId-120968347%22%3E%3CSPAN%3EWrap%20Up%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3E%3CSPAN%3EFor%20IT%20departments%20that%20are%20already%20using%20Configuration%20Manager%20for%20managing%20devices%2C%20we%20hope%20that%20you%20find%20this%20guidance%20useful%20for%20also%20using%20Configuration%20Manager%20to%20prepare%20your%20lab's%20template%20VM.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1754407%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELab%20Services%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

A question that we get asked by IT departments is whether Configuration Manager can be used to set up your lab.  The answer is yes!  In this blog post, we will show how you can use Microsoft Endpoint Manager Configuration Manager, which is the new brand name for SCCM, to automatically deploy software to a lab’s template VM.

 

IMPORTANT: It's important that when you move from a physical lab environment to Azure Labs, that you also restructure images instead of reusing images from your physical environment.  Refer to the following blog post that has more details: Moving from a Physical Lab to Azure Lab Services

 

ConfigMgrImage.png

Recommended Approach

To use Configuration Manager with Azure Lab Services, here is the approach that we recommend:

 

1. Start with a Windows marketplace image when you create your lab.

Custom images that are created by exporting from a lab’s template VM are specialized images which means that SysPrep has not been run on the image.  As a result, all VMs that are created from a custom image will have the same Windows SID.  Configuration Manager requires that each VM have a unique SID for its features to work properly.  To ensure that your template VM has a unique SID, we recommend that you start with a Windows image from the marketplace when you create the lab.

 

2. Use Configuration Manager to deploy software to the template VM.

You should use Configuration Manager to deploy software to the template VMnot to deploy software directly to the student VMs.  There are a couple of reasons for this:

  • The template VM should serve as the ‘master’ image for all of the student VMs in the lab.
  • When the student VMs are published, they all have the same SID as the template VM.  Configuration Manager’s features won’t work properly because the student VMs do not have unique SIDs.

Prerequisites

These steps assume the following prerequisites have been configured:

  1. You already have a Configuration Manager site server installed. 
  2. You have a Lab Account that is peered with a Virtual Network (VNet) that has access to your Configuration Manager site server.  By peering your Lab Account, this will enable its lab VMs to communicate with the site server.  More information on Lab Account creation and VNet peering can be found in this article:

IMPORTANT: The lab account must be peered to the VNet before the lab is created.  You may also need to ensure that required ports are enabled within your VNet and\or on-premise network.  For example, you need to allow HTTP\HTTPS communication between your lab VMs and the Configure Manager site server.  Refer to the following link for details: Ports used in Configuration Manager

Lab Setup

Let’s look at the steps to set up your lab to use Configuration Manager to deploy software to the template VM.

 

1. Create lab

Create a new lab using a Windows marketplace image.

 

2. Install the Configuration Manager client onto the template VM

You have several options for installing Configuration Manager’s client onto the template VMThe simplest option is to manually install Configuration Manager’s clientOnce the template VM has the client installed and is assigned to a site, you may need to manually approve the template VM in Configuration Manager’s console.

ConfigMgrConsole.png

 

3. Deploy software applications using Configuration Manager

 Once the template VM is approved in Configuration Manager, you can use Configuration Manager to deploy software applications onto the template VM.  Read the following instructions for details:

4. Uninstall Configuration Manager’s client

Before you publish the template VM, you should uninstall Configuration Manager’s client.  Otherwise, if you leave the Configuration Manager client installed when you publish, this will potentially cause negative side-effects because the student VMs will be assigned to a site yet will have non-unique SIDs.

 

5. Publish the template VM

Finally, you can publish the template VM as you normally would to create the student VMs.

A Few Considerations with Active Directory Domain Joining

In addition to using Configuration Manager to set up your template VM, you may also be planning to join your student VMs to your AD domain as shown in a previous blog post.  There are a few things to note if you are planning to do both in your lab.

 

First, when you:

  • Domain join your student VMs.
  • And you use Configuration Manager’s AD discovery methods to automatically discover client computers in your domain.

You will likely see your student VMs listed in Configuration Manager’s console.  However, you should not use Configuration Manager to manage the student VMs due to the reasons already mentioned in this post.

 

Secondly, you may choose other options for installing the Configuration Manager client on the template VM, such as a client push installation, where you also need to use AD discovery.  Here are a few helpful tips for using AD discovery to find your lab’s template VM:

  • You will need to manually join the template VM to your domain. 
  • After you’ve finished installing the Configuration Manager client and deploying applications to the template VM, then make sure that you remove the template VM from the domain.  Otherwise, if the template VM remains joined to the domain, this will cause an issue later when you use the steps for joining student VMs to the domain.

Wrap Up

For IT departments that are already using Configuration Manager for managing devices, we hope that you find this guidance useful for also using Configuration Manager to prepare your lab's template VM.