Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

EXOTransportRules not showing up in HTML or JSON

Open jagatjb opened this issue 11 months ago • 0 comments

Description of the issue

When I am using New-M365DSCDeltaReport, some Exchange Transport rules where i know changes have happened are not showing in the html file generated. Same happens when I am generating report in html, it is those same exchange transport rules missing. But the ps1 file does contains those missing exchange transport rules. I am not sure the problem here as similar rules with similar naming conventions and parameters are being reported fine in html format. I did check in json format, the issue is the same. I have updated the microsoft 365 dsc module to the latest, but the problem remains the same. Now i do not see any warnings in verbose. previously i did find some warnings in verbose when i am using New-M365DSCDeltaReport.

Below are the warnings which i got previously. We need your help here and its a big issue for us.

WARNING: ConvertTo-DSCObject: "From" (line 8741): The 'from' keyword is not supported in this version of the language. WARNING: ConvertTo-DSCObject: "type":"AdaptiveCard","originator":"[0-9a-fA-F]" (line 27174): Unexpected token 'type":"AdaptiveCard","originator":"[0-9a-fA-F]' in expression or statement. WARNING: ConvertTo-DSCObject: "" (line 27174): Missing type name after '['. WARNING: ConvertTo-DSCObject: "" (line 27174): You must provide a value expression following the '-' operator. WARNING: ConvertTo-DSCObject: "" (line 27174): Missing ']' after array index expression. WARNING: ConvertTo-DSCObject: "application/adaptivecard+json">"" (line 27488): Unexpected token 'application/adaptivecard+json">"' in expression or statement. WARNING: ConvertTo-DSCObject: "}" (line 27750): Unexpected token '}' in expression or statement. WARNING: ConvertTo-DSCObject: "EXOTransportRule" (line 4169): Resource 'EXOTransportRule' requires that a value of type 'String' be provided for property 'Name'. WARNING: ConvertTo-DSCObject: "You've successfully logged into the _____People Yammer application” “You've" (line 4180): Unexpected token 'You've successfully logged into the _____People Yammer application” “You've' in expression or statement. WARNING: ConvertTo-DSCObject: "" (line 4180): There is an incomplete property assignment block in the instance definition.

WARNING: ConvertTo-DSCObject: "From" (line 8741): The 'from' keyword is not supported in this version of the language. WARNING: ConvertTo-DSCObject: "type":"AdaptiveCard","originator":"[0-9a-fA-F]" (line 27174): Unexpected token 'type":"AdaptiveCard","originator":"[0-9a-fA-F]' in expression or statement. WARNING: ConvertTo-DSCObject: "" (line 27174): Missing type name after '['. WARNING: ConvertTo-DSCObject: "" (line 27174): You must provide a value expression following the '-' operator. WARNING: ConvertTo-DSCObject: "" (line 27174): Missing ']' after array index expression. WARNING: ConvertTo-DSCObject: "application/adaptivecard+json">"" (line 27488): Unexpected token 'application/adaptivecard+json">"' in expression or statement. WARNING: ConvertTo-DSCObject: "}" (line 27750): Unexpected token '}' in expression or statement. WARNING: ConvertTo-DSCObject: "EXOTransportRule" (line 4169): Resource 'EXOTransportRule' requires that a value of type 'String' be provided for property 'Name'.

Microsoft 365 DSC Version

1.24.221.1

Which workloads are affected

Exchange Online

The DSC configuration

NA

Verbose logs showing the problem

WARNING: ConvertTo-DSCObject: "From" (line 8741): The 'from' keyword is not supported in this version of the language.
WARNING: ConvertTo-DSCObject: "type":"AdaptiveCard","originator":"[0-9a-fA-F]" (line 27174): Unexpected token 'type":"AdaptiveCard","originator":"[0-9a-fA-F]' in expression or statement.
WARNING: ConvertTo-DSCObject: "" (line 27174): Missing type name after '['.
WARNING: ConvertTo-DSCObject: "" (line 27174): You must provide a value expression following the '-' operator.
WARNING: ConvertTo-DSCObject: "" (line 27174): Missing ']' after array index expression.
WARNING: ConvertTo-DSCObject: "application/adaptivecard\+json">"" (line 27488): Unexpected token 'application/adaptivecard\+json">"' in expression or statement.
WARNING: ConvertTo-DSCObject: "}" (line 27750): Unexpected token '}' in expression or statement.
WARNING: ConvertTo-DSCObject: "EXOTransportRule" (line 4169): Resource 'EXOTransportRule' requires that a value of type 'String' be provided for property 'Name'.
WARNING: ConvertTo-DSCObject: "You've successfully logged into the ____ People Yammer application”
“You've" (line 4180): Unexpected token 'You've successfully logged into the ____ People Yammer application”
“You've' in expression or statement.
WARNING: ConvertTo-DSCObject: "" (line 4180): There is an incomplete property assignment block in the instance definition.


WARNING: ConvertTo-DSCObject: "From" (line 8741): The 'from' keyword is not supported in this version of the language.
WARNING: ConvertTo-DSCObject: "type":"AdaptiveCard","originator":"[0-9a-fA-F]" (line 27174): Unexpected token 'type":"AdaptiveCard","originator":"[0-9a-fA-F]' in expression or statement.
WARNING: ConvertTo-DSCObject: "" (line 27174): Missing type name after '['.
WARNING: ConvertTo-DSCObject: "" (line 27174): You must provide a value expression following the '-' operator.
WARNING: ConvertTo-DSCObject: "" (line 27174): Missing ']' after array index expression.
WARNING: ConvertTo-DSCObject: "application/adaptivecard\+json">"" (line 27488): Unexpected token 'application/adaptivecard\+json">"' in expression or statement.
WARNING: ConvertTo-DSCObject: "}" (line 27750): Unexpected token '}' in expression or statement.
WARNING: ConvertTo-DSCObject: "EXOTransportRule" (line 4169): Resource 'EXOTransportRule' requires that a value of type 'String' be provided for property 'Name'.

Environment Information + PowerShell Version

No response

jagatjb avatar Feb 27 '24 09:02 jagatjb