是否可以为VM设置ACL而无需在VM本身上安装任何内容?
丹
答案 0 :(得分:0)
您可以使用powershell脚本
https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-acl-powershell/
答案 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