Home
%3CLINGO-SUB%20id%3D%22lingo-sub-1149929%22%20slang%3D%22en-US%22%3ERe%3A%20Securing%20Sensitive%20Data%20with%20the%20AIP%20Unified%20Labeling%20Scanner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1149929%22%20slang%3D%22en-US%22%3E%3CP%3EI%20remember%20similar%20posts%20before.%20Is%20this%20a%20new%20version%20of%20such%20guide%3F%20Maybe%20you%20should%20have%20an%20up%20to%20date%20document%20somewhere%20and%20only%20post%20a%20link%20in%20blog%2C%20so%20you%20don't%20have%20to%20hunt%20for%20the%20most%20recent%20post.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1150334%22%20slang%3D%22en-US%22%3ERe%3A%20Securing%20Sensitive%20Data%20with%20the%20AIP%20Unified%20Labeling%20Scanner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1150334%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20any%20other%20licensing%20needed%3F%20Does%20it%20come%20with%20O365%20E3%2C%20E5%2C%20do%20any%20additional%20add-ons%20cover%20this%20usage%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1157057%22%20slang%3D%22en-US%22%3ERe%3A%20Securing%20Sensitive%20Data%20with%20the%20AIP%20Unified%20Labeling%20Scanner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1157057%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20noticed%20a%20significant%20delay%2C%20as%20in%20hours%2C%20in%20the%20amount%20of%20time%20it%20takes%20for%20discovery%20data%20to%20appear%20in%20the%20portal.%20Is%20this%20normal%3F%20Also%2C%20is%20there%20no%20longer%20a%20local%20report%20that%20can%20be%20viewed%20like%20we%20had%20with%20the%20classic%20client%3F%20This%20makes%20testing%20much%20more%20difficult%20when%20trying%20to%20validate%20new%20settings%2C%20custom%20sensitive%20types%2C%20etc.%20Thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1151484%22%20slang%3D%22en-US%22%3ERe%3A%20Securing%20Sensitive%20Data%20with%20the%20AIP%20Unified%20Labeling%20Scanner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1151484%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F33735%22%20target%3D%22_blank%22%3E%40Oleg%20K%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20for%20the%20Unified%20Labeling%20scanner%20which%20is%20still%20in%20public%20preview.%26nbsp%3B%20I%20will%20add%20a%20link%20to%20the%20classic%20version%20at%20the%20top%20of%20the%20document.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F228093%22%20target%3D%22_blank%22%3E%40Timothy%20Balk%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20AIP%20scanner%20is%20included%20with%20the%20%3CSTRONG%3EAIP%20P1%20and%20P2%3C%2FSTRONG%3E%20SKUs%20which%20are%20included%20in%20%3CSTRONG%3EEMS%2FM365%20E3%20and%20E5%3C%2FSTRONG%3E%20respectively%20or%20may%20be%20bought%20standalone.%26nbsp%3B%20The%20scanner%20can%20be%20used%20for%20%3CSTRONG%3Ediscovery%3C%2FSTRONG%3E%20with%20P1%2FE3%20SKUs%20and%20%3CSTRONG%3Efull%20discovery%2C%20classification%2C%20labeling%2C%20and%20protection%3C%2FSTRONG%3E%20with%20the%20P2%2FE5%20SKUs.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3EKevin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1162479%22%20slang%3D%22en-US%22%3ERe%3A%20Securing%20Sensitive%20Data%20with%20the%20AIP%20Unified%20Labeling%20Scanner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1162479%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F11432%22%20target%3D%22_blank%22%3E%40Scott%20Barr%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20delay%20can%20vary%20depending%20on%20the%20location%20of%20your%20log%20analytics%20workspace%20versus%20your%20tenant.%26nbsp%3B%20I%20know%20that%20the%20creation%20of%20a%20workspace%20defaults%20to%20Australia%2C%20so%20if%20you%20accidentally%20set%20it%20to%20that%20and%20your%20tenant%20is%20located%20in%20North%20America%20it%20could%20account%20for%20the%20delay.%26nbsp%3B%20Keep%20in%20mind%20though%20that%20AIP%20analytics%20are%20still%20in%20preview%20so%20there%20may%20be%20inconsistent%20results.%26nbsp%3B%20Per%20the%20local%20reports%2C%20you%20should%20still%20be%20able%20to%20find%20the%20reports%20at%20C%3A%5CUsers%5C%3CSCANNERSERVICEUSER%3E%5Cappdata%5Clocal%5CMicrosoft%5CMSIP%5CScanner%5CReports%20just%20as%20you%20did%20in%20the%20classic%20scanner%20version.%3C%2FSCANNERSERVICEUSER%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EKevin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1166197%22%20slang%3D%22en-US%22%3ERe%3A%20Securing%20Sensitive%20Data%20with%20the%20AIP%20Unified%20Labeling%20Scanner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1166197%22%20slang%3D%22en-US%22%3E%3CP%3EI%20thought%20I%20had%20read%20that%20the%20UL%20version%20of%20AIP%20Scanner%20only%20reported%20to%20the%20portal.%20We%20were%20not%20seeing%20new%20reports%20on%20the%20server%20itself%20in%20the%20%2Freports%20folder%20but%20can%20confirm%20they%20are%20there%20now.%20The%20local%20report%20does%20not%20indicate%20anything%20was%20discovered%20but%20I%20would%20have%20expected%20the%20repository%20we're%20testing%20with%20to%20be%20reported%20with%20no%20results%20in%20the%20portal.%20Unfortunately%2C%20nothing%20is%20reported%20in%20the%20portal.%20I'll%20go%20with%20inconsistent%20results%20for%20now.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20workspace%20is%20in%20NA%20-%20not%20an%20issue%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESince%20this%20was%20an%20upgrade%20from%20classic%20I%20am%20inclined%20to%20remove%20the%20labels%20that%20were%20copied%20from%20the%20Azure%20portal%20and%20start%20fresh.%20The%20discovery%20was%20working%20as%20expected%20with%20classic%20but%20the%20scanner%20service%20consistently%20stopped%20after%20a%20scan%2C%20hence%20the%20upgrade.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-Scott%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1149352%22%20slang%3D%22en-US%22%3ESecuring%20Sensitive%20Data%20with%20the%20AIP%20Unified%20Labeling%20Scanner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1149352%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3ENOTE%3C%2FSTRONG%3E%3A%20This%20is%20an%20updated%20version%20of%20the%20blog%20posted%20at%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FScannerBlog%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FScannerBlog%3C%2FA%3E.%26nbsp%3B%20This%20blog%20is%20based%20on%20the%20Unified%20Labeling%20version%20of%20the%20AIP%20scanner.%26nbsp%3B%20If%20you%20would%20like%20to%20deploy%20the%20classic%20version%2C%20please%20see%20the%20preceding%20link.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMost%20modern%20organizations%20have%20terabytes%20(or%20petabytes)%20of%20unstructured%20data%20sitting%20in%20their%20on-premises%20data%20repositories%20and%20SharePoint%20libraries.%20Managing%20this%20data%2C%20the%20way%20you%20manage%20other%20corporate%20resources%2C%20is%20a%20daunting%20but%20achievable%20task%20using%20tools%20that%20you%20likely%20already%20own.%20In%20this%20article%2C%20we%20will%20walk%20you%20through%20the%20discovery%20of%20sensitive%20data%20and%20show%20you%20options%20to%20classify%20and%20protect%20that%20data.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20AIP%20scanner%20allows%20you%20to%20scan%20your%20on-premises%20data%20repositories%20against%20the%20standard%20Office%20365%20sensitive%20information%20types%20and%20custom%20types%20you%20build%20with%20keywords%20or%20regular%20expressions.%20Once%20the%20data%20is%20discovered%2C%20the%20AIP%20scanner(s)%20can%20aggregate%20the%20findings%20and%20display%20them%20in%20Analytics%20reports%20so%20you%20can%20begin%20visualizing%20your%20data%20risk%20and%20see%20recommendations%20for%20setting%20up%20protection%20rules%20based%20on%20the%20content.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168858iE658C7BF0B31444A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20configure%20the%20AIP%20unified%20labeling%20scanner%2C%20there%20are%20a%20few%20steps%20you%20need%20to%20follow%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EConfigure%20on-premises%20prerequisites%3CUL%3E%0A%3CLI%3EServer%3C%2FLI%3E%0A%3CLI%3ESQL%3C%2FLI%3E%0A%3CLI%3EInstaller%20account%20permissions%3C%2FLI%3E%0A%3CLI%3ELocal%20Service%20Account%3C%2FLI%3E%0A%3CLI%3EOpen%20required%20network%20locations%3C%2FLI%3E%0A%3CLI%3EAIP%20scanner%20binaries%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EConfigure%20Azure%20prerequisites%3CUL%3E%0A%3CLI%3EGlobal%20admin%20credentials%3C%2FLI%3E%0A%3CLI%3ECloud%20service%20account%20(creation%20or%20sync)%3C%2FLI%3E%0A%3CLI%3ECreate%20Azure%20AD%20application%20for%20service%20authentication%3C%2FLI%3E%0A%3CLI%3EGrant%20authorization%20for%20Azure%20AD%20application%3C%2FLI%3E%0A%3CLI%3EConfiguring%20AIP%20Azure%20Log%20Analytics%20(Optional)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EAIP%20scanner%20profile%20configuration%3C%2FLI%3E%0A%3CLI%3EAIP%20scanner%20installation%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ENow%2C%20this%20may%20seem%20like%20a%20lot%20of%20things%2C%20but%20don't%20worry.%20We%20will%20walk%20you%20through%20the%20whole%20process%20so%20that%20it%20is%20as%20painless%20as%20possible.%20This%20article%20assumes%20a%20standard%20implementation.%26nbsp%3B%20Before%20production%20deployment%20we%20recommend%20that%20you%20read%20through%20the%20official%20documentation%20at%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Fdeploy-aip-scanner%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Fdeploy-aip-scanner%3C%2FA%3E%20to%20ensure%20that%20you%20will%20not%20run%20into%20any%20issues%20and%20to%20help%20through%20any%20custom%20scenarios.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EOn-Premises%20Prerequisites%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAt%20least%20one%20Server%20(Physical%20or%20Virtual)%20capable%20of%20running%20the%20AIP%20unified%20labeling%20scanner%3CUL%3E%0A%3CLI%3EThe%20official%20specifications%20are%20listed%20in%20the%20docs%20here%20but%20at%20least%204%20cores%20and%208GB%20RAM%20is%20required%20(more%20is%20highly%20recommended)%20and%20at%20least%2010GB%20of%20free%20storage%20space%20for%20temporary%20files%20(again%2C%20more%20%3D%20better)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EA%20SQL%20Server%20Instance%20to%20store%20configuration%20and%20scanned%20file%20list.%26nbsp%3B%20SQL%20Server%20Express%20Edition%20installed%20locally%20on%20the%20AIP%20scanner%20server%20is%20supported%20but%20for%20load%20balancing%20capabilities%20of%20the%20AIP%20unified%20labeling%20scanner%2C%20a%20full%20version%20of%20SQL%20is%20required.%3C%2FLI%3E%0A%3CLI%3EAn%20%3CSTRONG%3Einstaller%20account%3C%2FSTRONG%3E%20with%20%3CSTRONG%3Esysadmin%3C%2FSTRONG%3E%20rights%20to%20the%20%3CSTRONG%3ESQL%20instance%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Elocal%20admin%3C%2FSTRONG%3E%20%3CSTRONG%3Erights%3C%2FSTRONG%3E%20on%20the%20%3CSTRONG%3EServer%3C%2FSTRONG%3E%20(apologies%20for%20the%20overuse%20of%20bold%2C%20but%20these%20requirements%20are%20often%20missed)%3C%2FLI%3E%0A%3CLI%3EAn%20on-premises%20user%20account%20to%20run%20the%20AIP%20scanner%20service%20(e.g.%20Contoso%5CAIPScanner)%3CUL%3E%0A%3CLI%3ENo%20special%20rights%20are%20needed%20for%20configuration%2C%20but%20this%20account%20will%20need%20%3CSTRONG%3Eread%3C%2FSTRONG%3E%20rights%20to%20all%20configured%20repositories%20to%20do%20%3CSTRONG%3Ediscovery%3C%2FSTRONG%3E%20and%20%3CSTRONG%3Eread%2Fwrite%3C%2FSTRONG%3E%20for%20%3CSTRONG%3Elabeling%20and%20protection%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EInternet%20connectivity%20that%20allows%20the%20following%20URLs%20over%20HTTPS%20(port%20443)%3A%3CUL%3E%0A%3CLI%3E*.aadrm.com%3C%2FLI%3E%0A%3CLI%3E*.azurerms.com%3C%2FLI%3E%0A%3CLI%3E*.informationprotection.azure.com%3C%2FLI%3E%0A%3CLI%3Einformationprotection.hosting.portal.azure.net%3C%2FLI%3E%0A%3CLI%3E*.aria.microsoft.com%3C%2FLI%3E%0A%3CLI%3E*.protection.outlook.com%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EInstalling%20Scanner%20Binaries%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EInstalling%20the%20AIP%20scanner%20binaries%20is%20a%20very%20straight-forward%20process%20as%20they%20are%20included%20with%20the%20AIP%20unified%20labeling%20client.%20Navigate%20to%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FAIPClient%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FAIPClient%3C%2FA%3E%20and%20click%20the%20%3CSTRONG%3EDownload%3C%2FSTRONG%3E%20button.%20When%20presented%20with%20the%20download%20options%2C%20check%20the%20box%20next%20to%20%3CSTRONG%3EAzInfoProtection_ul.exe%3C%2FSTRONG%3E%20and%20click%20the%20%3CSTRONG%3ENext%3C%2FSTRONG%3E%20button.%20The%20download%20should%20start%20automatically.%20Once%20complete%2C%20double-click%20on%20the%20file%20and%20run%20through%20the%20quick%20setup%20on%20the%20prepared%20AIP%20scanner%20server.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EAzure%20Prerequisites%3C%2FFONT%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EGlobal%20Admin%20permissions%20for%20the%20tenant%3C%2FLI%3E%0A%3CLI%3ESynchronized%20or%20created%20cloud%20service%20account%3CUL%3E%0A%3CLI%3EThis%20is%20typically%20done%20using%20Azure%20AD%20Sync%20after%20the%20on-premises%20service%20account%20is%20created.%26nbsp%3B%20If%20you%20are%20%3CSTRONG%3Enot%3C%2FSTRONG%3E%20using%20Azure%20AD%20Sync%20to%20synchronize%20your%20on-premises%20service%20account%2C%20you%20will%20need%20to%20create%20an%20account%20in%20the%20cloud.%26nbsp%3B%20This%20can%20be%20accomplished%20manually%20by%20logging%20into%20the%20Azure%20Portal%2C%20or%20via%20PowerShell%20script.%3C%2FLI%3E%0A%3CLI%3EFor%20convenience%2C%20we%20have%20created%20an%20script%20example%20named%20%3CSTRONG%3ENew-CloudServiceAccount.ps1%3C%2FSTRONG%3E%20which%20you%20may%20review%20and%20download%20from%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FMIPFiles%2FScripts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FMIPFiles%2FScripts%3C%2FA%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EConfigure%20Azure%20Applications%20necessary%20for%20AIP%20scanner%20authentication.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3ECreating%20the%20Azure%20AD%20Application%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EWe%20must%20create%20an%20Azure%20AD%20Application%20for%20AIP%20Authentication%20to%20allow%20the%20scanner%20to%20protect%20files%20non-interactively%20(you%20only%20need%20to%20run%20this%20the%20first%20time%20you%20are%20setting%20up%20the%20AIP%20scanner.%20You%20can%20use%20the%20same%20Set-AIPAuthentication%20command%20created%20at%20the%20end%20to%20authenticate%20multiple%20AIP%20scanner%20servers).%20The%20official%20documentation%20for%20creating%20these%20applications%20is%20found%20at%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Frms-client%2Fclient-admin-guide-powershell%23how-to-label-files-non-interactively-for-azure-information-protection%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Finformation-protection%2Frms-client%2Fclient-admin-guide-powershell%23how-to-label-files-non-interactively-for-azure-information-protection%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EFor%20convenience%2C%20we%20have%20created%20a%20script%20below%20that%20will%20create%20the%20AAD%20Application.%20This%20will%20also%20create%20scripts%20named%20Grant-AdminConsent.ps1%20and%20Set-AIPAuthentication.ps1%20on%20the%20desktop%20that%20will%20contain%20the%20commands%20needed%20to%20authenticate%20your%20AIP%20scanner%20server(s).%20This%20script%20is%20also%20attached%20to%20the%20blog%20post%20as%20a%20ps1%20file.%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%0A%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3E%23%20Install%20Azure%20AD%20module%20(if%20necessary)%20and%20Import%0A%0Aif%20(Get-InstalledModule%20-Name%20%22AzureAD%22%20-ErrorAction%20SilentlyContinue)%20%7B%0A%20%20%20%20%22Importing%20Azure%20AD%20Module%22%0A%20%20%20%20Import-Module%20-Name%20%22AzureAD%22%0A%7D%20else%20%7B%0A%20%20%20%20%22Installing%20Azure%20AD%20Module%22%0A%20%20%20%20Install-Module%20-Name%20%22AzureAD%22%0A%20%20%20%20%22Importing%20Azure%20AD%20Module%22%0A%20%20%20%20Import-Module%20-Name%20%22AzureAD%22%0A%7D%0A%0A%23%20Capture%20Global%20Admin%20credential%0A%0A%24gacred%20%3D%20get-credential%20-Message%20%22Enter%20Azure%20Global%20Admin%20Credentials%22%0A%0A%23%20Connect%20to%20Azure%20AD%0A%0AConnect-AzureAD%20-Credential%20%24gacred%0A%0A%23%20Store%20date%20and%20create%20unique%20Display%20Name%20for%20AAD%20application%20(you%20may%20comment%20out%20these%20lines%20and%20set%20%24DisplayName%20to%20a%20unique%20value%20if%20desired)%0A%0A%24Date%20%3D%20Get-Date%20-UFormat%20%25m%25d%25H%25M%0A%24DisplayName%20%3D%20%22AIPOBOv2-%22%20%2B%20%24Date%0A%0A%23%20Creating%20Azure%20AD%20Application.%20This%20will%20create%20the%20application%20and%20assign%20permissions%20for%20Microsoft%20Rights%20Management%20Services%2C%20Microsoft%20Information%20Protection%20Sync%20Service%2C%20and%20Microsoft%20Graph.%0A%0A%24SvcPrincipal%20%3D%20Get-AzureADServicePrincipal%20-All%20%24true%20%7C%20%3F%20%7B%20%24_.DisplayName%20-match%20%22Microsoft%20Rights%20Management%20Services%22%20%7D%0A%24ReqAccess%20%3D%20New-Object%20-TypeName%20%22Microsoft.Open.AzureAD.Model.RequiredResourceAccess%22%0A%24ReqAccess.ResourceAppId%20%3D%20%24SvcPrincipal.AppId%0A%24Role1%20%3D%20New-Object%20-TypeName%20%22Microsoft.Open.AzureAD.Model.ResourceAccess%22%20-ArgumentList%20%22d13f921c-7f21-4c08-bade-db9d048bd0da%22%2C%20%22Role%22%0A%24Role2%20%3D%20New-Object%20-TypeName%20%22Microsoft.Open.AzureAD.Model.ResourceAccess%22%20-ArgumentList%20%227347eb49-7a1a-43c5-8eac-a5cd1d1c7cf0%22%2C%20%22Role%22%0A%24Role3%20%3D%20New-Object%20-TypeName%20%22Microsoft.Open.AzureAD.Model.ResourceAccess%22%20-ArgumentList%20%22006e763d-a822-41fc-8df5-8d3d7fe20022%22%2C%20%22Role%22%0A%24ReqAccess.ResourceAccess%20%3D%20%24Role1%2C%20%24Role2%2C%20%24Role3%0A%0A%24SvcPrincipalUL%20%3D%20Get-AzureADServicePrincipal%20-All%20%24true%20%7C%20%3F%20%7B%20%24_.DisplayName%20-match%20%22Microsoft%20Information%20Protection%20Sync%20Service%22%20%7D%0A%24ReqAccessUL%20%3D%20New-Object%20-TypeName%20%22Microsoft.Open.AzureAD.Model.RequiredResourceAccess%22%0A%24ReqAccessUL.ResourceAppId%20%3D%20%24SvcPrincipalUL.AppId%0A%24Role4%20%3D%20New-Object%20-TypeName%20%22Microsoft.Open.AzureAD.Model.ResourceAccess%22%20-ArgumentList%20%228b2071cd-015a-4025-8052-1c0dba2d3f64%22%2C%20%22Role%22%0A%24ReqAccessUL.ResourceAccess%20%3D%20%24Role4%0A%0A%24SvcPrincipalGr%20%3D%20Get-AzureADServicePrincipal%20-All%20%24true%20%7C%20%3F%20%7B%20%24_.DisplayName%20-match%20%22Microsoft%20Graph%22%20%7D%0A%24ReqAccessGr%20%3D%20New-Object%20-TypeName%20%22Microsoft.Open.AzureAD.Model.RequiredResourceAccess%22%0A%24ReqAccessGr.ResourceAppId%20%3D%20%24SvcPrincipalGr.AppId%5B0%5D%0A%0A%24Scope1%20%3D%20New-Object%20-TypeName%20%22Microsoft.Open.AzureAD.Model.ResourceAccess%22%20-ArgumentList%20%22e1fe6dd8-ba31-4d61-89e7-88639da4683d%22%2C%20%22Scope%22%0A%24ReqAccessGr.ResourceAccess%20%3D%20%24Scope1%0ANew-AzureADApplication%20-DisplayName%20%24DisplayName%20-ReplyURLs%20http%3A%2F%2Flocalhost%20-RequiredResourceAccess%20%40(%24ReqAccess%2C%20%24ReqAccessUL%2C%20%24ReqAccessGr)%0A%24WebApp%20%3D%20Get-AzureADApplication%20-Filter%20%22DisplayName%20eq%20'%24DisplayName'%22%0A%0ANew-AzureADServicePrincipal%20-AppId%20%24WebApp.AppId%0A%24WebAppKey%20%3D%20New-Guid%0A%24Date%20%3D%20Get-Date%0A%0ANew-AzureADApplicationPasswordCredential%20-ObjectId%20%24WebApp.ObjectID%20-startDate%20%24Date%20-endDate%20%24Date.AddYears(1)%20-Value%20%24WebAppKey.Guid%20-CustomKeyIdentifier%20%22Password%22%0A%24TenantID%20%3D%20(Get-AzureADCurrentSessionInfo).tenantid%0A%0A%23%20Generate%20Authentication%20Token%20scripts%0A%0A'%22A%20browser%20will%20launch%20to%20the%20created%20web%20application%20to%20provide%20Admin%20consent%20for%20the%20required%20API%20permissions.%20Please%20log%20in%20with%20tenant%20admin%20credentials%20to%20provide%20permissions%20for%20this%20application.%20%20If%20you%20are%20unable%20to%20provide%20this%20consent%2C%20please%20provide%20the%20URL%20below%20to%20your%20tenant%20administrator.%22'%20%7C%20Out-File%20~%5CDesktop%5CGrant-AdminConsentUL.ps1%0A%0A'%24weburl%20%3D%20%22https%3A%2F%2Fportal.azure.com%2F%23blade%2FMicrosoft_AAD_RegisteredApps%2FApplicationMenuBlade%2FCallAnAPI%2FappId%2F'%2B%24WebApp.AppId%2B'%2FisMSAApp%2F%22'%20%7C%20Out-File%20~%5CDesktop%5CGrant-AdminConsentUL.ps1%20-Append%0A%22%22%20%7C%20Out-File%20~%5CDesktop%5CGrant-AdminConsentUL.ps1%20-Append%0A%0A'%24weburl'%20%7C%20Out-File%20~%5CDesktop%5CGrant-AdminConsentUL.ps1%20-Append%0A'%22Press%20Enter%20below%20to%20launch%20the%20browser%22'%20%7C%20Out-File%20~%5CDesktop%5CGrant-AdminConsentUL.ps1%20-Append%0A%22%22%20%7C%20Out-File%20~%5CDesktop%5CGrant-AdminConsentUL.ps1%20-Append%0A%0A'Pause'%20%7C%20Out-File%20~%5CDesktop%5CGrant-AdminConsentUL.ps1%20-Append%0A%0A'Start-Process%20%24weburl'%20%7C%20Out-File%20~%5CDesktop%5CGrant-AdminConsentUL.ps1%20-Append%0A'%24ServiceAccount%20%3D%20Get-Credential%20-Message%20%22Enter%20the%20on-premises%20service%20account%20credentials%22'%20%7C%20Out-File%20~%5CDesktop%5CSet-AIPAuthenticationUL.ps1%0A'%24DelegatedUser%20%3D%20Get-Credential%20-Message%20%22Enter%20the%20cloud%20AIP%20scanner%20service%20account%20credentials%22'%20%7C%20Out-File%20~%5CDesktop%5CSet-AIPAuthenticationUL.ps1%20-append%0A%0A%22Set-AIPAuthentication%20-AppID%20%22%20%2B%20%24WebApp.AppId%20%2B%20%22%20-AppSecret%20%22%20%2B%20%24WebAppKey.Guid%20%2B%20%22%20-TenantID%20%22%20%2B%20%24TenantID.Guid%20%2B%20'%20-DelegatedUser%20%24DelegatedUser%20-OnBehalfOf%20%24ServiceAccount'%20%7C%20Out-File%20~%5CDesktop%5CSet-AIPAuthenticationUL.ps1%20-append%0A%0A%22Restart-Service%20AIPScanner%22%20%7C%20Out-File%20~%5CDesktop%5CSet-AIPAuthenticationUL.ps1%20-append%3C%2FCODE%3E%3C%2FPRE%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%0A%3CP%3E%26nbsp%3B%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%0A%3CP%3EAfter%20you%20run%20this%20script%2C%20you%20will%20need%20to%20run%20the%20%3CSTRONG%3EGrant-AdminConsentUL.ps1%3C%2FSTRONG%3E%20script%20on%20the%20desktop%20in%20the%20context%20of%20a%20global%20admin%20to%20authorize%20the%20application%20permissions.%20We%20will%20run%20the%20other%20script%20later%20in%20this%20article.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EConfiguring%20AIP%20Azure%20Log%20Analytics%20(Optional)%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EAlthough%20this%20step%20is%20technically%20optional%2C%20we%20recommend%20configuring%20analytics%20prior%20to%20running%20your%20first%20scan%20so%20you%20can%20begin%20to%20visualize%20your%20data%20risk%20as%20shown%20in%20the%20initial%20image%20in%20this%20article.%20In%20the%20AIP%20blade%20of%20the%20Azure%20Portal%2C%20you%20will%20see%20%3CSTRONG%3EConfigure%20analytics%20(preview)%3C%2FSTRONG%3E%20under%20the%20%3CSTRONG%3EManage%3C%2FSTRONG%3E%20section.%20Click%20on%20this%20and%20you%20should%20see%20a%20page%20like%20the%20one%20below.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ala.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168861i9BDA3835FFCD87E9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ala.png%22%20alt%3D%22ala.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20you%20already%20have%20a%20configured%20ALA%20Workspace%20for%20this%20purpose%2C%20check%20the%20box%20next%20to%20it%20and%20press%20%3CSTRONG%3EOK%3C%2FSTRONG%3E.%20Otherwise%2C%20click%20the%20%3CSTRONG%3E%2B%20Create%20new%20workspace%20link%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFill%20in%20the%20items%20shown%20in%20the%20image%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ELog%20Analytics%20Workspace%3C%2FSTRONG%3E%20(must%20be%20%3CSTRONG%3Eunique%3C%2FSTRONG%3E%20across%20Azure)%3C%2FLI%3E%0A%3CLI%3EAzure%20%3CSTRONG%3ESubscription%3C%2FSTRONG%3E%20(If%20this%20is%20not%20populated%2C%20you%20will%20need%20to%20get%20access%20or%20have%20someone%20with%20access%20to%20the%20subscription%20create%20the%20workspace)%3C%2FLI%3E%0A%3CLI%3EA%20new%20or%20existing%20%3CSTRONG%3EResource%20group%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EThe%20%3CSTRONG%3ELocation%3C%2FSTRONG%3E%20closest%20to%20your%20users%20(usually%20this%20will%20be%20in%20the%20same%20geography%20as%20your%20tenant)%3C%2FLI%3E%0A%3CLI%3EA%20%3CSTRONG%3EPricing%20tier%3C%2FSTRONG%3E%20(usually%20Per%20GB%20or%20Standalone.%20Free%20tier%20only%20stores%20logs%20for%207%20days)%3C%2FLI%3E%0A%3CLI%3EPress%20%3CSTRONG%3EOK%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ALANew.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168863i1127AB7530EB911E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ALANew.png%22%20alt%3D%22ALANew.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFinally%2C%20back%20in%20the%20Configure%20analytics%20(preview)%20blade%2C%20%3CSTRONG%3Echeck%20the%20box%20next%20to%20the%20workspace%3C%2FSTRONG%3E%20and%20click%20%3CSTRONG%3EOK%3C%2FSTRONG%3E.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ala2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168864i40508E8EC44CA599%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ala2.png%22%20alt%3D%22ala2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENOTE%3A%20Checking%20the%20box%20next%20to%20%3CSTRONG%3EEnable%20deeper%20analytics%3C%2FSTRONG%3E%20allows%20the%20%3CSTRONG%3Eactual%20matched%20content%3C%2FSTRONG%3E%20to%20be%20stored%20in%20the%20Log%20Analytics%20workspace.%20This%20could%20include%20many%20types%20of%20sensitive%20information%20such%20as%20PII%2C%20Credit%20Card%20Numbers%2C%20and%20Banking%20Information.%20This%20option%20is%20typically%20used%20during%20testing%20of%20automatic%20conditions%20and%20not%20widely%20used%20in%20production%20settings%20due%20to%20the%20sensitive%20nature%20of%20the%20collected%20data.%20If%20this%20is%20used%20in%20a%20production%20setting%2C%20%3CSTRONG%3Eextreme%20caution%3C%2FSTRONG%3E%20should%20be%20taken%20with%20securing%20access%20to%20this%20workspace.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EAIP%20Scanner%20Profile%20Configuration%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EConfiguration%20of%20the%20AIP%20scanner%20is%20now%20done%20via%20the%20Central%20Management%20User%20Interface%20in%20the%20Azure%20Portal.%20We%20will%20quickly%20walk%20through%20the%20minimum%20configuration%20elements%20to%20install%20a%20functional%20scanner%20in%20discover%20mode.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20AIP%20scanner%20%3CSTRONG%3EProfiles%3C%2FSTRONG%3E%20blade%20can%20be%20found%20in%20the%20AIP%20blade%20on%20the%20left%20side%20in%20the%20%3CSTRONG%3EScanner%3C%2FSTRONG%3E%20section.%20Follow%20the%20steps%20below%20to%20create%20and%20configure%20an%20AIP%20scanner%20profile.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUnder%20%3CSTRONG%3EScanner%3C%2FSTRONG%3E%2C%20click%20on%20%3CSTRONG%3EProfiles%3C%2FSTRONG%3E%20and%20click%20the%20%3CSTRONG%3E%2B%20Add%3C%2FSTRONG%3E%20button%20at%20the%20top%20to%20create%20a%20new%20profile.%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Profiles.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168865i3B73E2B962D1E068%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Profiles.png%22%20alt%3D%22Profiles.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EIn%20the%20Add%20a%20new%20profile%20blade%2C%20provide%20a%20%3CSTRONG%3EProfile%20name%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EUnder%20Policy%20enforcement%2C%20set%20%3CSTRONG%3EEnforce%3C%2FSTRONG%3E%20to%20%3CSTRONG%3EOff%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EClick%20%3CSTRONG%3ESave%3C%2FSTRONG%3E.%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22NewProfile.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168866iF8279DFC0EF861CB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22NewProfile.png%22%20alt%3D%22NewProfile.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EOnce%20the%20profile%20is%20saved%2C%20under%20Profile%20settings%2C%20click%20on%20%3CSTRONG%3EConfigure%20repositories%3C%2FSTRONG%3E.%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ConfRepo.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168867iB28BEE94CED33616%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22ConfRepo.png%22%20alt%3D%22ConfRepo.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EIn%20the%20Repositories%20blade%2C%20click%20%3CSTRONG%3E%2B%20Add%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3EIn%20the%20Repository%20blade%2C%20enter%20the%20path%20to%20your%20repository%20(%5C%5CFileserver%5CDocuments%20or%20https%3A%2F%2FSharePointServer%2FDocuments)%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Repo.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168868i38502513E303DE94%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Repo.png%22%20alt%3D%22Repo.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3ELeave%20the%20settings%20as%20Profile%20default%20and%20click%20%3CSTRONG%3ESave%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThere%20are%20many%20other%20options%20and%20settings%20for%20the%20Scanner%20profiles%2C%20please%20see%20our%20official%20documentation%20for%20additional%20details%20on%20these.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%225%22%3EInstalling%20the%20AIP%20Scanner%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EWe%20should%20now%20have%20all%20prerequisites%20in%20place%20to%20install%20the%20AIP%20scanner.%20To%20do%20this%2C%20type%20the%20command%20below%20in%20an%20Administrative%20PowerShell%20window.%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%0A%3CP%3E%26nbsp%3B%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%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EInstall-AIPScanner%20-Profile%20%22ProfileName%22%3C%2FCODE%3E%3C%2FPRE%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%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20will%20be%20prompted%20to%20enter%20the%20%3CSTRONG%3Elocal%20AIP%20scanner%20service%20account%3C%2FSTRONG%3E%20credentials%20in%20%3CSTRONG%3EDomain%5CAccountName%3C%2FSTRONG%3E%20format%20and%20to%20provide%20the%20%3CSTRONG%3ESQL%20Server%20instance%20name%3C%2FSTRONG%3E%20(This%20will%20be%20%3CSTRONG%3EServerName%3C%2FSTRONG%3E%20or%20%3CSTRONG%3EServerName%5CSQLExpress%3C%2FSTRONG%3E%20depending%20on%20the%20version%20you%20installed).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20encounter%20any%20errors%2C%20please%20validate%20that%20the%20installer%20account%20has%20the%20permissions%20mentioned%20in%20the%20On-Premises%20Prerequisites%20and%20you%20do%20not%20have%20any%20firewall%20issues%20reaching%20the%20SQL%20server%20or%20Azure.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20that%20you%20have%20the%20AIP%20scanner%20service%20installed%2C%20you%20can%20run%20the%20%3CSTRONG%3ESet-AIPAuthentication%3C%2FSTRONG%3E%20command%20to%20get%20the%20non-interactive%20authentication%20token.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20Admin%20PowerShell%20prompt%2C%20run%20the%20%3CSTRONG%3ESet-AIPAuthenticationUL.ps1%3C%2FSTRONG%3E%20script%20from%20the%20desktop.%20This%20will%20ask%20for%20the%20credentials%20of%20the%20%3CSTRONG%3Eon-premises%20AIP%20scanner%20service%20account%3C%2FSTRONG%3E%20and%20the%20%3CSTRONG%3Ecloud%20service%20account%3C%2FSTRONG%3E.%20The%20service%20is%20then%20restarted%20to%20allow%20it%20to%20use%20the%20new%20token%20and%20pull%20down%20policy.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20same%20Set-AIPAuthentication%20command%20can%20be%20used%20on%20multiple%20servers%20in%20your%20tenant%20even%20if%20they%20use%20different%20profiles.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20scanner%20should%20be%20fully%20functional%20at%20this%20point%20and%20you%20can%20run%20the%20commands%20below%20to%20verify%20the%20state%20(should%20be%20idle)%20and%20start%20the%20initial%20discovery%20scan.%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%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EGet-AIPScannerStatus%0A%0AStart-AIPScan%3C%2FCODE%3E%3C%2FPRE%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%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20a%20few%20minutes%20you%20will%20begin%20seeing%20data%20start%20to%20flow%20into%20your%20Data%20discovery%20(Preview)%20dashboard%20in%20the%20azure%20portal.%20Since%20you%20are%20only%20doing%20discovery%2C%20you%20will%20not%20see%20any%20labeled%20or%20protected%20files%20(unless%20you%20have%20been%20using%20AIP%20before%20running%20the%20scanner)%2C%20but%20you%20will%20see%20the%20identified%20files%20and%20the%20sensitive%20data%20types%20found%20in%20the%20configured%20repositories.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22discovery.png%22%20style%3D%22width%3A%20624px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168869i1F00F8EB72C6C587%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22discovery.png%22%20alt%3D%22discovery.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThere%20is%20also%20a%20blade%20under%20Analytics%20named%20%3CSTRONG%3ERecommendations%20(Preview)%3C%2FSTRONG%3E%20that%20will%20be%20populated%20by%20this%20data.%20Any%20sensitive%20information%20types%20discovered%20that%20do%20not%20have%20associated%20automatic%20classification%20conditions%20will%20display%20in%20this%20blade.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20may%20then%20click%20on%20the%20sensitive%20information%20type%20and%20a%20fly-out%20panel%20will%20allow%20you%20to%20assign%20the%20information%20type%20to%20a%20classification%20label.%20This%20allows%20you%20to%20quickly%20map%20your%20sensitive%20information%20to%20classification%20labels.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22recommendations.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168870i7279BBE43DE79E4C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22recommendations.png%22%20alt%3D%22recommendations.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENOTE%3A%20The%20AIP%20scanner%20will%20only%20trigger%20on%20conditions%20which%20are%20set%20to%20Automatic.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOnce%20you%20have%20configured%20these%20conditions%2C%20you%20can%20return%20to%20the%20profile%20in%20the%20Azure%20portal%20and%20change%20the%20settings%20to%20the%20ones%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESchedule%3A%20%3CSTRONG%3EAlways%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EInfo%20types%20to%20be%20discovered%3A%20%3CSTRONG%3EPolicy%20only%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3EEnforce%3A%20%3CSTRONG%3EOn%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ESave%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%20style%3D%22padding-left%3A%2030px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Profile2.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168871i857C22E3C91EE8DB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22Profile2.png%22%20alt%3D%22Profile2.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBecause%20we%20set%20the%20schedule%20to%20Always%2C%20the%20scanner%20will%20begin%20monitoring%20the%20files%20automatically%20within%205%20minutes.%20If%20you%20want%20to%20start%20the%20scan%20yourself%2C%20follow%20the%20instructions%20below.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIn%20the%20AIP%20blade%2C%20under%20%3CSTRONG%3EScanner%3C%2FSTRONG%3E%2C%20click%20on%20%3CSTRONG%3ENodes%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3CLI%3ESelect%20your%20AIP%20Scanner%20server%20and%20click%20%3CSTRONG%3EStart%3C%2FSTRONG%3E%20in%20the%20toolbar.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EThe%20result%20will%20be%20similar%20to%20the%20image%20shown%20below%20with%20labeled%20and%20protected%20files%20and%20the%20distribution%20graph%20showing%20in%20the%20Data%20discovery%20(Preview)%20dashboard.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F168872i42C9B82261F4D9C6%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPlease%20let%20us%20know%20in%20the%20comments%20if%20you%20have%20any%20questions%20on%20this%20approach.%20If%20you%20are%20interested%20in%20how%20Microsoft%20uses%20the%20AIP%20scanner%2C%20please%20see%20the%20MSIT%20showcase%20at%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2FScannerShowcase%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2FScannerShowcase%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20Information%20Protection%20Customer%20Experience%20Engineering%20Team%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1149352%22%20slang%3D%22en-US%22%3E%3CP%3EMost%20modern%20organizations%20have%20terabytes%20(or%20petabytes)%20of%20unstructured%20data%20sitting%20in%20their%20on-premises%20data%20repositories%20and%20SharePoint%20libraries.%20Managing%20this%20data%2C%20the%20way%20you%20manage%20other%20corporate%20resources%2C%20is%20a%20daunting%20but%20achievable%20task%20using%20tools%20that%20you%20likely%20already%20own.%20In%20this%20article%2C%20we%20will%20walk%20you%20through%20the%20discovery%20of%20sensitive%20data%20and%20show%20you%20options%20to%20classify%20and%20protect%20that%20data.%3C%2FP%3E%3C%2FLINGO-TEASER%3E

