title: Why does my machineKey change every time I push a new version of my Azure web role?
body: <p>I have a question - why does the machine key yielded by this function return a different value every time I restart my Azure web roles in the Azure Compute emulator? I have a hard-coded, generated machine key in my Web.config for this role - shouldn't that be enough?</p>
  
  <pre><code> var cfg = WebConfigurationManager.OpenWebConfiguration(System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath);
   var machineKey = (MachineKeySection)cfg.GetSection("system.web/machineKey");
  </code></pre>
  
  <p>What's the correct way of handling this in Azure web roles?</p>
  
  <p>I'm using my machine keys for hashing user data, so it's important that I don't have dynamic machine keys obviously :p</p>