Using JSON.NET as a default serializer in WCF HTTP/Web/REST (vNext)
Whitepaper: The ins and outs of data type interop between .NET/WCF and Java – add it to your [web] services tool belt

Enabling PING (aka ICMP) on Windows Azure roles

By default any web or worker role instance in Windows Azure has ping functionality disabled. I you want and need to ping your machines via ICMP (e.g v6) you need to enable it by opening up the respective firewall ports.

Since Windows Azure SDK 1.3 this is quite easy to do with a custom startup taks (see for details on the topic).
Your startup tasks could run a script which uses the netsh command like this in an elevated context:

netsh advfirewall firewall add rule name="ICMPv6" dir=in action=allow enable=yes protocol=icmpv6

The startup task can be defined in the ServiceDefinition.csdef file:

<ServiceDefinition name="MyService" xmlns="">
   <WebRole name="MyWebRole">
         <Task commandLine="EnablePing.cmd" executionContext="elevated" taskType="simple">
Hope this helps.


Feed You can follow this conversation by subscribing to the comment feed for this post.

Brett Robichaud

But would this allow external traffic to ping a compute instance or does this only affect traffic within the Microsoft datacenter? I assumed one would need to tell the Azure load balancer to allow that traffic through by opening an endpoint binding. Am I incorrect?

Christian Weyer

Hi Brett,

yep. Actually the above described does *not* work. Sorry.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Comments are moderated, and will not appear until the author has approved them.

Your Information

(Name is required. Email address will not be displayed with the comment.)