NOTE: This is an updated version of the blog posted at https://aka.ms/ScannerBlog.  This blog is based on the Unified Labeling version of the AIP scanner.  If you would like to deploy the classic version, please see the preceding link.

 

Most modern organizations have terabytes (or petabytes) of unstructured data sitting in their on-premises data repositories and SharePoint libraries. Managing this data, the way you manage other corporate resources, is a daunting but achievable task using tools that you likely already own. In this article, we will walk you through the discovery of sensitive data and show you options to classify and protect that data.

 

The AIP scanner allows you to scan your on-premises data repositories against the standard Office 365 sensitive information types and custom types you build with keywords or regular expressions. Once the data is discovered, the AIP scanner(s) can aggregate the findings and display them in Analytics reports so you can begin visualizing your data risk and see recommendations for setting up protection rules based on the content.

1.png

To configure the AIP unified labeling scanner, there are a few steps you need to follow:

  • Configure on-premises prerequisites
    • Server
    • SQL
    • Installer account permissions
    • Local Service Account
    • Open required network locations
    • AIP scanner binaries
  • Configure Azure prerequisites
    • Global admin credentials
    • Cloud service account (creation or sync)
    • Create Azure AD application for service authentication
    • Grant authorization for Azure AD application
    • Configuring AIP Azure Log Analytics (Optional)
  • AIP scanner profile configuration
  • AIP scanner installation

