While Exporting Configuration of Planner | It return an empty .ps1 File
RohitRaj-18 opened this issue · 2 comments
Description of the issue
I have been trying to export the Configuration of Planner using DSC. While running in PowerShell Window i can see its going through all the component however the upon completion its giving an empty .ps1 output file.
Microsoft 365 DSC Version
1.24.515.2
Which workloads are affected
Planner
The DSC configuration
Export-M365DSCConfiguration -Components @("PlannerBucket", "PlannerPlan", "PlannerTask") -ApplicationId $AppID -TenantId $TenantID -CertificateThumbprint $CertificateThumbprint -Path ($Path +"\Planner") -FileName plannerConfig.ps1
Verbose logs showing the problem
No response
Environment Information + PowerShell Version
No response
I've been seeing a few of these issues recently. To troubleshoot them I have ran the relevant Get command in PowerShell to get the relevant items and this usually reveals an underlying error which doesn't seem to be handled by the export routine. This is especially annoying when it looks as if the export is running through the objects. Also check the Microsoft365DSC event log as sometimes errors can be caught there.
Could you share the graph API permissions of your application that you’re using to export the data?