%3CLINGO-SUB%20id%3D%22lingo-sub-2050781%22%20slang%3D%22en-US%22%3E%5BCustomer%20Story%5D%20SharePoint%20Online%20Team%20leverages%20DevTest%20Labs%20to%20create%20Testing%20Environments%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2050781%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20are%20several%20teams%20within%20Microsoft%20which%20use%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevtest-labs%2Fdevtest-lab-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20DevTest%20Labs%3C%2FA%3E%20(DTL).%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsharepoint%2Fcollaboration%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESharePoint%20Online%3C%2FA%3E%20(SPO)%20team%20at%20Microsoft%20has%20created%20a%20solution%2C%20built%20on%20DTL%2C%20to%20solve%20the%20problem%20of%20making%20SPO%20testing%20environments%20readily%20available%20to%20SharePoint%20engineers%20%E2%80%93%20securely%2C%20at%20scale%20and%20with%20high%20availability%20%E2%80%93%20leveraging%20the%20strengths%20of%20DevTest%20Labs%20and%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20blog%20post%20is%20the%20first%20in%20a%20series%20of%20posts%20that%20highlights%20key%20parts%20of%20this%20solution.%20The%20series%20enables%20anyone%20to%20build%2C%20configure%20and%20run%20a%20similar%20system%20on%20DTL.%20Each%20post%20will%20cover%20one%20core%20aspect%20of%20the%20SharePoint%20Online%20solution%2C%20with%20a%20brief%20description%20of%20the%20scenarios%20involved%2C%20and%20the%20strategies%20applied%20to%20solve%20them.%20Each%20comes%20equipped%20with%20architecture%20diagrams%2C%20walk-throughs%20and%20code%20samples%2C%20presented%20in%20a%20generic%20and%20reusable%20way.%20It%20is%20hoped%20that%20customers%20in%20the%20Azure%20community%2C%20desiring%20to%20solve%20similar%20problems%20for%20their%20users%2C%20can%20benefit%20from%20the%20content%20herein%20to%20create%20their%20own%20DTL%20solutions.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--552967268%22%20id%3D%22toc-hId--552967270%22%3EAbout%20SharePoint%20Online%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20background%2C%20SharePoint%20Online%20is%20Microsoft%E2%80%99s%20document%20storage%20service%20for%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMicrosoft365%3C%2FA%3E.%20It%20is%20a%20massive%20enterprise%20business.%20In%20addition%20to%20providing%20enterprise-class%20document%20management%2C%20it%20has%20team%20collaboration%2C%20portal%20sites%20and%20content%20management.%20It%20forms%20the%20document%20storage%20backbone%20for%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fexchange%2Femail%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EExchange%20Online%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fteams.microsoft.com%2Fedustart%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ETeams%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fdownload%2Foffice.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EOffice%20applications%3C%2FA%3E%20such%20as%20Word%20and%20Excel.%20As%20one%20example%2C%20when%20you%20save%20a%20document%20in%20Teams%2C%20it%20is%20stored%20in%20SPO%20under%20the%20hood.%26nbsp%3B%20Fortune%20500%20companies%2C%20schools%2C%20governments%20and%20non-profits%20critically%20depend%20on%20SharePoint%20Online%20for%20their%20business%2C%20storing%20over%20480%20terabytes%20of%20their%20data%20in%20it.%3C%2FP%3E%0A%3CP%3E%3CEM%3EIf%20you%20would%20like%20to%20learn%20more%20about%20SharePoint%20Online%20and%20its%20potential%20application%20to%20your%20business%2C%20start%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fbuy%2Fcompare-all-microsoft-365-products%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%20There%20are%20Microsoft365%20subscriptions%20tailored%20for%20home%2C%20business%2C%20and%20institutional%20use.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1934545565%22%20id%3D%22toc-hId-1934545563%22%3ESharePoint%20Online%20Scenario%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20over%201000%20engineers%20working%20on%20an%20ever-evolving%20140%20MLOC%20codebase%20in%20SharePoint%20Online%2C%20%3CSTRONG%3Eintegration%20testing%3C%2FSTRONG%3E%20is%20a%20critical%20part%20of%20the%20engineering%20workflow.%20At%20its%20core%2C%20SharePoint%20is%20a%20three-tier%20web%20application%2C%20featuring%20a%20web%20tier%2C%20a%20business%20logic%20tier%20and%20a%20data%20layer%2C%20each%20working%20in%20conjunction%20as%20a%20single%20service%20in%20data%20centers%20across%20the%20globe.%20Engineers%20working%20on%20it%20require%20safe%2C%20isolated%20simulation%20environments%20that%20function%20like%20scaled-down%20three-tier%20data%20center%20deployments%20so%20that%20they%20can%20deeply%20test%20their%20code%20before%20it%20goes%20worldwide.%3C%2FP%3E%0A%3CP%3EThe%20SharePoint%20Online%20team%20has%20shrunk%20the%20core%20SPO%20components%20and%20services%20so%20that%20they%20all%20fit%20on%20a%20single%2C%20interactive%20virtual%20machine%20(VM)%20that%20simulates%20the%20full%20data%20center%2C%20but%20is%20stripped%20down%20to%20its%20essence.%20It%20is%20therefore%20much%20easier%20to%20deploy.%20These%20single-VM%20environments%20are%20well-suited%20to%20testing%20most%20SPO%20scenarios%20%E2%80%93%20of%20course%20core%20document%20storage%20and%20team%20collaboration%2C%20but%20notably%20scenarios%20involving%20interaction%20with%20Office%20or%20Teams.%20Using%20these%20VMs%2C%20code%20changes%20can%20be%20deployed%2C%20poked%20and%20prodded%2C%20and%20debugged%20as%20it%20interacts%20with%20these%20components%20and%20services%20%E2%80%93%20all%20well%20before%20the%20code%20is%20ultimately%20deployed%20for%20enterprise%20customers%20in%20production%20data%20centers.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-127091102%22%20id%3D%22toc-hId-127091100%22%3EUse%20of%20DevTest%20Labs%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDevTest%20Labs%20provides%20%E2%80%9Clabs%E2%80%9D%20of%20machines%2C%20intended%20to%20host%20pre-configured%20testing%20environments%20at%20scale.%20The%20SPO%20team%20has%20built%20a%20solution%20in%20DevTest%20Labs%20to%20host%20these%20single-VM%20SPO%20environments%2C%20giving%20engineers%20a%20private%2C%20isolated%2C%20safe%2C%20simulated%20data%20center%20in%20which%20to%20test%20their%20code.%3C%2FP%3E%0A%3CP%3EBreaking%20it%20down%20step-by-step%2C%20the%20scenario%20for%20SharePoint%20Online%20engineers%20is%20as%20follows%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EAn%20engineer%20wishes%20to%20test%20their%20code.%20They%20fetch%20a%20virtual%20machine%20(VM)%20from%20the%20DevTest%20Lab.%3C%2FLI%3E%0A%3CLI%3EThe%20VM%20hosts%20a%20pre-configured%20single-VM%20SPO%20environment%20with%20a%20stable%20build.%3C%2FLI%3E%0A%3CLI%3EThey%20log%20in%2C%20interact%20with%20the%20environment%2C%20and%20patch%20a%20new%20code%20change%20into%20place%20to%20do%20testing.%3C%2FLI%3E%0A%3CLI%3EWhen%20they%20are%20finished%2C%20they%20throw%20away%20their%20VM%20%E2%80%93%20they%20can%20always%20fetch%20a%20fresh%20one%20for%20their%20next%20iteration.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EThe%20complexity%20of%20building%20these%20single-VM%20SPO%20environments%2C%20with%20all%20services%20and%20components%20wired%20up%20correctly%2C%20is%20hidden%20from%20the%20lab%20user.%20The%20work%20is%20done%20before%20the%20VM%20is%20assigned%20to%20the%20engineer%2C%20saving%20them%20the%20time%20and%20effort.%26nbsp%3B%20Environments%20are%20ready%20to%20use%20as%20they%20are.%20Engineers%20have%20the%20option%20to%20simply%20use%20them%20as-is%2C%20or%20optionally%20patch%20their%20private%20changes%20and%20onto%20the%20VM%20to%20see%20how%20it%20behaves.%26nbsp%3B%20These%20single-VM%20environments%20are%20the%20heart%20of%20their%20inner%20loop%20debugging%20and%20integration%20testing.%3C%2FP%3E%0A%3CP%3EToday%2C%20about%20500%20engineers%20use%20the%20SPO%20integration%20lab%20on%20a%20monthly%20basis%2C%20with%20plans%20to%20grow%20this%20to%20750%20or%20more.%20Typically%20about%202%2C500%20VMs%20are%20allocated%20at%20any%20one%20point%20in%20time%2C%20running%20in%20three%20different%20Azure%20regions%20around%20the%20world.%20Azure%20allows%20the%20solution%20to%20easily%20scale%20to%20meet%20growing%20demand.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-817652576%22%20id%3D%22toc-hId-817652574%22%3EWhy%20DevTest%20Labs%3F%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECertainly%20a%20solution%20of%20this%20nature%20can%20be%20created%20without%20DevTest%20Labs%2C%20using%20Azure%20VMs%20directly.%20However%2C%20DevTest%20Labs%20provides%20out-of-box%20features%20that%20save%20time%20and%20money%20in%20implementation%20and%20maintenance.%20These%20include%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EStandard%20service%20grouping%20and%20administration%3C%2FLI%3E%0A%3CLI%3EFlexible%20and%20extensible%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2F%23networking%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Enetworking%3C%2FA%3E%20and%20user%20connectivity%3C%2FLI%3E%0A%3CLI%3EAbility%20for%20lab%20users%20to%20claim%20pre-created%20VMs%20without%20going%20through%20the%20full%20creation%20process%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fdocumentation%2Farticles%2Fdevtest-lab-set-lab-policy%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPolicies%20and%20thresholds%3C%2FA%3E%20to%20manage%20costs%20by%20shutting%20unused%20machines%20down%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fdocumentation%2Farticles%2Fdevtest-lab-add-vm-with-artifacts%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EDTL%20Artifacts%3C%2FA%3E%20to%20reduce%20the%20time%20required%20to%20set%20up%20and%20configure%20virtual%20machines%20once%20created%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20full%20feature%20set%20of%20Azure%20is%20also%20available%20to%20extend%20DevTest%20Labs%20where%20needed%2C%20but%20leveraging%20the%20native%20capabilities%20of%20DevTest%20Labs%20reduces%20the%20cost%20to%20build%2C%20maintain%20and%20extend%20the%20solution.%20It%20also%20sets%20the%20solution%20up%20for%20future%20improvements%20planned%20by%20the%20Azure%20team%20at%20Microsoft.%20In%20short%2C%20%3CSTRONG%3EDevTest%20Labs%20is%20a%20quite%20natural%20fit%20for%20this%20use%20case%3C%2FSTRONG%3E%2C%20rather%20than%20reinventing%20the%20wheel.%3C%2FP%3E%0A%3CP%3E%3CEM%3EIf%20you%20haven%E2%80%99t%20tried%20DevTest%20Labs%20yet%2C%20%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3FLinkId%3D627034%26amp%3Bclcid%3D0x409%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eclick%20here%3C%2FA%3E%20to%20create%20your%20first%20lab.%20DevTest%20Labs%20is%20a%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Fdetails%2Fdevtest-lab%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efree%20service%3C%2FA%3E!%3C%2FEM%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-807149472%22%20id%3D%22toc-hId-807149470%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1000304991%22%20id%3D%22toc-hId--1000304993%22%3ESolution%20Architecture%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20solution%20builds%20on%20DevTest%20Labs%20as%20its%20basis.%20It%20is%20an%20event-driven%20architecture%2C%20using%20Azure%20EventGrid%20and%20an%20Azure%20Function%20app.%20It%20uses%20Shared%20Image%20Gallery%20to%20host%20VM%20images%20and%20employs%20a%20Point-to-Site%20VPN%20for%20secure%20access%20to%20the%20network%20hosting%20the%20VMs.%20It%20has%20an%20easy-to-use%20interface%20for%20checkin%2Fcheckout%20that%20is%20hosted%20outside%20the%20Azure%20portal.%26nbsp%3B%20It%20extends%20DevTest%20Labs%20policy%20and%20allows%20users%20to%20manage%20when%20machines%20are%20shut%20down%2C%20and%20even%20postpone%20shutting%20machines%20down%2C%20above%20the%20times%20assigned%20by%20Azure%20DevTest%20Labs%20policy.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBelow%20is%20a%20diagram%20covering%20the%20architecture.%20Starting%20from%20the%20left%2C%20we%20have%20an%20Image%20Service%20which%20is%20responsible%20for%20creating%20Azure%20Compute%20images%20with%20SPO%20pre-configured.%26nbsp%3B%20Image%20Service%20pulls%20the%20latest%20build%20available%2C%20triggers%20the%20deployment%2C%20waits%20for%20success%2C%20and%20publishes%20the%20result%20to%20Azure%20Shared%20Image%20Gallery%20for%20general%20consumption%20by%20DevTest%20Labs.%20It%20then%20fires%20an%20event%20that%2C%20by%20way%20of%20Event%20Grid%2C%20triggers%20an%20Azure%20Function%20App.%3C%2FP%3E%0A%3CDIV%20id%3D%22lia-teaserTinyMceEditorSagar_Lankala_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorSagar_Lankala_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Picture1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F245507iC4443202A6A04FB6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture1.png%22%20alt%3D%22Picture1.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Function%20App%20contains%20the%20business%20logic%20for%20the%20SPO%20solution%2C%20which%20extends%20the%20core%20functionality%20DevTest%20Labs%20natively%20provides.%20The%20Function%20App%20responds%20to%20the%20event%20by%20triggering%20VM%20creation%20in%20DevTest%20Labs%2C%20in%20accordance%20with%20desired%20VM%20pool%20targets.%20A%20VPN%20Gateway%20is%20configured%20to%20provide%20point-to-site%20VPN%20connectivity%20for%20end%20users%2C%20who%20use%20Azure%20VPN%20Client%20to%20ensure%20the%20communication%20between%20the%20lab%20user%20and%20the%20VMs%20is%20authenticated%20and%20secure.%3C%2FP%3E%0A%3CP%3EThe%20solution%20created%20has%20potential%20application%20to%20a%20broad%20set%20of%20scenarios.%20The%20designs%20and%20architecture%20described%20should%20be%20beneficial%20to%20Azure%20customers%20wanting%20to%20build%20similar%20solutions%20on%20DevTest%20Labs%2C%20including%20what%20code%20to%20build%20and%20what%20components%20to%20configure%20for%20their%20applications.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1487207842%22%20id%3D%22toc-hId-1487207840%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--320246621%22%20id%3D%22toc-hId--320246623%22%3EIntroducing%20This%20Blog%20Series%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20several%20upcoming%20blog%20posts%2C%20we%E2%80%99ll%20cover%20the%20following%20topics%3A%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EOverview%3A%26nbsp%3B%20How%20the%20Sharepoint%20team%20leverages%20DevTest%20Labs%20%3CEM%3E(Current%20Blog%20Post)%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3EEnabling%20an%20Event-Driven%20Architecture%20with%20DevTest%20Labs%3C%2FLI%3E%0A%3CLI%3ELeveraging%20Point-to-Site%20VPN%20with%20DevTest%20Labs%3C%2FLI%3E%0A%3CLI%3EMaintaining%20a%20Pool%20of%20Claimable%20VMs%3C%2FLI%3E%0A%3CLI%3EBuilding%20a%20Simple%20User%20Interface%20for%20DevTest%20Labs%3C%2FLI%3E%0A%3CLI%3EEnabling%20Shutdown%20notifications%20via%20Teams%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EEach%20blog%20post%20borrows%20the%20concepts%20and%20architecture%20from%20the%20SPO%20solution%2C%20boiled%20down%20and%20made%20generally%20accessible%20for%20re-use%20by%20the%20Azure%20community.%20The%20content%20of%20this%20blog%20series%20forms%20a%20set%20of%20templates%20for%20others%20to%20build%20the%20same%20types%20of%20solutions%20for%20their%20applications%20as%20the%20SharePoint%20Online%20team%20did%20for%20their%20engineers.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EWhat's%20Next%3F%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20forthcoming%20blog%20posts%2C%20the%20rest%20of%20the%20topics%20will%20be%20covered%2C%20starting%20with%20how%20to%20enable%20an%20event-driven%20architecture%20with%20DevTest%20Labs%20similar%20to%20the%20one%20described%20above.%20Please%20stay%20tuned!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20run%20into%20any%20problems%20with%20the%20content%2C%20or%20have%20any%20questions%2C%20please%20feel%20free%20to%20drop%20a%20comment%20below%20this%20post%20and%20we%20will%20respond.%20Your%20feedback%20is%20always%20welcome!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E-%20Pete%20Harwood%3C%2FSTRONG%3E%2C%20Principal%20Engineering%20Manager%2C%20OneDrive%20and%20SharePoint%20Engineering%20Fundamentals%20at%20Microsoft%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2050781%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20are%20several%20teams%20within%20Microsoft%20which%20use%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdevtest-labs%2Fdevtest-lab-overview%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EAzure%20DevTest%20Labs%3C%2FA%3E%20(DTL).%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fsharepoint%2Fcollaboration%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3ESharePoint%20Online%3C%2FA%3E%20(SPO)%20team%20at%20Microsoft%20has%20created%20a%20solution%2C%20built%20on%20DTL%2C%20to%20solve%20the%20problem%20of%20making%20SPO%20testing%20environments%20readily%20available%20to%20SharePoint%20engineers%20%E2%80%93%20securely%2C%20at%20scale%20and%20with%20high%20availability%20%E2%80%93%20leveraging%20the%20strengths%20of%20DevTest%20Labs%20and%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20blog%20post%20is%20the%20first%20in%20a%20series%20of%20posts%20that%20highlights%20key%20parts%20of%20this%20solution.%20The%20series%20enables%20anyone%20to%20build%2C%20configure%20and%20run%20a%20similar%20system%20on%20DTL.%20Each%20post%20will%20cover%20one%20core%20aspect%20of%20the%20SharePoint%20Online%20solution%2C%20with%20a%20brief%20description%20of%20the%20scenarios%20involved%2C%20and%20the%20strategies%20applied%20to%20solve%20them.%20Each%20comes%20equipped%20with%20architecture%20diagrams%2C%20walk-throughs%20and%20code%20samples%2C%20presented%20in%20a%20generic%20and%20reusable%20way.%20It%20is%20hoped%20that%20customers%20in%20the%20Azure%20community%2C%20desiring%20to%20solve%20similar%20problems%20for%20their%20users%2C%20can%20benefit%20from%20the%20content%20herein%20to%20create%20their%20own%20DTL%20solutions.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2050781%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Developer%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESoftware%20Architecture%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

