DCToolbox icon indicating copy to clipboard operation
DCToolbox copied to clipboard

New-DCConditionalAccessPolicyDesignReport // Request_ResourceNotFound

Open Juan-Pablo-Rodrigo opened this issue 4 years ago • 1 comments

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 Sample-Error

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

Juan-Pablo-Rodrigo avatar Dec 17 '20 11:12 Juan-Pablo-Rodrigo

I have something similar. Were you able to resolve the issue?

kathodion avatar Mar 17 '22 12:03 kathodion