为其外部的VM设置Azure ACL

时间:2014-08-20 15:29:23

标签: azure acl

是否可以为VM设置ACL而无需在VM本身上安装任何内容?

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

以下是我在Power Shell中的表现:

Get-AzureVM -ServiceName 'foobar' -Name 'foobar' | Add-AzureEndpoint -Name 'Ftp' -Protocol 'TCP' -LocalPort 21 -PublicPort 21 | Update-AzureVM Get-AzureVM -ServiceName 'foobar' -Name 'foobar' | Add-AzureEndpoint -Name 'FTPPassive9870' -Protocol 'TCP' -LocalPort 9870 -PublicPort 9870 | Update-AzureVM Get-AzureVM -ServiceName 'foobar' -Name 'foobar' | Add-AzureEndpoint -Name 'FTPPassive9872' -Protocol 'TCP' -LocalPort 9872 -PublicPort 9872 | Update-AzureVM Get-AzureVM -ServiceName 'foobar' -Name 'foobar' | Add-AzureEndpoint -Name 'FTPPassive9873' -Protocol 'TCP' -LocalPort 9873 -PublicPort 9873 | Update-AzureVM Get-AzureVM -ServiceName 'foobar' -Name 'foobar' | Add-AzureEndpoint -Name 'FTPPassive9874' -Protocol 'TCP' -LocalPort 9874 -PublicPort 9874 | Update-AzureVM Get-AzureVM -ServiceName 'foobar' -Name 'foobar' | Add-AzureEndpoint -Name 'FTPPassive9875' -Protocol 'TCP' -LocalPort 9875 -PublicPort 9875 | Update-AzureVM