There are several teams within Microsoft which use Azure DevTest Labs (DTL). SharePoint Online (SPO) team at Microsoft has created a solution, built on DTL, to solve the problem of making SPO testing environments readily available to SharePoint engineers – securely, at scale and with high availability – leveraging the strengths of DevTest Labs and Azure.

 

This blog post is the first in a series of posts that highlights key parts of this solution. The series enables anyone to build, configure and run a similar system on DTL. Each post will cover one core aspect of the SharePoint Online solution, with a brief description of the scenarios involved, and the strategies applied to solve them. Each comes equipped with architecture diagrams, walk-throughs and code samples, presented in a generic and reusable way. It is hoped that customers in the Azure community, desiring to solve similar problems for their users, can benefit from the content herein to create their own DTL solutions.

 

About SharePoint Online

 

For background, SharePoint Online is Microsoft’s document storage service for Microsoft365. It is a massive enterprise business. In addition to providing enterprise-class document management, it has team collaboration, portal sites and content management. It forms the document storage backbone for Exchange Online, Teams and Office applications such as Word and Excel. As one example, when you save a document in Teams, it is stored in SPO under the hood.  Fortune 500 companies, schools, governments and non-profits critically depend on SharePoint Online for their business, storing over 480 terabytes of their data in it.

If you would like to learn more about SharePoint Online and its potential application to your business, start here. There are Microsoft365 subscriptions tailored for home, business, and institutional use.

 

SharePoint Online Scenario

 

With over 1000 engineers working on an ever-evolving 140 MLOC codebase in SharePoint Online, integration testing is a critical part of the engineering workflow. At its core, SharePoint is a three-tier web application, featuring a web tier, a business logic tier and a data layer, each working in conjunction as a single service in data centers across the globe. Engineers working on it require safe, isolated simulation environments that function like scaled-down three-tier data center deployments so that they can deeply test their code before it goes worldwide.

The SharePoint Online team has shrunk the core SPO components and services so that they all fit on a single, interactive virtual machine (VM) that simulates the full data center, but is stripped down to its essence. It is therefore much easier to deploy. These single-VM environments are well-suited to testing most SPO scenarios – of course core document storage and team collaboration, but notably scenarios involving interaction with Office or Teams. Using these VMs, code changes can be deployed, poked and prodded, and debugged as it interacts with these components and services – all well before the code is ultimately deployed for enterprise customers in production data centers.

 

Use of DevTest Labs

 

DevTest Labs provides “labs” of machines, intended to host pre-configured testing environments at scale. The SPO team has built a solution in DevTest Labs to host these single-VM SPO environments, giving engineers a private, isolated, safe, simulated data center in which to test their code.

Breaking it down step-by-step, the scenario for SharePoint Online engineers is as follows:

  1. An engineer wishes to test their code. They fetch a virtual machine (VM) from the DevTest Lab.
  2. The VM hosts a pre-configured single-VM SPO environment with a stable build.
  3. They log in, interact with the environment, and patch a new code change into place to do testing.
  4. When they are finished, they throw away their VM – they can always fetch a fresh one for their next iteration.

