diff --git a/providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/msgraph.py b/providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/msgraph.py index 376292e1b3c6f..a7474e67656f5 100644 --- a/providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/msgraph.py +++ b/providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/msgraph.py @@ -232,7 +232,7 @@ def get_host(self, connection: Connection) -> str: if connection.schema and connection.host: return f"{connection.schema}://{connection.host}" return NationalClouds.Global.value - if not self.host.startswith("http://") or not self.host.startswith("https://"): + if not self.host.startswith(("http://", "https://")): return f"{connection.schema}://{self.host}" return self.host