Now, this may seem like a lot of things, but don't worry. We will walk you through the whole process so that it is as painless as possible. This article assumes a standard implementation.  Before production deployment we recommend that you read through the official documentation at https://docs.microsoft.com/en-us/azure/information-protection/deploy-aip-scanner to ensure that you will not run into any issues and to help through any custom scenarios.

 

On-Premises Prerequisites

  • At least one Server (Physical or Virtual) capable of running the AIP unified labeling scanner
    • The official specifications are listed in the docs here but at least 4 cores and 8GB RAM is required (more is highly recommended) and at least 10GB of free storage space for temporary files (again, more = better)
  • A SQL Server Instance to store configuration and scanned file list.  SQL Server Express Edition installed locally on the AIP scanner server is supported but for load balancing capabilities of the AIP unified labeling scanner, a full version of SQL is required.
  • An installer account with sysadmin rights to the SQL instance and local admin rights on the Server (apologies for the overuse of bold, but these requirements are often missed)
  • An on-premises user account to run the AIP scanner service (e.g. Contoso\AIPScanner)
    • No special rights are needed for configuration, but this account will need read rights to all configured repositories to do discovery and read/write for labeling and protection
  • Internet connectivity that allows the following URLs over HTTPS (port 443):
    • *.aadrm.com
    • *.azurerms.com
    • *.informationprotection.azure.com
    • informationprotection.hosting.portal.azure.net
    • *.aria.microsoft.com
    • *.protection.outlook.com

