in sdk/identity/azure_identity/src/lib.rs [129:142]
fn validate_tenant_id(tenant_id: &str) -> Result<()> {
if tenant_id.is_empty()
|| !tenant_id
.chars()
.all(|c| c.is_alphanumeric() || c == '.' || c == '-')
{
return Err(Error::message(
ErrorKind::Credential,
format!("invalid tenant ID {tenant_id}. You can locate your tenantID by following the instructions listed here: https://learn.microsoft.com/partner-center/find-ids-and-domain-names"),
));
}
Ok(())
}