You must install AD FS 2.0 on any computer that you are preparing for the federation server role for Office 365 identity federation.
To install AD FS 2.0, follow the instructions provided below:
Download the AD FS 2.0:
Active Directory Federation Services 2.0 RTW
On the Welcome screen page, click the Next button
On the Server Role page, select Federation server, and then click the Next button
On the Install Prerequisite Software page, click Next
Installation may take several minutes …
Once it is done, on the Completed the AD FS 2.0 Setup Wizard page uncheck the Start the AD FS 2.0 Management snap-in when this wizard closes box and click Finish.
Install all of the hotfixes as indicated in Description of Update Rollup 1 for Active Directory Federation Services (AD FS) 2.0.