You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
Using the AddressList DscResource, it produces an error due to the use of a combination of filters. However, the provided input is valid. The issue seems to reside in the 'empty' key-value pairs of either NewAddressListParams or SetAddressListParams.
Verbose logs showing the problem
VERBOSE: [hostname]: LCM: [ Start Resource ] [[EXOAddressList]AllEquipment]
VERBOSE: [hostname]: LCM: [ Start Test ] [[EXOAddressList]AllEquipment]
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Testing Address List configuration for All Equipment
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Getting configuration of AddressList for All Equipment
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Found AddressList All Equipment
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Get-TargetResource Result:
ApplicationId=***; CertificatePassword=***; CertificatePath=***;
CertificateThumbprint=***; ConditionalCompany=; ConditionalCustomAttribute1=;
ConditionalCustomAttribute10=; ConditionalCustomAttribute11=; ConditionalCustomAttribute12=;
ConditionalCustomAttribute13=; ConditionalCustomAttribute14=; ConditionalCustomAttribute15=;
ConditionalCustomAttribute2=; ConditionalCustomAttribute3=; ConditionalCustomAttribute4=; ConditionalCustomAttribute5=;
ConditionalCustomAttribute6=; ConditionalCustomAttribute7=; ConditionalCustomAttribute8=;
ConditionalCustomAttribute9=; ConditionalDepartment=; ConditionalStateOrProvince=; Credential=$null; DisplayName=All
Equipment; Ensure=Present; IncludedRecipients=(); Name=All Equipment; RecipientFilter=((Alias -ne $null) -and
(RecipientTypeDetails -eq 'EquipmentMailbox')); TenantId=***
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Current Values: ApplicationId=***;
CertificatePassword=***; CertificatePath=***; CertificateThumbprint=***;
ConditionalCompany=; ConditionalCustomAttribute1=; ConditionalCustomAttribute10=; ConditionalCustomAttribute11=;
ConditionalCustomAttribute12=; ConditionalCustomAttribute13=; ConditionalCustomAttribute14=;
ConditionalCustomAttribute15=; ConditionalCustomAttribute2=; ConditionalCustomAttribute3=;
ConditionalCustomAttribute4=; ConditionalCustomAttribute5=; ConditionalCustomAttribute6=; ConditionalCustomAttribute7=;
ConditionalCustomAttribute8=; ConditionalCustomAttribute9=; ConditionalDepartment=; ConditionalStateOrProvince=;
Credential=$null; DisplayName=All Equipment; Ensure=Present; IncludedRecipients=(); Name=All Equipment;
RecipientFilter=((Alias -ne $null) -and (RecipientTypeDetails -eq 'EquipmentMailbox')); TenantId=***
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Target Values: ApplicationId=***;
CertificateThumbprint=***; DisplayName=All Equipment; Ensure=Present; Name=All
Equipment; RecipientFilter=((Alias -ne $null) -and (RecipientTypeDetails -eq "EquipmentMailbox")); TenantId=***;
Verbose=True
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Test-TargetResource returned False
VERBOSE: [hostname]: LCM: [ End Test ] [[EXOAddressList]AllEquipment] in 0.6110 seconds.
VERBOSE: [hostname]: LCM: [ Start Set ] [[EXOAddressList]AllEquipment]
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Setting Address List configuration for All Equipment
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Getting configuration of AddressList for All Equipment
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Found AddressList All Equipment
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Get-TargetResource Result:
ApplicationId=***; CertificatePassword=***; CertificatePath=***;
CertificateThumbprint=***; ConditionalCompany=; ConditionalCustomAttribute1=;
ConditionalCustomAttribute10=; ConditionalCustomAttribute11=; ConditionalCustomAttribute12=;
ConditionalCustomAttribute13=; ConditionalCustomAttribute14=; ConditionalCustomAttribute15=;
ConditionalCustomAttribute2=; ConditionalCustomAttribute3=; ConditionalCustomAttribute4=; ConditionalCustomAttribute5=;
ConditionalCustomAttribute6=; ConditionalCustomAttribute7=; ConditionalCustomAttribute8=;
ConditionalCustomAttribute9=; ConditionalDepartment=; ConditionalStateOrProvince=; Credential=$null; DisplayName=All
Equipment; Ensure=Present; IncludedRecipients=(); Name=All Equipment; RecipientFilter=((Alias -ne $null) -and
(RecipientTypeDetails -eq 'EquipmentMailbox')); TenantId=***
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Address List 'All Equipment' already exists. Updating settings
VERBOSE: [hostname]: [[EXOAddressList]AllEquipment] Setting Address List 'All Equipment'
with values: ConditionalCompany=$null; ConditionalCustomAttribute1=$null; ConditionalCustomAttribute10=$null;
ConditionalCustomAttribute11=$null; ConditionalCustomAttribute12=$null; ConditionalCustomAttribute13=$null;
ConditionalCustomAttribute14=$null; ConditionalCustomAttribute15=$null; ConditionalCustomAttribute2=$null;
ConditionalCustomAttribute3=$null; ConditionalCustomAttribute4=$null; ConditionalCustomAttribute5=$null;
ConditionalCustomAttribute6=$null; ConditionalCustomAttribute7=$null; ConditionalCustomAttribute8=$null;
ConditionalCustomAttribute9=$null; ConditionalDepartment=$null; ConditionalStateOrProvince=$null; Confirm=False;
DisplayName=All Equipment; Identity=All Equipment; IncludedRecipients=$null; Name=All Equipment;
RecipientFilter=((Alias -ne $null) -and (RecipientTypeDetails -eq "EquipmentMailbox"))
##[error]Failed to start the DSC configuration. Error: You can't use customized filters and precanned filters at the same time.
Suggested solution to the issue
According to the Docs, the following are considered precanned filters:
IncludedRecipients
ConditionalCompany
ConditionalDepartment
ConditionalStateOrProvince
ConditionalCustomAttribute1 to ConditionalCustomAttribute15.
Suggested to avoid this all together, and update the DscResource to remove all empty KeyValue pairs. Any error then still produced might be due to the provided input, combining custom filters with precanned filters, but that's an input-error. However, I don't know if this would cause conflicts (on update) when moving from precanned to custom filters or viceversa.
Details of the scenario you tried and the problem that is occurring
Using the AddressList DscResource, it produces an error due to the use of a combination of filters. However, the provided input is valid. The issue seems to reside in the 'empty' key-value pairs of either NewAddressListParams or SetAddressListParams.
Verbose logs showing the problem
Suggested solution to the issue
According to the Docs, the following are considered precanned filters:
Suggested to avoid this all together, and update the DscResource to remove all empty KeyValue pairs. Any error then still produced might be due to the provided input, combining custom filters with precanned filters, but that's an input-error. However, I don't know if this would cause conflicts (on update) when moving from precanned to custom filters or viceversa.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
1.22.713.1
The text was updated successfully, but these errors were encountered: