« Previous 1 2 3
Automate the Active Directory Federation Services install
One Click
Office 365 and Other Trusts
If you plan to use the diagnostics module, please note the following: The cmdlet I just looked at, Test-AdfsServerHealth
, performs a series of tests to check trust relationships with partners, including Office 365, and the validity of the certificates. You need to pay special attention to this. If the certificates are due to expire in the next 90 days, the cmdlet notifies you and gives you time to respond. If the federation services have problems with an expired certificate, for example, authenticating against partners becomes impossible all of a sudden.
The Test-ADFSServerToken
cmdlet is like ping for ADFS, and it checks against Azure Active Directory to see whether a token can be issued and thus whether authentication is okay. This means you do not have to wait for a user to call and tell you that things are going wrong because you can automatically keep an eye on the federation services with any account and password (Get-Credential
).
Conclusions
In this article, I took just a little excursion into the possibilities of automating the federation services. Quickly setting up a couple of servers along with a federation service farm is not only less prone to error with the commands I looked at, but it's also faster than using the GUI. The whole thing can be extended of course; after all, many more tasks are involved in establishing federation services. For example, the DNS record for the ADFS service must exist, the ADFS service name must be added as trusted in the Internet Explorer zones, and the load balancer needs to be adapted when you add a node. The commands shown in this article are thus designed to act as an incentive for expanding the features you looked at in your ADFS environment.
Infos
- Sysinternals PSTools: https://technet.microsoft.com/en-us/sysinternals/bb896649/
- TechNet information on certificates in ADFS: https://technet.microsoft.com/en-us/library/dn554247.aspx#BKMK_1/
- Cmdlets for commissioning an ADFS farm: https://technet.microsoft.com/en-us/library/dn479416(v=wps.630).aspx
- Overview with examples of how to use Add-AdfsFarmNode: https://technet.microsoft.com/en-us/library/jj553793(v=wps.620).aspx
- PowerShell module for ADFS: https://technet.microsoft.com/en-us/library/dn479343.aspx
- Microsoft Online Services sign-in wizard: https://www.microsoft.com/en-us/download/details.aspx?id=41950
- Azure Active Directory module for PowerShell: http://go.microsoft.com/fwlink/p/?linkid=236297
- Setting up federation services with Office 365: http://blogs.technet.com/b/rmilne/archive/2014/04/28/how-to-install-adfs-2012-r2-for-office-365.aspx/
- PowerShell library as a complement to the ADFS cmdlets: https://gallery.technet.microsoft.com/scriptcenter/AD-FS-Diagnostics-Module-8269de31#content
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)
Buy ADMIN Magazine
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Most Popular
Support Our Work
ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.