Installing Scanner Binaries

Installing the AIP scanner binaries is a very straight-forward process as they are included with the AIP unified labeling client. Navigate to https://aka.ms/AIPClient and click the Download button. When presented with the download options, check the box next to AzInfoProtection_ul.exe and click the Next button. The download should start automatically. Once complete, double-click on the file and run through the quick setup on the prepared AIP scanner server.

 

Azure Prerequisites

  • Global Admin permissions for the tenant
  • Synchronized or created cloud service account
    • This is typically done using Azure AD Sync after the on-premises service account is created.  If you are not using Azure AD Sync to synchronize your on-premises service account, you will need to create an account in the cloud.  This can be accomplished manually by logging into the Azure Portal, or via PowerShell script.
    • For convenience, we have created an script example named New-CloudServiceAccount.ps1 which you may review and download from https://aka.ms/MIPFiles/Scripts.
  • Configure Azure Applications necessary for AIP scanner authentication.

Creating the Azure AD Application

We must create an Azure AD Application for AIP Authentication to allow the scanner to protect files non-interactively (you only need to run this the first time you are setting up the AIP scanner. You can use the same Set-AIPAuthentication command created at the end to authenticate multiple AIP scanner servers). The official documentation for creating these applications is found at https://docs.microsoft.com/en-us/azure/information-protection/rms-client/client-admin-guide-powershe....