The complexity of building these single-VM SPO environments, with all services and components wired up correctly, is hidden from the lab user. The work is done before the VM is assigned to the engineer, saving them the time and effort.  Environments are ready to use as they are. Engineers have the option to simply use them as-is, or optionally patch their private changes and onto the VM to see how it behaves.  These single-VM environments are the heart of their inner loop debugging and integration testing.

Today, about 500 engineers use the SPO integration lab on a monthly basis, with plans to grow this to 750 or more. Typically about 2,500 VMs are allocated at any one point in time, running in three different Azure regions around the world. Azure allows the solution to easily scale to meet growing demand.

 

Why DevTest Labs?

 

Certainly a solution of this nature can be created without DevTest Labs, using Azure VMs directly. However, DevTest Labs provides out-of-box features that save time and money in implementation and maintenance. These include:

  • Standard service grouping and administration
  • Flexible and extensible networking and user connectivity
  • Ability for lab users to claim pre-created VMs without going through the full creation process
  • Policies and thresholds to manage costs by shutting unused machines down
  • DTL Artifacts to reduce the time required to set up and configure virtual machines once created

The full feature set of Azure is also available to extend DevTest Labs where needed, but leveraging the native capabilities of DevTest Labs reduces the cost to build, maintain and extend the solution. It also sets the solution up for future improvements planned by the Azure team at Microsoft. In short, DevTest Labs is a quite natural fit for this use case, rather than reinventing the wheel.

