AzureAD / azure-activedirectory-powershell-tokenkey

Scripts to override the Azure Active Directory token signing key.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to specify my AAD tenant?

mrichman opened this issue · comments

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.

Use the -Tenant parameter.

.\Set-AADSigningKey.ps1 -Tenant contoso.com -ApplicationId <ApplicationId> -KeyThumbprint <Thumbprint>

Thanks. Where is that documented?

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