title: Federation Metadata.xml for custom STS
body: <p>I am trying to implement a Custom STS as a WebRole to be deployed onto Azure. The problem i have is that how do i generate or write the Federation Metadata.xml file for my Custom STS. if i write it myself can i get the custom reference id and how do i sign it?
  Also as my STS is an Azure application ,so when i run it the Azure Emulator it has a URL like <a href="http://127.0.0.1:81/" rel="nofollow">http://127.0.0.1:81/</a> ,so i would using this as the link in the Federation Metadata.xml file but afterwards when i publish the STS onto Azure as a production deployment it would have a URL like <a href="http://cloudSts.cloudapp.net" rel="nofollow">http://cloudSts.cloudapp.net</a> so i would have to reflect these changes in my Federation Metadata.xml file,the question here is that after making these changes should i upgrade/publish the package again and then move it onto production or else i can simply upload the changed Federation Metadata.xml file onto ACS(where i have my Custom STS as an IP) and it would work?</p>
  
  <p>Thanks</p>