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

Error while extracting the Accepted Domain list #4446

Closed
skoley09 opened this issue Mar 13, 2024 · 1 comment · Fixed by #4448
Closed

Error while extracting the Accepted Domain list #4446

skoley09 opened this issue Mar 13, 2024 · 1 comment · Fixed by #4448
Labels
Bug Something isn't working Exchange Online

Comments

@skoley09
Copy link

Description of the issue

We have more than 580 Accepted domains and while extracting the same via EXOAcceptedDomain configuration to monitor the same, we are encountering same error at a particular domain. The error message is mentioned below -

{InvalidData}
System.Management.Automation.ParameterBindingValidationException: Cannot validate argument on parameter 'Identity'. The argument "20.co.in" does not match the "(?=^.{1,254}$)(^(?:(?!\d+.|-)[a-zA-Z0-9_-]{1,63}(?<!-).?)+(?:[a-zA-Z]{2,})$)" pattern. Supply an argument that matches "(?=^.{1,254}$)(^(?:(?!\d+.|-)[a-zA-Z0-9_-]{1,63}(?<!-).?)+(?:[a-zA-Z]{2,})$)" and try the command again. ---> System.Management.Automation.ValidationMetadataException: The argument "20.co.in" does not match the "(?=^.{1,254}$)(^(?:(?!\d+.|-)[a-zA-Z0-9_-]{1,63}(?<!-).?)+(?:[a-zA-Z]{2,})$)" pattern. Supply an argument that matches "(?=^.{1,254}$)(^(?:(?!\d+.|-)[a-zA-Z0-9_-]{1,63}(?<!-).?)+(?:[a-zA-Z]{2,})$)" and try the command again.
at System.Management.Automation.ValidatePatternAttribute.ValidateElement(Object element)
at System.Management.Automation.ParameterBinderBase.BindParameter(CommandParameterInternal parameter, CompiledCommandParameter parameterMetadata, ParameterBindingFlags flags)
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
"Error during Export:"
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.131.2\DSCResources\MSFT_EXOAcceptedDomain\MSFT_EXOAcceptedDomain.psm1: line 392
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.131.2\Modules\M365DSCReverse.psm1: line 649
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.24.131.2\Modules\M365DSCUtil.psm1: line 1312
at , : line 1

Please check and help us fixing this issue, so that we can use this configuration to monitor the accepted domains.

Microsoft 365 DSC Version

1.24.131.2

Which workloads are affected

Exchange Online

The DSC configuration

NA

Verbose logs showing the problem

NA

Environment Information + PowerShell Version

NA
@malauter
Copy link
Member

The number in your domain 20.co.in is not covered in the validation regex of the resource. We will update the expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Exchange Online
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants