I have successfully configured for one web application. While adding the second web application using PowerShell script I have given wrong urn and now when I try to update the urn in SharePoint it throws the error
Exception calling "Add" with "2" argument(s): "An item with the same key has already been added.
The script which I used to update the second web application is below:
Add-PSSnapin "Microsoft.SharePoint.PowerShell" $sts = Get-SPTrustedIdentityTokenIssuer | where {$_.Name -eq "ADFS"} $uri = new-object System.Uri("https://contoso.com/") $sts.ProviderRealms.Add($uri, "urn:sharepoint:MyNewWebApplicationURL") $sts.Update();