Closed atdheekurteshi closed 2 years ago
Could you share the verbose log of the Test-DSCConfiguration or the Event Log items? Within the Windows Event Log there should be a full overview of which settings are marked as drifted.
@andikrueger
Here it is:
Log Name: M365DSC
Source: MSFT_SCRetentionComplianceRule
Date: 8/5/2022 11:32:05 AM
Event ID: 1
Task Category: (1)
Level: Warning
Keywords: Classic
User: N/A
Computer:
Description:
Event Xml:
This looks like to be connected to #2181.
Could you apply the configuration again and share the verbose log of the the five SCRetention... Resources that are mentioned above_
@andikrueger
Here it is:
Log Name: M365DSC
Source: MSFT_SCRetentionCompliancePolicy
Date: 8/8/2022 11:38:41 AM
Event ID: 1
Task Category: (1)
Level: Warning
Keywords: Classic
User: N/A
Computer:
Description:
Event Xml:
I meant the verbose log of PowerShell:
Start-DSCConfiguration -UseExisting -wait -verbose -force
PS C:\Windows\system32> Start-DscConfiguration -UseExisting -Force -Verbose -Wait
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = ApplyConfiguration,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: Vom Computer '' mit Benutzer-SID '' ist ein LCM-Methodenaufruf eingegangen.
VERBOSE: []: [] Das Konsistenzmodul wird gestartet.
VERBOSE: []: LCM: [ StartenRessource] [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372]
VERBOSE: []: LCM: [ StartenTesten ] [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372]
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Testing configuration of RetentionCompliancePolicy for Exchange Online Standard Retention Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Getting configuration of RetentionCompliancePolicy for Exchange Online Standard Retention Policy
WARNING: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Ihre Verbindung wurde an den folgenden URI umgeleitet: "https://deu01b.ps.compliance.protection.outlook.com/Powershell-LiveId?BasicAuthToOAuthConversion=true;PSVersion=5.1.19041.1682
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] RetentionCompliancePolicy Exchange Online Standard Retention Policy does not exist.
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Current Values: Comment=Standard Aufbewahrungsfrist für Exchange Online 93 Tage; Credential=***; Enabled=False; Ensure=Absent; ExchangeLocation=(All); Name=Exchange Online Standard Retention Policy; RestrictiveRetention=False;
Verbose=True
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Target Values: Comment=Standard Aufbewahrungsfrist für Exchange Online 93 Tage; Credential=***; Enabled=False; Ensure=Present; ExchangeLocation=(All); Name=Exchange Online Standard Retention Policy; RestrictiveRetention=False;
Verbose=True
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Test-TargetResource returned False
VERBOSE: []: LCM: [ BeendenTesten ] [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] in 13.1090 Sekunden.
VERBOSE: []: LCM: [ StartenFestlegen] [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372]
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Setting configuration of RetentionCompliancePolicy for Exchange Online Standard Retention Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Getting configuration of RetentionCompliancePolicy for Exchange Online Standard Retention Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] RetentionCompliancePolicy Exchange Online Standard Retention Policy does not exist.
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Policy Exchange Online Standard Retention Policy is not a Teams Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] Creating new Retention Compliance Policy Exchange Online Standard Retention Policy
VERBOSE: []: LCM: [ BeendenFestlegen] [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372] in 4.5540 Sekunden.
VERBOSE: []: LCM: [ BeendenRessource] [[SCRetentionCompliancePolicy]Container-106-5399e964-9fd2-4ae1-8bd4-9fdc8fcb7372]
VERBOSE: []: LCM: [ StartenRessource] [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c]
VERBOSE: []: LCM: [ StartenTesten ] [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c]
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Testing configuration of RetentionCompliancePolicy for OneDrive Standard Retention Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Getting configuration of RetentionCompliancePolicy for OneDrive Standard Retention Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] RetentionCompliancePolicy OneDrive Standard Retention Policy does not exist.
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Current Values: Comment=Standard Aufbewahrungsrichtlinie für Microsoft OneDrive; Credential=***; Enabled=True; Ensure=Absent; Name=OneDrive Standard Retention Policy; OneDriveLocation=(All); RestrictiveRetention=False;
SharePointLocation=(All); Verbose=True
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Target Values: Comment=Standard Aufbewahrungsrichtlinie für Microsoft OneDrive; Credential=***; Enabled=True; Ensure=Present; Name=OneDrive Standard Retention Policy; OneDriveLocation=(All); RestrictiveRetention=False;
SharePointLocation=(All); Verbose=True
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Test-TargetResource returned False
VERBOSE: []: LCM: [ BeendenTesten ] [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] in 0.4690 Sekunden.
VERBOSE: []: LCM: [ StartenFestlegen] [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c]
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Setting configuration of RetentionCompliancePolicy for OneDrive Standard Retention Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Getting configuration of RetentionCompliancePolicy for OneDrive Standard Retention Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] RetentionCompliancePolicy OneDrive Standard Retention Policy does not exist.
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Policy OneDrive Standard Retention Policy is not a Teams Policy
VERBOSE: []: [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] Creating new Retention Compliance Policy OneDrive Standard Retention Policy
VERBOSE: []: LCM: [ BeendenFestlegen] [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c] in 1.8750 Sekunden.
VERBOSE: []: LCM: [ BeendenRessource] [[SCRetentionCompliancePolicy]Container-108-57e05c73-7202-4c48-bdf6-d885b08eb55c]
VERBOSE: []: LCM: [ StartenRessource] [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e]
VERBOSE: []: LCM: [ StartenTesten ] [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e]
VERBOSE: []: [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] Testing configuration of RetentionComplianceRule for Exchange Online Standard Retention Rule
VERBOSE: []: [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] Getting configuration of RetentionComplianceRule for Exchange Online Standard Retention Rule
VERBOSE: []: [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] RetentionComplianceRule Exchange Online Standard Retention Rule does not exist.
VERBOSE: []: [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] Target Values: Credential=***; Ensure=Present; ExpirationDateOption=ModificationAgeInDays; Name=Exchange Online Standard Retention Rule; Policy=Exchange Online Standard Retention Policy; RetentionComplianceAction=Keep;
RetentionDuration=93; RetentionDurationDisplayHint=Days; Verbose=True
VERBOSE: []: [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] Test-TargetResource returned False
VERBOSE: []: LCM: [ BeendenTesten ] [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] in 0.5000 Sekunden.
VERBOSE: []: LCM: [ StartenFestlegen] [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e]
VERBOSE: []: [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] Setting configuration of RetentionComplianceRule for Exchange Online Standard Retention Rule
VERBOSE: []: [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] Getting configuration of RetentionComplianceRule for Exchange Online Standard Retention Rule
VERBOSE: []: [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] RetentionComplianceRule Exchange Online Standard Retention Rule does not exist.
VERBOSE: []: LCM: [ BeendenFestlegen] [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e] in 2.8560 Sekunden.
VERBOSE: []: LCM: [ BeendenRessource] [[SCRetentionComplianceRule]Container-109-6bf97721-68e1-428e-9ea4-73b937ebe06e]
VERBOSE: []: LCM: [ StartenRessource] [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063]
VERBOSE: []: LCM: [ StartenTesten ] [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063]
VERBOSE: []: [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] Testing configuration of RetentionComplianceRule for OneDrive Standard Retention Rule
VERBOSE: []: [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] Getting configuration of RetentionComplianceRule for OneDrive Standard Retention Rule
VERBOSE: []: [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] RetentionComplianceRule OneDrive Standard Retention Rule does not exist.
VERBOSE: []: [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] Target Values: Credential=***; Ensure=Present; ExpirationDateOption=ModificationAgeInDays; Name=OneDrive Standard Retention Rule; Policy=OneDrive Standard Retention Policy; RetentionComplianceAction=Keep; RetentionDuration=93;
RetentionDurationDisplayHint=Days; Verbose=True
VERBOSE: []: [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] Test-TargetResource returned False
VERBOSE: []: LCM: [ BeendenTesten ] [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] in 0.4840 Sekunden.
VERBOSE: []: LCM: [ StartenFestlegen] [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063]
VERBOSE: []: [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] Setting configuration of RetentionComplianceRule for OneDrive Standard Retention Rule
VERBOSE: []: [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] Getting configuration of RetentionComplianceRule for OneDrive Standard Retention Rule
VERBOSE: []: [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] RetentionComplianceRule OneDrive Standard Retention Rule does not exist.
VERBOSE: []: LCM: [ BeendenFestlegen] [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063] in 2.4380 Sekunden.
VERBOSE: []: LCM: [ BeendenRessource] [[SCRetentionComplianceRule]Container-111-aa179bc3-ae48-45bd-a420-dbda7db63063]
VERBOSE: []: [] Die Konsistenzprüfung ist abgeschlossen.
VERBOSE: Operation 'Invoke CimMethod' complete.
VERBOSE: Time taken for configuration job to complete is 27.92 seconds
Could you run a test with the latest version of M365DSC and check if this is still an issue?
Please update your dependencies and uninstall any outdated dependencies and versions of m365dsc.
@atdheekurteshi have you had a chance to retest?
Closing due to inactivity.
Details of the scenario you tried and the problem that is occurring
SCRetentionCompliancePolicy below settings are correctly applied/configured in our tenant but I don't understand why are they 'NotInDesiredState'.
When I run the following commands in the Power-Shell everything seems to be working fine for SCRetentionCompliancePolicy:
but the following Power-Shell command
outputs the SCRetentionCompliancePolicy not in desired state
The DSC configuration that is used to reproduce the issue (as detailed as possible)
MOF file extract: