Azure.Identity.Validations
public static string ValidateTenantId(string tenantId, string argumentName = null, bool allowNull = false)
As tenant id is used in constructing authority endpoints and in command line invocation we validate the character set of the tenant id matches allowed characters.