For convenience, we have created a script below that will create the AAD Application. This will also create scripts named Grant-AdminConsent.ps1 and Set-AIPAuthentication.ps1 on the desktop that will contain the commands needed to authenticate your AIP scanner server(s). This script is also attached to the blog post as a ps1 file.

 

 

 

# Install Azure AD module (if necessary) and Import

if (Get-InstalledModule -Name "AzureAD" -ErrorAction SilentlyContinue) {
    "Importing Azure AD Module"
    Import-Module -Name "AzureAD"
} else {
    "Installing Azure AD Module"
    Install-Module -Name "AzureAD"
    "Importing Azure AD Module"
    Import-Module -Name "AzureAD"
}

# Capture Global Admin credential

$gacred = get-credential -Message "Enter Azure Global Admin Credentials"

# Connect to Azure AD

Connect-AzureAD -Credential $gacred

# Store date and create unique Display Name for AAD application (you may comment out these lines and set $DisplayName to a unique value if desired)

$Date = Get-Date -UFormat %m%d%H%M
$DisplayName = "AIPOBOv2-" + $Date

# Creating Azure AD Application. This will create the application and assign permissions for Microsoft Rights Management Services, Microsoft Information Protection Sync Service, and Microsoft Graph.

$SvcPrincipal = Get-AzureADServicePrincipal -All $true | ? { $_.DisplayName -match "Microsoft Rights Management Services" }
$ReqAccess = New-Object -TypeName "Microsoft.Open.AzureAD.Model.RequiredResourceAccess"
$ReqAccess.ResourceAppId = $SvcPrincipal.AppId
$Role1 = New-Object -TypeName "Microsoft.Open.AzureAD.Model.ResourceAccess" -ArgumentList "d13f921c-7f21-4c08-bade-db9d048bd0da", "Role"
$Role2 = New-Object -TypeName "Microsoft.Open.AzureAD.Model.ResourceAccess" -ArgumentList "7347eb49-7a1a-43c5-8eac-a5cd1d1c7cf0", "Role"
$Role3 = New-Object -TypeName "Microsoft.Open.AzureAD.Model.ResourceAccess" -ArgumentList "006e763d-a822-41fc-8df5-8d3d7fe20022", "Role"
$ReqAccess.ResourceAccess = $Role1, $Role2, $Role3