If you haven’t tried DevTest Labs yet, click here to create your first lab. DevTest Labs is a free service!

 

Solution Architecture

 

The solution builds on DevTest Labs as its basis. It is an event-driven architecture, using Azure EventGrid and an Azure Function app. It uses Shared Image Gallery to host VM images and employs a Point-to-Site VPN for secure access to the network hosting the VMs. It has an easy-to-use interface for checkin/checkout that is hosted outside the Azure portal.  It extends DevTest Labs policy and allows users to manage when machines are shut down, and even postpone shutting machines down, above the times assigned by Azure DevTest Labs policy. 

Below is a diagram covering the architecture. Starting from the left, we have an Image Service which is responsible for creating Azure Compute images with SPO pre-configured.  Image Service pulls the latest build available, triggers the deployment, waits for success, and publishes the result to Azure Shared Image Gallery for general consumption by DevTest Labs. It then fires an event that, by way of Event Grid, triggers an Azure Function App.

 
 

Picture1.png

 

The Function App contains the business logic for the SPO solution, which extends the core functionality DevTest Labs natively provides. The Function App responds to the event by triggering VM creation in DevTest Labs, in accordance with desired VM pool targets. A VPN Gateway is configured to provide point-to-site VPN connectivity for end users, who use Azure VPN Client to ensure the communication between the lab user and the VMs is authenticated and secure.

