You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
SCRetentionCompliancePolicy / SCRetentionComplianceRule 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, SCRetentionComplianceRule:
outputs the SCRetentionCompliancePolicy and SCRetentionComplianceRule not in desired state
The DSC configuration that is used to reproduce the issue (as detailed as possible)
MOF file extract:
/*
@TargetNode='localhost'
@GeneratedBy=xxx
@GenerationDate=
@GenerationHost=xxx
*/
instance of MSFT_Credential as $MSFT_Credential1ref
{
Password = "";
UserName = "";
};
instance of MSFT_SCRetentionCompliancePolicy as $MSFT_SCRetentionCompliancePolicy1ref
{
ResourceID = "[SCRetentionCompliancePolicy]Container-106-60488f15-bb59-47c4-bbae-a1c6476ac66f";
Enabled = False;
Credential = $MSFT_Credential1ref;
Ensure = "Present";
Comment = "Standard Aufbewahrungsfrist für Exchange Online 93 Tage";
SourceInfo = "::18::3::SCRetentionCompliancePolicy";
Name = "Exchange Online Standard Retention Policy";
ModuleName = "Microsoft365DSC";
RestrictiveRetention = False;
ExchangeLocation = {
"All"
};
ModuleVersion = "1.22.921.1";
ConfigurationName = "MainConfig";
};
instance of MSFT_Credential as $MSFT_Credential2ref
{
Password = "";
UserName = "";
};
instance of MSFT_SCRetentionCompliancePolicy as $MSFT_SCRetentionCompliancePolicy2ref
{
ResourceID = "[SCRetentionCompliancePolicy]Container-107-c5322adc-7b19-4538-86f7-322838b905c3";
TeamsChatLocation = {
"All"
};
Enabled = False;
Credential = $MSFT_Credential2ref;
Ensure = "Present";
Comment = "Standard Aufbewahrungsrichtlinie für Microsoft Teams Chat Protokolle";
SourceInfo = "::28::3::SCRetentionCompliancePolicy";
Name = "Microsoft Teams Chat Standard Retention Policy";
ModuleName = "Microsoft365DSC";
RestrictiveRetention = False;
ModuleVersion = "1.22.921.1";
ConfigurationName = "MainConfig";
};
instance of MSFT_Credential as $MSFT_Credential3ref
{
Password = "";
UserName = "";
};
instance of MSFT_SCRetentionCompliancePolicy as $MSFT_SCRetentionCompliancePolicy3ref
{
ResourceID = "[SCRetentionCompliancePolicy]Container-108-4068df3c-caed-45c1-bdff-7ad20cc9d344";
Enabled = True;
Credential = $MSFT_Credential3ref;
Ensure = "Present";
Comment = "Standard Aufbewahrungsrichtlinie für Microsoft OneDrive";
SharePointLocation = {
"All"
};
SourceInfo = "::38::3::SCRetentionCompliancePolicy";
Name = "OneDrive Standard Retention Policy";
ModuleName = "Microsoft365DSC";
RestrictiveRetention = False;
OneDriveLocation = {
"All"
};
ModuleVersion = "1.22.921.1";
ConfigurationName = "MainConfig";
};
instance of MSFT_Credential as $MSFT_Credential4ref
{
Password = "";
UserName = "";
};
instance of MSFT_SCRetentionComplianceRule as $MSFT_SCRetentionComplianceRule1ref
{
ResourceID = "[SCRetentionComplianceRule]Container-109-a192156a-22ae-4cdb-8010-ee370f2816c4";
ExpirationDateOption = "ModificationAgeInDays";
RetentionDurationDisplayHint = "Days";
Ensure = "Present";
RetentionDuration = "93";
Policy = "Exchange Online Standard Retention Policy";
SourceInfo = "::49::3::SCRetentionComplianceRule";
Name = "Exchange Online Standard Retention Rule";
ModuleName = "Microsoft365DSC";
RetentionComplianceAction = "Keep";
Credential = $MSFT_Credential4ref;
ModuleVersion = "1.22.921.1";
ConfigurationName = "MainConfig";
};
instance of MSFT_Credential as $MSFT_Credential5ref
{
Password = "";
UserName = "";
};
instance of MSFT_SCRetentionComplianceRule as $MSFT_SCRetentionComplianceRule2ref
{
ResourceID = "[SCRetentionComplianceRule]Container-110-5ab79cc9-613f-49a4-8fd0-7e69ab93fc5d";
ExpirationDateOption = "CreationAgeInDays";
RetentionDurationDisplayHint = "Days";
Ensure = "Present";
RetentionDuration = "730";
Policy = "Microsoft Teams Chat Standard Retention Policy";
SourceInfo = "::60::3::SCRetentionComplianceRule";
Name = "Microsoft Teams Chat Standard Retention Rule";
ModuleName = "Microsoft365DSC";
RetentionComplianceAction = "KeepAndDelete";
Credential = $MSFT_Credential5ref;
ModuleVersion = "1.22.921.1";
ConfigurationName = "MainConfig";
};
instance of MSFT_Credential as $MSFT_Credential6ref
{
Password = "";
UserName = "";
};
instance of MSFT_SCRetentionComplianceRule as $MSFT_SCRetentionComplianceRule3ref
{
ResourceID = "[SCRetentionComplianceRule]Container-111-96ccd1d5-cfc5-4a3e-a1d7-718b186080e6";
ExpirationDateOption = "ModificationAgeInDays";
RetentionDurationDisplayHint = "Days";
Ensure = "Present";
RetentionDuration = "93";
Policy = "OneDrive Standard Retention Policy";
SourceInfo = "::71::3::SCRetentionComplianceRule";
Name = "OneDrive Standard Retention Rule";
ModuleName = "Microsoft365DSC";
RetentionComplianceAction = "Keep";
Credential = $MSFT_Credential6ref;
ModuleVersion = "1.22.921.1";
ConfigurationName = "MainConfig";
};
instance of OMI_ConfigurationDocument
{
Version="2.0.0";
MinimumCompatibleVersion = "1.0.0";
CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"};
Author="";
GenerationDate="";
GenerationHost="xxx";
ContentType="PasswordEncrypted";
Name="MainConfig";
};
#### The operating system the target node is running
<!--
Please provide as much as possible about the target node, for example
edition, version, build and language.
On OS with WMF 5.1 the following command can help get this information.
OsName : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage : en-US
OsMuiLanguages : {en-US, de-DE}
-->
#### Version of the DSC module that was used ('dev' if using current dev branch)
1.22.921.1
The text was updated successfully, but these errors were encountered:
atdheekurteshi
changed the title
SCRetentionCompliancePolicy and SCRetentionComplianceRule not in desired state output false but the settings where correctly applied/configured in a tenant
SCRetentionCompliancePolicy and SCRetentionComplianceRule not in desired state output false
Sep 27, 2022
Details of the scenario you tried and the problem that is occurring
SCRetentionCompliancePolicy / SCRetentionComplianceRule 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, SCRetentionComplianceRule:
but the following Power-Shell command
outputs the SCRetentionCompliancePolicy and SCRetentionComplianceRule not in desired state
The DSC configuration that is used to reproduce the issue (as detailed as possible)
MOF file extract:
The text was updated successfully, but these errors were encountered: