We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some values like: NotifyPolicyTipCustomText, NotifyEmailCustomText and Comment as Quotation marks.
I am getting a FalsePositive for Drift monitoring.
In M365Tenantconfig.PS1, Quotation Mark’s is added with ( Grave Accent character ).
Screenshot from M365Tenantconfig.PS1
This value is replaced as \“DNF or Restricted\” in Localhost.mof file
Eventually, this results in FalsePositive in drift monitoring, Because this is replaced by “left/right double quotation marks” in DSC parsing.
Below are the screenshots from the Event viewer.
==============
use of raw encoding for affected values. even single quotation mark or inverted comma can be problematic
# insert configuration here
The text was updated successfully, but these errors were encountered:
Just to confirm, we are only able to reproduce if the current value in the Compliance center is using these tilted double quotes. If the original message doesn't use them or if you manually update the config file to include the tilted quotes, then it works. We have code to ensure invalid tilted characters are removed at extraction because of various encoding issues we've had in the past. https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/Modules/EncodingHelpers/M365DSCStringEncoding.psm1#L31
Sorry, something went wrong.
FIXES microsoft#3165
ef33078
Merge pull request #3167 from NikCharlebois/FIXES-#3165
826d842
FIXES #3165
Successfully merging a pull request may close this issue.
Details of the scenario you tried and the problem that is occurring
Some values like: NotifyPolicyTipCustomText, NotifyEmailCustomText and Comment as Quotation marks.
I am getting a FalsePositive for Drift monitoring.
In M365Tenantconfig.PS1, Quotation Mark’s is added with ( Grave Accent character ).
Screenshot from M365Tenantconfig.PS1
![image](https://user-images.githubusercontent.com/22946692/231764274-f6bffb74-fa2c-4187-b4fb-7f6c0ea7a97e.png)
This value is replaced as \“DNF or Restricted\” in Localhost.mof file
Eventually, this results in FalsePositive in drift monitoring, Because this is replaced by “left/right double quotation marks” in DSC parsing.
Verbose logs showing the problem
Below are the screenshots from the Event viewer.
==============
Suggested solution to the issue
use of raw encoding for affected values. even single quotation mark or inverted comma can be problematic
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
The operating system the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
The text was updated successfully, but these errors were encountered: