xExchOABVirtualDirectory: Large numbers of Offline Address Books cause scaling issue #447
Labels
enhancement
The issue is an enhancement request.
help wanted
The issue is up for grabs for anyone in the community.
When using xExchOABVirtualDirectory with large numbers of offline address books, this resource takes a very long time to test.
For example we have approximately 65 thousand OABs and in testing with Invoke-DscResource, this resource took 2321 seconds to complete.
This was using a relatively simple configuration:
I think the issue exists here:
https://github.com/dsccommunity/xExchange/blob/078fd0883cf2f5560513bd3a4ee0187aee32182a/source/DSCResources/MSFT_xExchOabVirtualDirectory/MSFT_xExchOabVirtualDirectory.psm1#L87-L97
I think there are two fixes which could be applied:
If($PSBoundParameters.ContainsKey('OABsToDistribute'))
as Test and Set both do.The text was updated successfully, but these errors were encountered: