Replace or update metadata.xml

Question

Monday, February 26, 2018 1:29 PM

Hello,

In my ADFS server, i got a relying party trusts that created before(SAP). The issue is that there was modifications on the instance that host SAP and a new metadata has been generated for this relying party.

How i could upload this new metadata to my relying party trusts ?

Thanks.   

All replies (5)

Monday, February 26, 2018 5:51 PM ✅Answered

Then there is no way to upload new metadata.

You can either recreate the RP or look through the metadata and see what's changed e.g. endpoint, certificate etc. and update manually.


Monday, February 26, 2018 2:39 PM

If the relying party trust was created from the metadata, it has the URL of it already so just select it in the management console and click the following (and follow instructions on the screen):

If you never entered the URL before, before clicking on the link like above, add the URL:

Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.


Monday, February 26, 2018 3:41 PM

Thanks for your response. But in my case there's no url provided. 


Wednesday, August 14, 2019 3:57 PM

If you have the Federation Metadata XML file, you can use PowerShell to update it. You'll need to run PowerShell as Administrator and then you can use Update-AdfsRelyingPartyTrust to update the data.

If your trust is called SAP, you can update it with Update-AdfsRelyingPartyTrust -TargetName "SAP" -Metadatafile FederationMetadata.xml.


Thursday, February 6, 2020 3:51 PM

Update-AdfsRelyingPartyTrust

/en-us/powershell/module/adfs/update-adfsrelyingpartytrust?view=win10-ps