Skip to content
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

The authentication method on Export-M365DSCConfiguration with Planner has issues and not documented correctly #2032

Closed
KuotingChiu opened this issue Jun 27, 2022 · 5 comments · Fixed by #2230
Assignees
Labels
Authentication Bug Something isn't working Planner

Comments

@KuotingChiu
Copy link

KuotingChiu commented Jun 27, 2022

Details of the scenario you tried and the problem that is occurring

While the authentication method table has a green checkbox for "certificate thumbprint" authentication for Planner workload, it does not work. Four issues:

  1. First issues, using the workload parameter, it just failed without showing any Planner component not working with the credential thumbprint authentication.
  2. Second issue, it prompts for user credential for the "PlannerBucket" workload (it seems PlannerBucket" component only works with the credential authentication though).
  3. 3rd issue , it shows "PlannerTask" component does not work with "Certificate thumbprint" authentication when using the -component parameter.
  4. Fourth issue, if any Planner component not working with the "certificate thumbprint" authentication then the "Authentication Methods" table in the document should be updated.

Verbose logs showing the problem

PS C:\WINDOWS\system32> Export-M365DSCConfiguration -Path $Path -FileName $FileName -ApplicationId $ApplicationId -CertificateThumbprint $CertificateThumbprint -TenantId $TenantId -Workload "Planner"
[WARNING] Based on the provided Authentication parameters, the following resources cannot be extracted:
PPTenantIsolationSettings SCAuditConfigurationPolicy SCCaseHoldPolicy SCCaseHoldRule SCComplianceCase SCComplianceSearch SCComplianceSearchAction SCComplianceTag SCDeviceConditionalAccessPolicy SCDeviceConfigurationPolicy SCDLPCompliancePolicy SCDLPComplianceRule SCFilePlanPropertyAuthority SCFilePlanPropertyCategory SCFilePlanPropertyCitation SCFilePlanPropertyDepartment SCFilePlanPropertyReferenceId SCFilePlanPropertySubCategory SCLabelPolicy SCRetentionCompliancePolicy SCRetentionComplianceRule SCRetentionEventType SCSensitivityLabel SCSupervisoryReviewPolicy SCSupervisoryReviewRule TeamsCallingPolicy TeamsChannelsPolicy TeamsClientConfiguration TeamsEmergencyCallingPolicy TeamsEmergencyCallRoutingPolicy TeamsFederationConfiguration TeamsGuestCallingConfiguration TeamsGuestMeetingConfiguration TeamsGuestMessagingConfiguration TeamsMeetingBroadcastConfiguration TeamsMeetingBroadcastPolicy TeamsMeetingConfiguration TeamsMeetingPolicy TeamsMessagingPolicy TeamsPstnUsage TeamsTenantDialPlan TeamsUpdateManagementPolicy TeamsUpgradeConfiguration TeamsUpgradePolicy TeamsVoiceRoute TeamsVoiceRoutingPolicy
⌛ Export took {13 seconds}
PS C:\WINDOWS\system32>
PS C:\WINDOWS\system32> $DscResources = Get-M365DSCAllResources | ?{$_ -like "Planner*"}
PS C:\WINDOWS\system32> foreach($resource in $DscResources)

{
$FileName = "$resource.ps1"
Export-M365DSCConfiguration -Path $Path -FileName $FileName -Components $resource -ApplicationId $ApplicationId -CertificateThumbprint $CertificateThumbprint -TenantId $TenantId
}

Connecting to {MicrosoftGraph}...✅
[1/1] Extracting [PlannerBucket]...
[1/173] uDeploy - {}
[1/173] another team II - {}
[1/173] Team1 - {}
[1/173] Office Team - {}
[1/173] Project3964 - Marks Team Success - {}
[1/173] ApplicationAccessGroup1 - {}
[1/173] Analytics Like You Mean It - {}
[1/173] marks team 5 - {}
[1/173] GB Buzz - {}
[1/173] Jim Shea Follower community - {}
[1/173] Mark Polacheck Cred Test 3 - {}
[1/173] KMT-TeamTest - {}
[1/173] mTE - {}
[1/173] Mark Craig George Test - {}
[1/173] CLT 2 - {}
[1/173] Marks Team 3 - {}
[1/173] The Hartford Environmental Action Team (HEAT) - {}
[1/173] Mark Polacheck How Created - {}
[1/173] Mark Polacheck Debug Cred 3 - {}
[1/173] Marks Team 4 - {}
[1/173] JVP-TEAM - {}
[1/173] Mark Polacheck take 100 - {}
[1/173] Group Benefits - {}
[1/173] Collaboration Operations Dev - {}
[1/173] Disney Geeks - {}
[1/173] Working Parents - {}
[1/173] Mark and George Debug 2 - {}
[1/173] Mark Polacheck Channel test - {}
[1/173] SharePoint Success - {}
[1/173] Team2 Test - {}
[1/173] Marks Team 6 - {}
[1/173] Deployment team - {}
[1/173] GB, Legal, WC, SIU V2 - {}
[1/173] Retention POC - {}
[1/173] Employee Resource Groups (ERGs) - {}
[1/173] Content Design - {}
[1/173] mark polacheck cred test - {}
[1/173] Marks Team K - {}
[1/173] TEAMS Implementation Test - {}
[1/173] Publishing Research - {}
[1/173] Intersphere Records - {}
[1/173] UiPath - {}
[1/173] GC test2 - {}
[1/173] ExternalAccess1 - {}
[1/173] Project3492 - Marks 8 - {}
[1/173] MyTeam - {}
[1/173] DKTestSite - {}
[1/173] SDF Internal - {}
[1/173] Project4339 - Mark Polacheck Debug - {}
[1/173] SDF Public - {}
[1/173] Project4339 - Mark Polacheck Debug Issue - {}
[1/173] Office 365 Migration Experts - {}
[1/173] Curt's Sandbox - {}
[1/173] ServiceNowDEV - {}
[1/173] Teams DevOps - {}
[1/173] Marks Debug Test - {}
[1/173] Project3340 - MarkPolacheck - {}
[1/173] Teams API Test - {}
[1/173] EWS - {}
[1/173] Mark Polacheck Debug Mambo - {}
[1/173] Marks NoMember Team - {}
[1/173] Mark Polacheck Test Channels - {}
[1/173] Marks New Test again - {}
[1/173] THW - {}
[1/173] Project4339 - Marks Kwality - {}
[1/173] test1 - {}
[1/173] Jenkins - {}
[1/173] SharePointInventoryDev - {}
[1/173] distgroup - {}
[1/173] snc test - {}
[1/173] Workday Outlook Learning DEV - {}
[1/173] test123 - {}
[1/173] Diversity & Inclusion - {}
[1/173] Wellness Buzz - {}
[1/173] O365 Kanban - {}
[1/173] Intune Pilot - {}
[1/173] Mark Polacheck Debug 2 - {}
[1/173] Careers Buzz - {}
[1/173] AWS Test - {}
[1/173] Mark Polacheck Resource Own - {}
[1/173] Project3636 - Mark K - {}
[1/173] Sandbox - {}
[1/173] SNC test 5 - {}
[1/173] Project3192 - Marks Z - {}
[1/173] Marks Test Take 999 - {}
[1/173] M G C Test - {}
[1/173] Middle / Large / Global Spec Ops - {}
[1/173] MS Teams DEV - {}
[1/173] Instructional Design - {}
[1/173] Mark Polacheck Test - {}
[1/173] My Team Site - {}
[1/173] Woof - {}
[1/173] Design and Technology - {}
[1/173] Aetna Integration Activities - Marks Test - {}
[1/173] Project2895 - Mark Polacheck - {}
[1/173] Stag Toastmasters - {}
[1/173] George Test - {}
[1/173] Marks More Channels - {}
[1/173] The Spin Way - {}
[1/173] Mark Polacheck Token Debug - {}
[1/173] Mark Polacheck Debug Take 10 - {}
[1/173] Mark is crazy - {}
[1/173] CRO, Intake, Liability, Litigation, Navigators - {}
[1/173] Talent and Performance Buzz - {}
[1/173] Mark George Craig Appl - {}
[1/173] APG - {}
[1/173] Teams API Test New1 - {}
[1/173] BIPOC2 - {}
[1/173] Leadership Development - {}
[1/173] Project3832 - Marks 7 - {}
[1/173] Project4339 - yee-haw - {}
[1/173] TeamChannelTest - {}
[1/173] trdt - {}
[1/173] GitHub Notifications - {}
[1/173] team4 - {}
[1/173] Test Bucket - {}
[1/173] Test team - {}
[1/173] Project3636 - marks Team 6 - {}
[1/173] Collaboration Express - {}
[1/173] File Explorer Test - {}
[1/173] THW team - {}
[1/173] Project4339 - Marks 2 - {}
[1/173] GB Ops - {}
[1/173] Project4339 - MarksTest - {}
[1/173] CDT Team Site Test - {}
[1/173] jvptest_externalaccess - {}
[1/173] Project4415 - marks 9 - {}
[1/173] Mark Polacheck Cred Test 2 - {}
[1/173] ACE - Analytics Computing Environment - {}
[1/173] Microsoft 365 Message Center - {}
[1/173] Marks Post Token refresh - {}
[1/173] team 3 - {}
[1/173] Auto and Property - {}
[1/173] Mark and George - {}
[1/173] yahoo - {}
[1/173] AWS Integration - {}
[1/173] Project3573 - Marks brand new - {}
[1/173] Exoprise Monitoring - {}
[1/173] Mark Polacheck Debug - {}
[1/173] M G C Team - {}
[1/173] SNC - testing - {}
[1/173] Yammer QnA PoC - {}
[1/173] DevOps Integration - {}
[1/173] Snowtest - {}
[1/173] Actuarial O365 Migration - {}
[1/173] PL / SC Ops - {}
[1/173] mark and george take two - {}
[1/173] Marks Error Debug - {}
[1/173] Project3573 - Marks - {}
[1/173] AllowedToCreateOffice365Group - {}
[1/173] Mark Polacheck Finally - {}
[1/173] EWS SPO Development - {}
[1/173] Project4300 - Mark Polacheck - {}
[1/173] Project4368 - craigs UAT - {}
[1/173] BSR Integration Project - {}
[1/173] All Company - {}
[1/173] Project3964 - Marks POC - {}
[1/173] TESTDK - {}
[1/173] GC Test Community - {}
[1/173] Marks Additional Team - {}
[1/173] Leadership - {}
[1/173] GB, Legal, WC, SIU - {}
[1/173] test - {}
[1/173] Mark Polacheck Cred Debug - {}
[1/173] BSR Compliance - {}
[1/173] Clinical and WC - {}
[1/173] MarksTeam2 - {}
[1/173] Message Center Changes To M365 - {}
[1/173] All Company Team - {}
[1/173] Ameya-team - {}
[1/173] Enterprise Projects - {}
[1/173] Project4368 - Testing MTE - {}
[1/173] Project3636 - Mark X - {}
⌛ Export took {75 seconds}
Connecting to {MicrosoftGraph}...✅
[1/1] Extracting [PlannerPlan]...⌛ Export took {13 seconds}
[WARNING] Based on the provided Authentication parameters, the following resources cannot be extracted:
PlannerTask
⌛ Export took {12 seconds}
PS C:\WINDOWS\system32>

Suggested solution to the issue

Fix he M365DSC module and/orupdate the documentation

The DSC configuration that is used to reproduce the issue (as detailed as possible)

# insert configuration here

The operating system the target node is running

Windows 10

Version of the DSC module that was used ('dev' if using current dev branch)

1.22.622.1

@andikrueger andikrueger added Bug Something isn't working Planner Authentication labels Jun 27, 2022
@andikrueger
Copy link
Collaborator

Please have a look at #1872 . There are known limitations as the underlying modules do not allow all authentication methods.

@ykuijs
Copy link
Member

ykuijs commented Jul 1, 2022

I am working on an update of the Export functionality. This update allows you to specify multiple authentication methods and the code selecting the most secure one. I will look at this issue as well!

@ykuijs ykuijs self-assigned this Jul 1, 2022
@ykuijs
Copy link
Member

ykuijs commented Jul 1, 2022

Found the root cause of the numbering issue as shown and which broke the export. Am looking at the authentication options now.

@ykuijs
Copy link
Member

ykuijs commented Jul 6, 2022

I have updated the Planner resource so they now only support Credentials and have updated the documentation to reflect this change. The changes will be included in my next PR.

@KuotingChiu
Copy link
Author

KuotingChiu commented Jul 6, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Authentication Bug Something isn't working Planner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants