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

Export-M365DSCConfiguration: Lower & upper quotation mark „“ not escaped #5533

Open
ssoabx opened this issue Dec 11, 2024 · 1 comment · May be fixed by microsoft/ReverseDSC#40
Open

Comments

@ssoabx
Copy link
Contributor

ssoabx commented Dec 11, 2024

Description of the issue

When doing an export with Export-M365DSCConfiguration it escapes quotation marks usually but I found that „“ isn't handled, resulting in errors when using the configuration for other things.
Expected behavior would be backtips to escape for them.

Microsoft 365 DSC Version

1.24.1120.1

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

# Generated with Microsoft365DSC version 1.24.1120.1
# For additional information on how to use Microsoft365DSC, please visit https://aka.ms/M365DSC
param (
)

Configuration M365TenantConfig
{
    param (
    )

    $OrganizationName = $ConfigurationData.NonNodeData.OrganizationName

    Import-DscResource -ModuleName 'Microsoft365DSC' -ModuleVersion '1.24.1120.1'

    Node localhost
    {
        AADGroup "AADGroup-Example"
        {
            ApplicationId         = $ConfigurationData.NonNodeData.ApplicationId;
            CertificateThumbprint = $ConfigurationData.NonNodeData.CertificateThumbprint;
            Description           = "Example text. App Cloud for Nonprofit Volunteer Management.";
            DisplayName           = "Example";
            Ensure                = "Present";
            GroupAsMembers        = @();
            GroupTypes            = @("Unified");
            Id                    = "2e6fdcd9-fda1-41ee-8a9e-d86ccb2d053d";
            MailEnabled           = $True;
            MailNickname          = "Example";
            MemberOf              = @();
            Members               = @();
            Owners                = @(Example@customer.com");
            SecurityEnabled       = $False;
            TenantId              = $OrganizationName;
            Visibility            = "Private";
        }
    }
}

M365TenantConfig -ConfigurationData .\ConfigurationData.psd1
@FabienTschanz
Copy link
Contributor

@ssoabx I opened a PR at another repository that should fix your issue. Let's wait until it is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants