Azure Devops 每次部署不同 IP 地址的 Analysis Services

AzureDevops deploys Analysis Sevices with different IP address everytime

我正在通过 CICD 部署表格模型,使用 方法,但是每次部署时都使用不同的 IP 地址。我必须禁用 Azure Analysis Services 中的防火墙规则才能进行部署。是否有解决此问题或将特定 IP 范围列入白名单的方法?

对于Self-hosted代理人:

您可以配置一个特定的 Self-hosted agent 用于部署目的,这样您只需要将代理计算机的 IP 地址添加到允许列表。

对于Microsoft-hosted代理人:

如果您更喜欢使用 cloud-hosted 代理,则需要在每次持续部署中动态修改防火墙规则。

(因为每次您获得一个新的托管代理实例,您都会获得一个不同的 IP 地址。)

我们可以使用 Azure Powershell task right before the deploy task to configure the firewall rule of your Analysis Service. About how to write the content of PS script, you can refer to AddDevOpsIpToAAS.ps1 寻求帮助。

detailed blog 来自 Arthur 的一篇关于“如何将 DevOps IP 添加到 Azure Analysis Services 防火墙”的文章,它应该对你有所帮助。 (感谢 亚瑟!)