-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting System.Management.Automation.MethodInvocationException when running Export-M365DSCConfiguration #3352
Comments
Could you run a test in a plain powershell session? The error description looks like an issue with an Intune resource. |
@William-Francillette could you have a look at this within #3309 |
@meklulose , could you share more information about the policy you are trying to export please? The IntuneSettingCatalogCustomPolicyWindows10 is very generic and to troubleshoot the issue I would need to know which setting is configured in your policy |
@William-Francillette I get the the same error when running in plain PowerShell session. It always fails when trying to extract "Microsoft Edge (EDM) Configuration Profile" |
@William-Francillette Please see the following screenshot |
Thanks, that's perfect - I'll have a look at it tonight |
@meklulose, I was able to export the resource, compile it, test it without drift and update it, using those settings in the screenshot - I've added the export below Could you share more trace of the error please as the issue could be external to the resource itself Thanks
|
I tried using certificate thumbprint and client secret, both authentications worked Can you ensure your service principal has at least |
@William-Francillette How would I get more detailed tracing? My event viewer also shows the same error message The problem might be the policy named "Microsoft Edge Configuration Profile" is there a way I can run the script but exclude it from trying to extract this policy? Thanks for your help! |
The display name is not a key word so it should be fine The code below should allow you to display Get-TargetResource output - Could you modify any variable value such as <variable> and send us the output please:
Could you make sure to hide any confidential information please except for special character that may cause the export to fail such as quotes for example |
@meklulose any chance you could share additional information? Is this still an issue with the current version of M365DSC? |
Closing due to inactivity |
I am getting this issue again using version '1.23.1115.1'. Similar policy settings (Edge Browser), did we ever find out what the issue was? Thanks in advance. |
I am getting the following error:
I am running the following command:
Export-M365DSCConfiguration -Components @("IntuneSettingCatalogCustomPolicyWindows10") -ApplicationId $ApplicationId -ApplicationSecret $ApplicationSecret -TenantId $TenantId
I am able to get rest of the configuration for Intune out. I just have issue with this one. I am running this on windows PowerShell ISE. Microsoft365DSC version 1.23.517.1
The text was updated successfully, but these errors were encountered: