Symptoms
While following WAP deployment guide you may face the following error (section 3, step 22 on page 15):
$cnctString = 'Data Source=<WAP_DB_Address>;User ID=<User_ID>;Password=<Password>'
Set-MgmtSvcRelyingPartySettings -Target @('Admin', 'Tenant') -MetadataEndpoint https://WAP-APS:4486/wap/metadata.xml -ConnectionString $cnctString -DisableCertificateValidation
Set-MgmtSvcRelyingPartySettings : Invalid URI: The format of the URI could not be determined.
At line:1 char:1
+ Set-MgmtSvcRelyingPartySettings -Target @('Admin', 'Tenant') -MetadataEndpoint ' ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-MgmtSvcRelyingPartySettings], UriFormatException
+ FullyQualifiedErrorId : System.UriFormatException,Microsoft.WindowsAzure.Config.PowerShell.Claims.SetRelyingPartySettings
Cause
Incorrect format of link in <wapPoaRedirectUrl>
section of /usr/local/share/WAP/wap-config.xml
Resolution
Before doing step 22, it is necessary to define the link <wapPoaRedirectUrl>
, and it should be specified with http/https prefix, e.g. https://linmn.domain.tld
; instead of just linmn.domain.tld
After correcting this, please restart WAP:
# service WAP restart