One of the clients I’ve been engaged with use AD FS as the identity provider for their Azure Stack integrated system. All well and good, as setting that up using the instructions provided here is *fairly* straightforward: https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-integrate-identity. Here’s a high level of the tasks that need to be performed:
On Azure Stack (by the operator via Privileged Endpoint PowerShell session):
Setup Graph integration (configure to point to on-premises AD Domain, so user / group searches can be performed, used by IAM/RBAC)
Setup AD FS integration (Create federation data metafile and use automation to configure claims provider trust with on-premises AD FS)
Set Service Admin Owner to user in the on-premises AD Domain
On customer AD FS server by an admin with correct permissions:
Configure claims provider trust (either by helper script provided in Azure Stack tools, or manually)
If performing manually:
Enable Windows forms-based authentication
Add the relying party trust
Configure AD FS properties to ignore token ring bindings (If using IE / Edge browsers and AD FS is running on WS 2016)
Set AD FS Relying party trust with Token lifetime of 1440
If performing by helper script:
From Azure Stack tools directory, navigate to \DatacenterIntegration\Identity and run setupadfs.ps1
The only gotcha with the instructions that I encountered was that the certificate chain for AD FS was different than was provisioned for Azure Stack endpoints, so I tried to follow the instructions for this scenario provided in the link above, but they didn’t work.
It turns out that there was a problem with me running the provided PowerShell code:
[XML]$Metadata = Invoke-WebRequest -URI https://
/federationmetadata/2007-06/federationmetadata.xml -UseBasicParsing $Metadata.outerxml|out-file c:\metadata.xml $federationMetadataFileContent = get-content c:\metadata.cml $creds=Get-Credential Enter-PSSession -ComputerName -ConfigurationName PrivilegedEndpoint -Credential $creds Register-CustomAdfs -CustomAdfsName Contoso -CustomADFSFederationMetadataFileContent $using:federationMetadataFileContent
…and here’s one that is correctly configured:
The things to check for are that the correct FQDN to the AD domain are provided and the user / password combination is correct. Graph just needs a ‘normal’ user account with no special permissions. Make sure the password for the user is set to not expire!
You can re-run the command from the PEP without having to run Reset-DatacenterIntegationConfiguration. Only run this when AD FS integration is broken.
If you want to use AD Groups via Graph for RBAC control, keep in mind that they need to be Universal, otherwise they will not appear.
Hopefully this information will help some of you out.
In my next blog post, I’ll fill in the gaps on creating AD FS SPN’s for use by automation / Azure CLI on Azure Stack.