AzureAD / azure-activedirectory-powershell-tokenkey

Scripts to override the Azure Active Directory token signing key.
8 stars 12 forks source link

How to specify my AAD tenant? #7

Open mrichman opened 6 years ago

mrichman commented 6 years ago

I have multiple AAD directories (tenants). How do I specify which one I want to run these scripts against? I get the error Service principal was not found - Please check the Client (Application) ID.

gsacavdm commented 6 years ago

Use the -Tenant parameter.

.\Set-AADSigningKey.ps1 -Tenant contoso.com -ApplicationId <ApplicationId> -KeyThumbprint <Thumbprint>
mrichman commented 6 years ago

Thanks. Where is that documented?

gsacavdm commented 6 years ago

Given the more ad-hoc / tools-like nature of these scripts, it isn't documented.