DCToolbox
DCToolbox copied to clipboard
New-DCConditionalAccessPolicyDesignReport // Request_ResourceNotFound
I'm getting the error below when running New-DCConditionalAccessPolicyDesignReport
This GUID 'xxxxxxx-xxxx-xxxxxxxxx' is from a security group that was deleted, but the reference is still present in the conditional access policy
Invoke-RestMethod : { "error": { "code": "Request_ResourceNotFound", "message": "Resource 'xxxxxxx-xxxx-xxxxxxxxx' does not exist or one of its queried reference-property objects are not present.", "innerError": { "date": "2020-12-16T23:05:40", "request-id": "222222222222222222222-", "client-request-id": "111111111111111111111111" } } } At C:\Program Files\WindowsPowerShell\Modules\DCToolbox\1.0.15\DCToolbox.psm1:685 char:29
- ... ryRequest = Invoke-RestMethod -Headers $HeaderParams -Uri $GraphUri - ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
- FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
I have something similar. Were you able to resolve the issue?