Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

How to set Server-Level Firewall on Azure VM?

$
0
0

I'm trying to start a Windows VM using the REST API. I followed the Docs on http://msdn.microsoft.com/en-us/library/windowsazure/jj157194.aspx and managed to start a Windows Server 2012 VM, with WinRM set and the right EndPoints

But, then I discovered the Server-Level Firewall is set by default to block WinRM which means I can't really access this VM.

I found this page  Create Firewall Rule" (http://msdn.microsoft.com/en-us/library/windowsazure/dn505712.aspx), which suppose to show how to set a VM Server-Level Firewall.

But, in the documentation the URL pattern includes "sqlserver": [https://management.core.windows.net:8443/{subscriptionId}/services/sqlservers/servers/{serverName}/firewallrules]

 1. Does it mean only SQLServers Server-Level Firewall can be configured?
 2. Is there another way to configure the Server-Level VM using the REST API?
 3. Is there something similar to EC2 "Instance Metadata and User Data" (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html) in Azure that I can use to inject my script on VM bootstrap so I can configure the Firewall from within? 


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>