When creating the on-premise connector or creating an environment to deploy, want to know where to source all of the values you are being asked for? There are some scripts to help.

Creating The On-premises Connector

Included with the scripts to setup the service fabric cluster is this one:

.\Get-AgentConfiguration.ps1 -ConfigurationFile .\ConfigTemplate.xml

This gives a nice table of output with almost everything you need to create the on-premise connector.

What should you do if you encounter this error when setting up an on-prem instance?

New-AzureRmADSpCredential : Update to existing credential with KeyId ‘xxx’ is not allowed. At Add-CertToServicePrincipal.ps1:62 char:1

+ New-AzureRmADSpCredential -ObjectId $servicePrincipal.Id -CertValue $ ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidOperation: (:) [New-AzureRmADSpCredential], Exception + FullyQualifiedErrorId : Microsoft.Azure.Commands.ActiveDirectory.NewAzureADSpCredentialCommand