microsoft / Microsoft365DSC

Manages, configures, extracts and monitors Microsoft 365 tenant configurations
https://aka.ms/M365DSC
MIT License
1.58k stars 494 forks source link

Bug : TeamsComplianceRecordingPolicy, Attribut ComplianceRecordingApplications is not exported as a list of string, but as a list of object #3890

Closed pkernevez closed 10 months ago

pkernevez commented 11 months ago

Description of the issue

In the MOF file, the attribut is declared like that (string[]):

[Write, Description("A list of application instances of policy-based recording applications to assign to this policy. The Id of each of these application instances must be the ObjectId of the application instance as obtained by the Get-CsOnlineApplicationInstance cmdlet.")] String ComplianceRecordingApplications[];

But the export produce code like that:

        TeamsComplianceRecordingPolicy "TeamsComplianceRecordingPolicy-Tag:-rec"
        {
            ApplicationId                                          = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint                            = $ConfigurationData.NonNodeData.CertificateThumbprint;
            ComplianceRecordingApplications        = @(@{Id='xxxyyyyxx-abcd-efgh-abcd-wqhequwewqehq'});
            Description                                              = "Policy for xxx";
            DisableComplianceRecordingAudioNotificationForCalls = $False;
            Enabled                                                   = $True;
            Ensure                                                     = "Present";
            Identity                                                    = "Tag:rec";
            TenantId                                                   = $OrganizationName;
            WarnUserOnRemoval                              = $True;
        }

Microsoft 365 DSC Version

1.23.1101.1

Which workloads are affected

Teams

The DSC configuration

No response

Verbose logs showing the problem

No response

Environment Information + PowerShell Version

No response

pkernevez commented 11 months ago

Related to https://github.com/microsoft/Microsoft365DSC/issues/3848 and https://github.com/microsoft/Microsoft365DSC/pull/3817

pkernevez commented 11 months ago

Are you waiting for something else ?