Azure Automation (10) 在Automation中动态修改Azure Analysis Firewall防火墙规则

  《Windows Azure Platform 系列文章目录

  由于目前AAS没有允许整个Azure IP Range开放访问 (类似Allow Azure Service to Access)

  导致每次Automation执行的时候,由于Automation客户端的IP动态变化,且不在AAS防火墙白名单里,导致Automation无法扩容或调整AAS。

  

  我这里研究了一下,可以采用work around的方案,即每次Azure Automation启动的时候,从第三方获得Automation客户端的IP地址

  然后把这个IP动态增加到AAS的防火墙规则里。待更新完毕后,再执行AAS扩容等操作

  https://github.com/leizhang1984/AzureChinaAutomation/blob/master/Az/UpdateAASFirewall.ps1

原文地址:https://www.cnblogs.com/threestone/p/15347198.html