Closed shurick81 closed 3 years ago
What OS version is the ADFS server running that your are running this DSC config on? The ADFS AdditionalErrorPageInfo
property was added to Windows Server 2016 and above.
it is Windows Server 2016 that I tried it with. Now I also created a test environment in Azure from "2016-Datacenter-smalldisk" sku, installed ADFS and I can see that it returns null on $(Get-AdfsProperties).AdditionalErrorPageInfo
. Do you need to install WIndows/ADFS in any special way for that?
Hi @shurick81, I've done some more testing on this and you are right, the AdditionalErrorPageInfo
property was only introduced in Windows Server 2019. I'll raise a PR to resolve this.
Details of the scenario you tried and the problem that is occurring
Tried to apply the MonitoringInterval but got an error when applying.
Verbose logs showing the problem
Suggested solution to the issue
Implement more flexibility in the code for those installations of ADFS where AdditionalErrorPageInfo does not exist in the configuration. Perhaps it might depend on the Windows/ADFS version. In some installations that I maintain,
$(Get-AdfsProperties).AdditionalErrorPageInfo
returns a value, on the other it returns$null
.The same code works on a Windows 2019 machine without the issue.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used
1.1.0