Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当出站Internet访问受到限制时,如何在VM上运行Azure Powershell cmdlet_Azure_Powershell_Virtual Machine_Azure Nsg - Fatal编程技术网

当出站Internet访问受到限制时,如何在VM上运行Azure Powershell cmdlet

当出站Internet访问受到限制时,如何在VM上运行Azure Powershell cmdlet,azure,powershell,virtual-machine,azure-nsg,Azure,Powershell,Virtual Machine,Azure Nsg,我正在使用驻留在VM中的Powershell脚本检索订阅中的资源列表。目前,我在虚拟机的NSG上启用了出站internet。但我想限制将来的出站互联网接入 当internet访问被拒绝时,是否有办法运行powershell脚本?该功能可以使用VM代理在虚拟机上远程运行脚本。要正常运行,Run命令需要连接(端口443)到Azure公共IP地址。如果您正在阻止虚拟机上的流量,您可以使用服务标签通过使用AzureCloud标签来允许Azure公共IP地址的流量。没有名为AzureCloud have

我正在使用驻留在VM中的Powershell脚本检索订阅中的资源列表。目前,我在虚拟机的NSG上启用了出站internet。但我想限制将来的出站互联网接入


当internet访问被拒绝时,是否有办法运行powershell脚本?

该功能可以使用VM代理在虚拟机上远程运行脚本。要正常运行,Run命令需要连接(端口443)到Azure公共IP地址。如果您正在阻止虚拟机上的流量,您可以使用服务标签通过使用
AzureCloud
标签来允许Azure公共IP地址的流量。

没有名为AzureCloud have whitelist Azure datacenter IP的服务标签。还正在寻找创建自定义服务的选项,这是目前无法实现的

非常感谢,这非常有用!我很困惑,这是对这个问题的回答,还是你说你也在尝试这样做却失败了?