为 Azure 虚拟网络 (VNet) 上的数据源使用网关Use gateway for data sources on an Azure Virtual Network (VNet)

本文介绍了当数据源位于 Azure 虚拟网络 (VNet) 上时要使用的 Azure Analysis Services AlwaysUseGateway 服务器属性。This article describes the Azure Analysis Services AlwaysUseGateway server property for use when data sources are on an Azure Virtual Network (VNet).

对 VNet 数据源的服务器访问Server access to VNet data sources

如果通过 VNet 访问数据源,则 Azure Analysis Services 服务器必须连接到那些数据源,就像它们位于本地自己的环境中一样。If your data sources are accessed through a VNet, your Azure Analysis Services server must connect to those data sources as if they are on-premises, in your own environment. 可以配置 AlwaysUseGateway 服务器属性来指定服务器通过本地网关访问所有数据源。You can configure the AlwaysUseGateway server property to specify the server to access all data sources through an On-premises gateway.

Azure SQL 数据库托管实例数据源使用专用 IP 地址在 Azure VNet 中运行。Azure SQL Database Managed Instance data sources run within Azure VNet with a private IP address. 如果在实例上启用了公共终结点,则不需要网关。If public endpoint is enabled on the instance, a gateway is not required. 如果未启用公共终结点,则需要本地数据网关,并且必须将 AlwaysUseGateway 属性设置为 true。If public endpoint is not enabled, an On-premises Data Gateway is required and the AlwaysUseGateway property must be set to true.

Note

仅当安装并配置了本地数据网关时,此属性才有效。This property is effective only when an On-premises Data Gateway is installed and configured. 网关可以在 VNet 上。The gateway can be on the VNet.

配置 AlwaysUseGateway 属性Configure AlwaysUseGateway property

  1. 在“SSMS”>“服务器”>“属性” > “常规”中,选择“显示高级(全部)属性”。In SSMS > server > Properties > General, select Show Advanced (All) Properties.

  2. 在“ASPaaS\AlwaysUseGateway” 中,选择“true”。 In the ASPaaS\AlwaysUseGateway, select true.

    始终使用网关属性

另请参阅See also

连接到本地数据源 Connecting to on-premises data sources
安装并配置本地数据网关 Install and configure an on-premises data gateway
Azure 虚拟网络 (VNET)Azure Virtual Network (VNET)