Microsoft Azure Service Bus

Microsoft Azure Service Bus 连接类型启用 Azure Service Bus 集成。

身份验证到 Azure Service Bus

有三种方法可以认证和授权访问 Azure Service Bus 资源

  1. 使用连接字符串,即使用连接字符串字段在 Airflow 连接中添加 Connection String

  2. 通过设置 managed_identity_client_idworkload_identity_tenant_id 来使用托管身份(底层使用带有这些参数的 DefaultAzureCredential

  3. 回退到 DefaultAzureCredential。这包括尝试不同认证选项的机制:托管系统身份、环境变量、通过 Azure CLI 等进行认证。在此认证机制中,需要 fully_qualified_namespace

默认连接 ID

所有与 Microsoft Azure Service Bus 相关的 hook 和算子默认使用 azure_service_bus_default

配置连接

连接字符串(可选)

指定用于初始连接的 Azure Service Bus 连接字符串 ID。请参阅有关如何在 Azure Service Bus 中生成连接字符串的文档:获取连接字符串。使用键 connection_string 传入连接 ID。可以省略此项以回退到 DefaultAzureCredential

完全限定命名空间(可选)

指定连接关联的完全限定 Service Bus 命名空间。这可能类似于 {yournamespace}.servicebus.windows.net。使用键 fully_qualified_namespace 传入连接 ID。回退到 DefaultAzureCredential 时需要此项。

托管身份客户端 ID(可选)

用户分配的托管身份的客户端 ID。如果与 workload_identity_tenant_id 一起提供,它们将传递给 DefaultAzureCredential

工作负载身份租户 ID(可选)

应用程序的 Microsoft Entra 租户 ID。也称为其“目录”ID。如果与 managed_identity_client_id 一起提供,它们将传递给 DefaultAzureCredential

本条目是否有帮助?