我发现这个页面"Create Firewall Rule",它假设显示设置一个VM服务器级防火墙。如何在Azure虚拟机上设置服务器级别的防火墙?
但是,文档中的URL模式包括 “SQLSERVER”:https://management.core.windows.net:8443/{subscriptionId}/services/sqlservers/servers/{serverName}/firewallrules
- 这是否意味着只有SQLServers防火墙可配置?
- 是否有另一种使用REST API配置服务器级VM的方法?
- Azure中是否存在类似于EC2 "Instance Metadata and User Data"的东西,我可以使用它将虚拟机引导程序注入我的脚本,以便我可以从内部配置防火墙?
编辑
我查了内置防火墙是处于打开状态,我可以使用“远程登录XXX.XXX.XXX.XXX 5986” 这是我得到的错误连接服务时,我运行:
>Test-WSMan XXX.XXX.XXX.XXX
Test-WSMan : <f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="2150859046"
Machine="WIN-HAPHAM5EH3M"><f:Message>WinRM cannot complete the operation.
Verify that the specified computer name is valid, that the computer is accessible
over the network, and that a firewall exception for the WinRM service is enabled and
allows access from this computer. By default, the WinRM firewall exception for public
profiles limits access to remote computers within the same local subnet. </f:Message></f:WSManFault>
At line:1 char:1
+ Test-WSMan XXX.XXX.XXX.XXX
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (XXX.XXX.XXX.XXX:String) [Test-WSMan], InvalidOperationException
+ FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.TestWSManCommand
是的,我知道端点,我在创建虚拟机时就设置了它。我的问题是关于服务器级别,这意味着Windows内置的防火墙。 –