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
SCRetentionCompliancePolicy TeamsChatLocation not enabled in the Tenant after creating Microsoft Teams Chat Standard Retention Policy/Rule via DSC
#2338
Details of the scenario you tried and the problem that is occurring
SCRetentionCompliancePolicy -Name 'Microsoft Teams Chat Standard Retention Policy' can be created with the following PS Code but the settings weren't applied correctly on the tenant:
SCRetentionCompliancePolicy -Name 'Microsoft Teams Chat Standard Retention Policy' can be crated with -TeamsChatLocation 'All' attribute but it was not enabled on the Tenant via Microsoft365DSC.
In PowerShell when I run the following commands everything seems to be working fine for SCRetentionCompliancePolicy and i can see the changes in the Tenant and TeamsChatLocation its enabled:
PS C:\Windows\system32> New-RetentionCompliancePolicy -Name 'Microsoft Teams Chat Standard Retention Policy' -Comment 'abc' -Enabled:$false -RestrictiveRetention:$false -TeamsChatLocation 'All'
Name Workload Enabled Mode
---- -------- ------- ----
Microsoft Teams Chat Standard Retention Policy Exchange, SharePoint, OneDriveForBusiness, Skype, ModernGroup, DynamicScope False Enforce
PS C:\Windows\system32>
The DSC configuration that is used to reproduce the issue (as detailed as possible)
MOF file extract:
/*
@TargetNode='localhost'
@GeneratedBy=
@GenerationDate=
@GenerationHost=
*/
instance of MSFT_Credential as $MSFT_Credential2ref
{
Password = ""
UserName = "";
};
instance of MSFT_SCRetentionCompliancePolicy as $MSFT_SCRetentionCompliancePolicy2ref
{
ResourceID = "[SCRetentionCompliancePolicy]Container-107-7a9fb40b-94a8-42c4-96ae-08fcb8304d34";
TeamsChatLocation = {
"All"
};
Enabled = False;
Credential = $MSFT_Credential2ref;
Ensure = "Present";
Comment = "Standard Aufbewahrungsrichtlinie für Microsoft Teams Chat Protokolle";
SourceInfo = "::20::3::SCRetentionCompliancePolicy";
Name = "Microsoft Teams Chat Standard Retention Policy";
ModuleName = "Microsoft365DSC";
RestrictiveRetention = False;
ModuleVersion = "1.22.921.1";
ConfigurationName = "MainConfig";
};
instance of MSFT_SCRetentionComplianceRule as $MSFT_SCRetentionComplianceRule2ref
{
ResourceID = "[SCRetentionComplianceRule]Container-110-f9a02134-4c19-4b97-8009-e8baaec2a7ab";
ExpirationDateOption = "CreationAgeInDays";
RetentionDurationDisplayHint = "Days";
Ensure = "Present";
RetentionDuration = "730";
Policy = "Microsoft Teams Chat Standard Retention Policy";
SourceInfo = "::52::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 OMI_ConfigurationDocument
{
Version="2.0.0";
MinimumCompatibleVersion = "1.0.0";
CompatibleVersionAdditionalProperties= {"Omi_BaseResource:ConfigurationName"};
Author="";
GenerationDate=
GenerationHost="";
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 performing wrong when creating Microsoft Teams Chat Standard Retention Policy/Rule via DSC
SCRetentionCompliancePolicy TeamsChatLocation not enabled after creating Microsoft Teams Chat Standard Retention Policy/Rule via DSC
Sep 27, 2022
atdheekurteshi
changed the title
SCRetentionCompliancePolicy TeamsChatLocation not enabled after creating Microsoft Teams Chat Standard Retention Policy/Rule via DSC
SCRetentionCompliancePolicy TeamsChatLocation not enabled in the Tenant after creating Microsoft Teams Chat Standard Retention Policy/Rule via DSC
Sep 27, 2022
Issue identified. The Get-RetentionCompliancePolicy requires the -DistributionDetail switch to be included in order for the location parameters to be properly returned. Updating the Get-TargetResource to include this switch.
NikCharlebois
added a commit
to NikCharlebois/Microsoft365DSC
that referenced
this issue
Oct 6, 2022
Details of the scenario you tried and the problem that is occurring
SCRetentionCompliancePolicy -Name 'Microsoft Teams Chat Standard Retention Policy' can be created with the following PS Code but the settings weren't applied correctly on the tenant:
SCRetentionCompliancePolicy -Name 'Microsoft Teams Chat Standard Retention Policy' can be crated with -TeamsChatLocation 'All' attribute but it was not enabled on the Tenant via Microsoft365DSC.
In PowerShell when I run the following commands everything seems to be working fine for SCRetentionCompliancePolicy and i can see the changes in the Tenant and TeamsChatLocation its enabled:
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: