-
Notifications
You must be signed in to change notification settings - Fork 50
Description
Problem description
The ExchEcpVirtualDirectory and ExchOwaVirtualDirectory resources do not have the OAuthAuthentication property available. This was added in Exchange Server 2019 CU14 gaining support for HMA with ECP and OWA.
https://learn.microsoft.com/en-us/microsoft-365/enterprise/configure-exchange-server-for-hybrid-modern-authentication?view=o365-worldwide#steps-to-enable-hybrid-modern-authentication-for-owa-and-ecp
https://learn.microsoft.com/en-us/powershell/module/exchange/set-ecpvirtualdirectory?view=exchange-ps#-oauthauthentication
https://learn.microsoft.com/en-us/powershell/module/exchange/set-owavirtualdirectory?view=exchange-ps#-oauthauthentication
Verbose logs
N/A
DSC configuration
ExchEcpVirtualDirectory ECPVDir
{
Identity = "$($Node.NodeName)\ecp (Default Web Site)"
Credential = $ExchangeAdminCredential
OAuthAuthentication = $true
AllowServiceRestart = $true
}
ExchOwaVirtualDirectory OWAVdir
{
Identity = "$($Node.NodeName)\owa (Default Web Site)"
Credential = $ExchangeAdminCredential
OAuthAuthentication = $true
AllowServiceRestart = $true
}Suggested solution
Add a OAuthAuthentication property to the ExchEcpVirtualDirectory and ExchOwaVirtualDirectory resources.
Operating system the target node is running
OsName : Microsoft Windows Server 2022 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage : en-US
OsMuiLanguages : {en-US}
Exchange Server edition and version the target node is running
ServerRole : Mailbox
Edition : Enterprise
AdminDisplayVersion : Version 15.2 (Build 1748.10)
PowerShell version and build the target node is running
Name Value
---- -----
PSVersion 5.1.20348.2849
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.20348.2849}
BuildVersion 10.0.20348.2849
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
ExchangeDsc version
Name Version Path
---- ------- ----
ExchangeDsc 2.0.0 C:\Program Files\WindowsPowerShell\Modules\ExchangeDsc\2.0.0\ExchangeDsc.psd1