{"id":855,"date":"2020-10-12T10:35:51","date_gmt":"2020-10-12T15:35:51","guid":{"rendered":"https:\/\/itblog.ldlnet.net\/?p=855"},"modified":"2021-03-15T15:54:58","modified_gmt":"2021-03-15T20:54:58","slug":"error-policy-is-missing-when-trying-to-load-and-run-an-aip-mip-ul-on-premises-content-scan","status":"publish","type":"post","link":"https:\/\/itblog.ldlnet.net\/index.php\/2020\/10\/12\/error-policy-is-missing-when-trying-to-load-and-run-an-aip-mip-ul-on-premises-content-scan\/","title":{"rendered":"Error: Policy Is Missing when trying to load and run an AIP\/MIP UL on-premises content scan"},"content":{"rendered":"\n<h2 class=\"has-text-align-center has-purple-color has-text-color wp-block-heading\"><a href=\"#workaround\" data-type=\"internal\" data-id=\"#workaround\">WORKAROUND UPDATE!<br>SEE AT END OF THIS POST!<\/a><\/h2>\n\n\n\n<p>There is a current BUG is has been filed with Microsoft that relates to AIP\/MIP Scanner and running a Unified Labeling content scan on premises. The main issue is with the Security and Compliance Center and it replicating the Policies that you create for your Sensitivity Labels in your M365 Tenant. <\/p>\n\n\n\n<p>Since these Policies will not replicate, your content scans will fail and you will see the following error within the Azure Portal under Azure Information Protection:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-1024x538.png\" alt=\"\" class=\"wp-image-856\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-1024x538.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-300x158.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-768x404.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image.png 1227w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Error: Policy is missing in AIP<\/figcaption><\/figure>\n\n\n\n<p>You will be able to verify that the Policies are present in the Security and Compliance Center under the Information Protection page and the Policies Page in Azure Information Protection:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-1-1024x414.png\" alt=\"\" class=\"wp-image-857\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-1-1024x414.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-1-300x121.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-1-768x310.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-1-1536x620.png 1536w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-1.png 1592w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p> <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"411\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-2-1024x411.png\" alt=\"\" class=\"wp-image-858\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-2-1024x411.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-2-300x120.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-2-768x308.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-2.png 1370w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-medium-pink-color has-text-color\"><strong>NOTE: I had created my labels and label policies in Azure AIP and migrated them to Security and Compliance Center via the following <em><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/information-protection\/configure-policy-migrate-labels#to-migrate-azure-information-protection-labels\" target=\"_blank\">LINK<\/a><\/em><\/strong><\/p>\n\n\n\n<p>What you will also notice, if you create a policy in SCC, it will NOT replicate to Azure.<\/p>\n\n\n\n<p>Next, I checked to see if the AIP Scanner Service Account has the policies applied to it as a member recipient of the policies. It needs to so that the account can apply labels to on premises accounts through the policy.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-3-1024x554.png\" alt=\"\" class=\"wp-image-859\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-3-1024x554.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-3-300x162.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-3-768x415.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-3.png 1335w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"user-content-let's-move-on...\">Let&#8217;s continue troubleshooting&#8230;<\/h2>\n\n\n\n<p>The AIP Scanner account was a member of a defined policies in the Security &amp; Compliance Center and you are still having issues:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Is the AIP Scanner service started?<\/li><li>If the answer is no, start it<\/li><li>From PowerShell run the following:<\/li><\/ol>\n\n\n<pre class=\"lang:PowerShell nums:False\">Get-AIPScannerStatus | fl<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"152\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-4.png\" alt=\"\" class=\"wp-image-860\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-4.png 602w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-4-300x76.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><figcaption>Sample Output<\/figcaption><\/figure><\/div>\n\n\n\n<p>It says it is scanning, but you are not getting results AND you have that<strong> Error: Policy is missing<\/strong> statement in the Nodes Tab of AIP.<\/p>\n\n\n\n<p>The next thing to verify this whether or not the policy is replicating from SCC to Azure. This is done through PowerShell by running the following:<\/p>\n\n\n\n<p><strong>Connect to SCC PowerShell<\/strong><\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Connect to SCC PowerShell\">$userCredential = get-credential\n\nWrite-Host \"Connecting to your Security and Compliance Center PowerShell Console\"\n\n$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https:\/\/ps.compliance.protection.outlook.com\/powershell-liveid\/ -Credential $UserCredential -Authentication Basic -AllowRedirection\n\nImport-PSSession $Session -DisableNameChecking\n<\/pre>\n\n\n\n<p><strong>Check the policy replication status<\/strong><\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Get Label Policy Replication Status\">Get-labelpolicy | select-object Name,DistributionStatus,WhenCreated,WhenChanged | FL\n\n<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"223\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-7-1024x223.png\" alt=\"\" class=\"wp-image-863\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-7-1024x223.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-7-300x65.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-7-768x167.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-7.png 1087w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Sample Output<br>Distribution Status is in <strong>Pending<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<p>Normal replication is up to 24 hours for a change or policy addition. So, if your WhenChanged or WhenCreated values are more than 24 hours old, then they are NOT replicating. You can further verify this by running the following:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Get Label Policy Detail Replication Status\">get-labelpolicy -identity \"Name of your Policy\" | fl DistributionResults,LastStatusUpdateTime\n\n<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-9-1024x116.png\" alt=\"\" class=\"wp-image-865\" width=\"692\" height=\"78\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-9-1024x116.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-9-300x34.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-9-768x87.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-9.png 1418w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><figcaption>Sample Output<br><strong>Replication Taking Longer Than Expected Error<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">What do I do next?<\/h3>\n\n\n\n<p>If you have this error, it would be best to log a support call with Microsoft and explain that you have the<strong> AIP UL Policy Replication Error<\/strong>. From my sources they are saying this is a known issue with the SCC and Azure that will be remediated by the end of October. <br><br>So, in the meantime, I guess we will wait!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"workaround\">WORKAROUND<\/h2>\n\n\n\n<p>After troubleshooting with this issue with some of my Microsoft Colleagues, I was able to get the Scanner to start scanning properly with out the error being listed in the Azure Portal. Here are the steps.<\/p>\n\n\n\n<p>On the scanner node, right-click a file or folder and choose to protect it:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"272\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-13.png\" alt=\"\" class=\"wp-image-883\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-13.png 557w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-13-300x146.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/figure><\/div>\n\n\n\n<p>Next, within the AIP Application, choose <strong>Help and Feedback<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1011\" height=\"202\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-14.png\" alt=\"\" class=\"wp-image-884\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-14.png 1011w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-14-300x60.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-14-768x153.png 768w\" sizes=\"auto, (max-width: 1011px) 100vw, 1011px\" \/><\/figure><\/div>\n\n\n\n<p>Next, choose <strong>Reset Settings<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"403\" height=\"361\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-15.png\" alt=\"\" class=\"wp-image-885\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-15.png 403w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-15-300x269.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/figure><\/div>\n\n\n\n<p>Click <strong>Continue<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"492\" height=\"271\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-16.png\" alt=\"\" class=\"wp-image-886\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-16.png 492w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-16-300x165.png 300w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/figure><\/div>\n\n\n\n<p>Once completed, click <strong>Close<\/strong>, then exit the AIP application. This clears all the registry settings within the scanner node.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Now you will want to reset all the local files for the scanner<\/strong><\/p>\n\n\n\n<p>First, stop the scanner services for the scanner and network discovery<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Stop AIP Scanner and Related Services\">Stop-Service AIPScanner\n\nStop-Service AIPNetworkDiscovery\n<\/pre>\n\n\n\n<p>Next, navigate to the following folder for the local account that is used for AIP scanner. Example &#8211; <strong><em>C:\\Users\\AIPScanner\\AppData\\Local\\Microsoft\\MSIP<\/em><\/strong><br><strong>Rename or Delete<\/strong> the MIP folder in that MSIP directory. <br>(I renamed my folder to mip-old2)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"832\" height=\"360\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-17.png\" alt=\"\" class=\"wp-image-887\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-17.png 832w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-17-300x130.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-17-768x332.png 768w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><figcaption>Rename or Delete the <strong>mip<\/strong> folder<\/figcaption><\/figure>\n\n\n\n<p>Restart the services you stopped<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Stop AIP Scanner and Related Services\">Start-Service AIPScanner\n\nStart-Service AIPNetworkDiscovery\n<\/pre>\n\n\n\n<p>You should now see the scanner as Running and Working within the Azure Portal. No more errors should be listed.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"218\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-18-1024x218.png\" alt=\"\" class=\"wp-image-888\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-18-1024x218.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-18-300x64.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-18-768x164.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/10\/image-18.png 1496w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>Thanks to Angel Marroquin at Microsoft for the assistance on this workaround!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-dark-gray-background-color has-dark-gray-color is-style-wide\"\/>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\"><strong>THANKS FOR VIEWING!<\/strong><br>KEEP THE COMMENTS FLOWING!<\/h2>\n\n\n\n<p class=\"has-small-font-size\"><strong><em>REFERENCES:<\/em><\/strong><br><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/information-protection\/configure-policy-migrate-labels\" target=\"_blank\">Migrate AIP Policies<\/a><br><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/information-protection\/faqs\" target=\"_blank\" rel=\"noreferrer noopener\">AIP FAQ<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WORKAROUND UPDATE!SEE AT END OF THIS POST! There is a current BUG is has been filed with Microsoft that relates to AIP\/MIP<\/p>\n<p class=\"link-more\"><a class=\"myButt \" href=\"https:\/\/itblog.ldlnet.net\/index.php\/2020\/10\/12\/error-policy-is-missing-when-trying-to-load-and-run-an-aip-mip-ul-on-premises-content-scan\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":782,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[195,267,265,194,3,266],"tags":[270,90,272,192,177,239,94],"class_list":["post-855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-azure-active-directory","category-microsoft365","category-office365","category-powershell","category-security-and-compliance","tag-aip","tag-azure","tag-azure-information-protection","tag-azure-portal","tag-microsoft-365","tag-microsoft365","tag-security-and-compliance","odd"],"_links":{"self":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/comments?post=855"}],"version-history":[{"count":7,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/855\/revisions"}],"predecessor-version":[{"id":916,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/855\/revisions\/916"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media\/782"}],"wp:attachment":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media?parent=855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/categories?post=855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/tags?post=855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}