The solution created has potential application to a broad set of scenarios. The designs and architecture described should be beneficial to Azure customers wanting to build similar solutions on DevTest Labs, including what code to build and what components to configure for their applications.

 

Introducing This Blog Series

 

In several upcoming blog posts, we’ll cover the following topics: 

  • Overview:  How the SharePoint team leverages DevTest Labs (Current Blog Post)
  • Enabling an Event-Driven Architecture with DevTest Labs
  • Leveraging Point-to-Site VPN with DevTest Labs
  • Maintaining a Pool of Claimable VMs
  • Building a Simple User Interface for DevTest Labs
  • Enabling Shutdown notifications via Teams

Each blog post borrows the concepts and architecture from the SPO solution, boiled down and made generally accessible for re-use by the Azure community. The content of this blog series forms a set of templates for others to build the same types of solutions for their applications as the SharePoint Online team did for their engineers.

 

What's Next?

 

In forthcoming blog posts, the rest of the topics will be covered, starting with how to enable an event-driven architecture with DevTest Labs similar to the one described above. Please stay tuned!

 

If you run into any problems with the content, or have any questions, please feel free to drop a comment below this post and we will respond. Your feedback is always welcome!

 

- Pete Harwood, Principal Engineering Manager, OneDrive and SharePoint Engineering Fundamentals at Microsoft