$SvcPrincipalUL = Get-AzureADServicePrincipal -All $true | ? { $_.DisplayName -match "Microsoft Information Protection Sync Service" }
$ReqAccessUL = New-Object -TypeName "Microsoft.Open.AzureAD.Model.RequiredResourceAccess"
$ReqAccessUL.ResourceAppId = $SvcPrincipalUL.AppId
$Role4 = New-Object -TypeName "Microsoft.Open.AzureAD.Model.ResourceAccess" -ArgumentList "8b2071cd-015a-4025-8052-1c0dba2d3f64", "Role"
$ReqAccessUL.ResourceAccess = $Role4

$SvcPrincipalGr = Get-AzureADServicePrincipal -All $true | ? { $_.DisplayName -match "Microsoft Graph" }
$ReqAccessGr = New-Object -TypeName "Microsoft.Open.AzureAD.Model.RequiredResourceAccess"
$ReqAccessGr.ResourceAppId = $SvcPrincipalGr.AppId[0]

$Scope1 = New-Object -TypeName "Microsoft.Open.AzureAD.Model.ResourceAccess" -ArgumentList "e1fe6dd8-ba31-4d61-89e7-88639da4683d", "Scope"
$ReqAccessGr.ResourceAccess = $Scope1
New-AzureADApplication -DisplayName $DisplayName -ReplyURLs http://localhost -RequiredResourceAccess @($ReqAccess, $ReqAccessUL, $ReqAccessGr)
$WebApp = Get-AzureADApplication -Filter "DisplayName eq '$DisplayName'"

New-AzureADServicePrincipal -AppId $WebApp.AppId
$WebAppKey = New-Guid
$Date = Get-Date

New-AzureADApplicationPasswordCredential -ObjectId $WebApp.ObjectID -startDate $Date -endDate $Date.AddYears(1) -Value $WebAppKey.Guid -CustomKeyIdentifier "Password"
$TenantID = (Get-AzureADCurrentSessionInfo).tenantid

# Generate Authentication Token scripts

'"A browser will launch to the created web application to provide Admin consent for the required API permissions. Please log in with tenant admin credentials to provide permissions for this application.  If you are unable to provide this consent, please provide the URL below to your tenant administrator."' | Out-File ~\Desktop\Grant-AdminConsentUL.ps1

'$weburl = "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/CallAnAPI/appId/'+$WebApp.AppId+'/isMSAApp/"' | Out-File ~\Desktop\Grant-AdminConsentUL.ps1 -Append
"" | Out-File ~\Desktop\Grant-AdminConsentUL.ps1 -Append

'$weburl' | Out-File ~\Desktop\Grant-AdminConsentUL.ps1 -Append
'"Press Enter below to launch the browser"' | Out-File ~\Desktop\Grant-AdminConsentUL.ps1 -Append
"" | Out-File ~\Desktop\Grant-AdminConsentUL.ps1 -Append

'Pause' | Out-File ~\Desktop\Grant-AdminConsentUL.ps1 -Append

'Start-Process $weburl' | Out-File ~\Desktop\Grant-AdminConsentUL.ps1 -Append
'$ServiceAccount = Get-Credential -Message "Enter the on-premises service account credentials"' | Out-File ~\Desktop\Set-AIPAuthenticationUL.ps1
'$DelegatedUser = Get-Credential -Message "Enter the cloud AIP scanner service account credentials"' | Out-File ~\Desktop\Set-AIPAuthenticationUL.ps1 -append

"Set-AIPAuthentication -AppID " + $WebApp.AppId + " -AppSecret " + $WebAppKey.Guid + " -TenantID " + $TenantID.Guid + ' -DelegatedUser $DelegatedUser -OnBehalfOf $ServiceAccount' | Out-File ~\Desktop\Set-AIPAuthenticationUL.ps1 -append

"Restart-Service AIPScanner" | Out-File ~\Desktop\Set-AIPAuthenticationUL.ps1 -append

 

 

 

 

 

 

 

After you run this script, you will need to run the Grant-AdminConsentUL.ps1 script on the desktop in the context of a global admin to authorize the application permissions. We will run the other script later in this article.

 

Configuring AIP Azure Log Analytics (Optional)

Although this step is technically optional, we recommend configuring analytics prior to running your first scan so you can begin to visualize your data risk as shown in the initial image in this article. In the AIP blade of the Azure Portal, you will see Configure analytics (preview) under the Manage section. Click on this and you should see a page like the one below.

ala.png

If you already have a configured ALA Workspace for this purpose, check the box next to it and press OK. Otherwise, click the + Create new workspace link.

 

Fill in the items shown in the image below:

 

  • Log Analytics Workspace (must be unique across Azure)
  • Azure Subscription (If this is not populated, you will need to get access or have someone with access to the subscription create the workspace)
  • A new or existing Resource group
  • The Location closest to your users (usually this will be in the same geography as your tenant)
  • A Pricing tier (usually Per GB or Standalone. Free tier only stores logs for 7 days)
  • Press OK.

ALANew.png

Finally, back in the Configure analytics (preview) blade, check the box next to the workspace and click OK

ala2.png

NOTE: Checking the box next to Enable deeper analytics allows the actual matched content to be stored in the Log Analytics workspace. This could include many types of sensitive information such as PII, Credit Card Numbers, and Banking Information. This option is typically used during testing of automatic conditions and not widely used in production settings due to the sensitive nature of the collected data. If this is used in a production setting, extreme caution should be taken with securing access to this workspace.

 

AIP Scanner Profile Configuration

Configuration of the AIP scanner is now done via the Central Management User Interface in the Azure Portal. We will quickly walk through the minimum configuration elements to install a functional scanner in discover mode.

 

The AIP scanner Profiles blade can be found in the AIP blade on the left side in the Scanner section. Follow the steps below to create and configure an AIP scanner profile.

 

  • Under Scanner, click on Profiles and click the + Add button at the top to create a new profile.
    Profiles.png
  • In the Add a new profile blade, provide a Profile name.
  • Under Policy enforcement, set Enforce to Off.
  • Click Save.
    NewProfile.png
  • Once the profile is saved, under Profile settings, click on Configure repositories.
    ConfRepo.png
  • In the Repositories blade, click + Add.
  • In the Repository blade, enter the path to your repository (\\Fileserver\Documents or https://SharePointServer/Documents)
    Repo.png
  • Leave the settings as Profile default and click Save.

There are many other options and settings for the Scanner profiles, please see our official documentation for additional details on these.

 

Installing the AIP Scanner

We should now have all prerequisites in place to install the AIP scanner. To do this, type the command below in an Administrative PowerShell window.

 

 

 

 

 

 

 

Install-AIPScanner -Profile "ProfileName"

 

 

 

 

 

 

You will be prompted to enter the local AIP scanner service account credentials in Domain\AccountName format and to provide the SQL Server instance name (This will be ServerName or ServerName\SQLExpress depending on the version you installed).

 

If you encounter any errors, please validate that the installer account has the permissions mentioned in the On-Premises Prerequisites and you do not have any firewall issues reaching the SQL server or Azure.

 

Now that you have the AIP scanner service installed, you can run the Set-AIPAuthentication command to get the non-interactive authentication token.

 

In the Admin PowerShell prompt, run the Set-AIPAuthenticationUL.ps1 script from the desktop. This will ask for the credentials of the on-premises AIP scanner service account and the cloud service account. The service is then restarted to allow it to use the new token and pull down policy.

 

The same Set-AIPAuthentication command can be used on multiple servers in your tenant even if they use different profiles.

 

The scanner should be fully functional at this point and you can run the commands below to verify the state (should be idle) and start the initial discovery scan.

 

 

 

 

 

 

Get-AIPScannerStatus

Start-AIPScan

 

 

 

 

 

 

After a few minutes you will begin seeing data start to flow into your Data discovery (Preview) dashboard in the azure portal. Since you are only doing discovery, you will not see any labeled or protected files (unless you have been using AIP before running the scanner), but you will see the identified files and the sensitive data types found in the configured repositories.

discovery.png

There is also a blade under Analytics named Recommendations (Preview) that will be populated by this data. Any sensitive information types discovered that do not have associated automatic classification conditions will display in this blade.

 

You may then click on the sensitive information type and a fly-out panel will allow you to assign the information type to a classification label. This allows you to quickly map your sensitive information to classification labels.

recommendations.png

NOTE: The AIP scanner will only trigger on conditions which are set to Automatic.

 

Once you have configured these conditions, you can return to the profile in the Azure portal and change the settings to the ones below.

 

  • Schedule: Always
  • Info types to be discovered: Policy only
  • Enforce: On
  • Save

Profile2.png

Because we set the schedule to Always, the scanner will begin monitoring the files automatically within 5 minutes. If you want to start the scan yourself, follow the instructions below.

 

  • In the AIP blade, under Scanner, click on Nodes.
  • Select your AIP Scanner server and click Start in the toolbar.

The result will be similar to the image shown below with labeled and protected files and the distribution graph showing in the Data discovery (Preview) dashboard.

1.png

Please let us know in the comments if you have any questions on this approach. If you are interested in how Microsoft uses the AIP scanner, please see the MSIT showcase at https://aka.ms/ScannerShowcase.

 

Thanks,

 

The Information Protection Customer Experience Engineering Team

6 Comments
Super Contributor

I remember similar posts before. Is this a new version of such guide? Maybe you should have an up to date document somewhere and only post a link in blog, so you don't have to hunt for the most recent post.

Frequent Contributor

Is there any other licensing needed? Does it come with O365 E3, E5, do any additional add-ons cover this usage?

@Oleg K,

 

This is for the Unified Labeling scanner which is still in public preview.  I will add a link to the classic version at the top of the document.

 

@Timothy Balk 

 

The AIP scanner is included with the AIP P1 and P2 SKUs which are included in EMS/M365 E3 and E5 respectively or may be bought standalone.  The scanner can be used for discovery with P1/E3 SKUs and full discovery, classification, labeling, and protection with the P2/E5 SKUs. 

 

Thanks,

Kevin

Occasional Contributor

I've noticed a significant delay, as in hours, in the amount of time it takes for discovery data to appear in the portal. Is this normal? Also, is there no longer a local report that can be viewed like we had with the classic client? This makes testing much more difficult when trying to validate new settings, custom sensitive types, etc. Thanks!

@Scott Barr,

 

The delay can vary depending on the location of your log analytics workspace versus your tenant.  I know that the creation of a workspace defaults to Australia, so if you accidentally set it to that and your tenant is located in North America it could account for the delay.  Keep in mind though that AIP analytics are still in preview so there may be inconsistent results.  Per the local reports, you should still be able to find the reports at C:\Users\<scannerserviceuser>\appdata\local\Microsoft\MSIP\Scanner\Reports just as you did in the classic scanner version.

 

Thanks,

Kevin

Occasional Contributor

I thought I had read that the UL version of AIP Scanner only reported to the portal. We were not seeing new reports on the server itself in the /reports folder but can confirm they are there now. The local report does not indicate anything was discovered but I would have expected the repository we're testing with to be reported with no results in the portal. Unfortunately, nothing is reported in the portal. I'll go with inconsistent results for now.

 

The workspace is in NA - not an issue there.

 

Since this was an upgrade from classic I am inclined to remove the labels that were copied from the Azure portal and start fresh. The discovery was working as expected with classic but the scanner service consistently stopped after a scan, hence the upgrade.

 

Thanks,

 

-Scott