Microsoft365DSC
Microsoft365DSC copied to clipboard
Export-M365DSCConfiguration: Lower & upper quotation mark „“ not escaped
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 = @([email protected]");
SecurityEnabled = $False;
TenantId = $OrganizationName;
Visibility = "Private";
}
}
}
M365TenantConfig -ConfigurationData .\ConfigurationData.psd1
@ssoabx I opened a PR at another repository that should fix your issue. Let's wait until it is merged.