title: IP restriction not working when following documentation of Windows Azure
body: <p>I want to try to restrict access to a webrole based on 'Cloud Services' based on IP. There is a good documentation in <a href="http://msdn.microsoft.com/nl-nl/library/windowsazure/jj154098.aspx" rel="nofollow">this article</a>, but when I follow it I get an error when deploying it. </p>
  
  <p>The error I get is:<br>
  <code>Recycling (Role has encountered an error and has stopped. Application startup task failed with exit code 1</code></p>
  
  <p>It is getting wrong on the part of</p>
  
  <p><code>%windir%\system32\inetsrv\AppCmd.exe unlock config -section:system.webServer/security/ipSecurity</code></p>
  
  <p>So I think the command is wrong, I am running the <em>Webrole</em> on Operating System Windows 2012. </p>
  
  <p>When only adding the <em>web.config</em> part nothing changes and it does not work</p>
  
  
  
  <pre><code>&lt;system.webServer&gt;
      &lt;security&gt;
          &lt;!—Unlisted IP addresses are denied access–&gt;
          &lt;ipSecurity allowUnlisted=”false”&gt;
          &lt;!—The following IP addresses are granted access–&gt;
              &lt;add allowed=”true” ipAddress=”192.168.100.1” subnetMask=”255.255.0.0″ /&gt;
             &lt;add allowed=”true” ipAddress=”192.168.100.2″ subnetMask=”255.255.0.0″ /&gt;
          &lt;/ipSecurity&gt;
      &lt;/security&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>Is there anybody with experience with this, who can help me?</p>