<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Windows Azure Development Deep Dive: Working With Configuration</title>
	<atom:link href="http://azure.snagy.name/blog/index.php?feed=rss2&#038;p=176" rel="self" type="application/rss+xml" />
	<link>http://azure.snagy.name/blog/?p=176</link>
	<description>A view of cloud services and the Azure platform</description>
	<lastBuildDate>Wed, 11 Aug 2010 02:02:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Azure@home Part 2: WebRole Implementation - Jim O&#39;Neil - Developer Evangelist - Site Home - MSDN Blogs</title>
		<link>http://azure.snagy.name/blog/?p=176&#038;cpage=1#comment-2572</link>
		<dc:creator>Azure@home Part 2: WebRole Implementation - Jim O&#39;Neil - Developer Evangelist - Site Home - MSDN Blogs</dc:creator>
		<pubDate>Fri, 23 Jul 2010 15:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://azure.snagy.name/blog/?p=176#comment-2572</guid>
		<description>[...] and obviated the need for the SetConfigurationSettingPublisher in the OnStart method.   Recommendation: For a deeper dive into the mechanics of SetConfigurationSettingPublisher check out Neil Mackensie’s blog as well as Steven Nagy’s. [...]</description>
		<content:encoded><![CDATA[<p>[...] and obviated the need for the SetConfigurationSettingPublisher in the OnStart method.   Recommendation: For a deeper dive into the mechanics of SetConfigurationSettingPublisher check out Neil Mackensie’s blog as well as Steven Nagy’s. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Nagy</title>
		<link>http://azure.snagy.name/blog/?p=176&#038;cpage=1#comment-2514</link>
		<dc:creator>Steven Nagy</dc:creator>
		<pubDate>Sun, 14 Mar 2010 10:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://azure.snagy.name/blog/?p=176#comment-2514</guid>
		<description>Hi Mike,

No of course not. I&#039;ve also added this article as a code project article too, might be better to link to that version: http://www.codeproject.com/KB/cs/azure-configuration.aspx

In relation to the events, thanks for that pickup. I&#039;ll fix up my posts ASAP. And using it for debugging information level is a great example of the kind of configuration you would want to move into service configuration file.

Steve</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>No of course not. I&#8217;ve also added this article as a code project article too, might be better to link to that version: <a href="http://www.codeproject.com/KB/cs/azure-configuration.aspx" rel="nofollow">http://www.codeproject.com/KB/cs/azure-configuration.aspx</a></p>
<p>In relation to the events, thanks for that pickup. I&#8217;ll fix up my posts ASAP. And using it for debugging information level is a great example of the kind of configuration you would want to move into service configuration file.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Kelly</title>
		<link>http://azure.snagy.name/blog/?p=176&#038;cpage=1#comment-2509</link>
		<dc:creator>Mike Kelly</dc:creator>
		<pubDate>Fri, 12 Mar 2010 16:56:20 +0000</pubDate>
		<guid isPermaLink="false">http://azure.snagy.name/blog/?p=176#comment-2509</guid>
		<description>Yes, it works in cloud fabric.  Thanks for the post - this approach is super useful.  I&#039;m writing an MSDN article on diagnostics in Azure for the June magazine and used your approach to move the verbosity switches to ServiceConfiguration.cscfg from app.config/web.config so I can change them at run-time without recycling the role.

One minor tweak - there is RoleEnvironmentChanging which gets called first before the change is in effect and then RoleEnvironmentChanged which is called afterwards.  So your code above where you query the value in RoleEnvironmentChanging won&#039;t actually work - it will get the OLD value.  You have to have the code in RoleEnvironmentChanging to suppress the role recycle, then have similar code in RoleEnvironmentChanged (which you also have to register) to read the new value and apply it.  

Do you mind if I give you a shout-out for this help at the end of my MSDN article?</description>
		<content:encoded><![CDATA[<p>Yes, it works in cloud fabric.  Thanks for the post &#8211; this approach is super useful.  I&#8217;m writing an MSDN article on diagnostics in Azure for the June magazine and used your approach to move the verbosity switches to ServiceConfiguration.cscfg from app.config/web.config so I can change them at run-time without recycling the role.</p>
<p>One minor tweak &#8211; there is RoleEnvironmentChanging which gets called first before the change is in effect and then RoleEnvironmentChanged which is called afterwards.  So your code above where you query the value in RoleEnvironmentChanging won&#8217;t actually work &#8211; it will get the OLD value.  You have to have the code in RoleEnvironmentChanging to suppress the role recycle, then have similar code in RoleEnvironmentChanged (which you also have to register) to read the new value and apply it.  </p>
<p>Do you mind if I give you a shout-out for this help at the end of my MSDN article?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Nagy</title>
		<link>http://azure.snagy.name/blog/?p=176&#038;cpage=1#comment-2507</link>
		<dc:creator>Steven Nagy</dc:creator>
		<pubDate>Thu, 11 Mar 2010 07:11:50 +0000</pubDate>
		<guid isPermaLink="false">http://azure.snagy.name/blog/?p=176#comment-2507</guid>
		<description>Hi Mike,

Yes it looks like this is actually an issue with the DevFabric. Check the link at the bottom to Jim Nakashima&#039;s post on changing config in the dev fabric - it states near the bottom the following:

&quot;not terribly useful in the July CTP as the role instances restart when the service configuration file changes&quot;

Hopefully they will fix this up in a later release of the tools. But please test it actually works in the Azure fabric, I&#039;m pretty sure it will.

Steve</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Yes it looks like this is actually an issue with the DevFabric. Check the link at the bottom to Jim Nakashima&#8217;s post on changing config in the dev fabric &#8211; it states near the bottom the following:</p>
<p>&#8220;not terribly useful in the July CTP as the role instances restart when the service configuration file changes&#8221;</p>
<p>Hopefully they will fix this up in a later release of the tools. But please test it actually works in the Azure fabric, I&#8217;m pretty sure it will.</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Kelly</title>
		<link>http://azure.snagy.name/blog/?p=176&#038;cpage=1#comment-2505</link>
		<dc:creator>Mike Kelly</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://azure.snagy.name/blog/?p=176#comment-2505</guid>
		<description>Thanks for this info - I tried this in my Worker role to allow for changes in debugging switches without recycling the role.  When I do a 
csrun /update:169;ServiceConfiguration.cscfg to simulate a change in the configuration in the cloud fabric (after I change an entry in the config file), I see the code correctly go through and set e.cancel to false, but I still see Azure tear down the role.  
Here&#039;s the log output; note that it shows role environment is changing but then it stops the role even though I&#039;ve confirmed in the debugger I&#039;m returning e.cancel = false.

Any ideas?

===================
[fabric] Role state Started
[runtime] Role environment is changing
[fabric] Role state Stopping
[fabric] Role state Stopped
[fabric] Role state Teardown
[fabric] Role state Destroyed
[fabric] Role state Created
[fabric] Role state Suspended
[fabric] Role state Busy
[fabric] Role state Started</description>
		<content:encoded><![CDATA[<p>Thanks for this info &#8211; I tried this in my Worker role to allow for changes in debugging switches without recycling the role.  When I do a<br />
csrun /update:169;ServiceConfiguration.cscfg to simulate a change in the configuration in the cloud fabric (after I change an entry in the config file), I see the code correctly go through and set e.cancel to false, but I still see Azure tear down the role.<br />
Here&#8217;s the log output; note that it shows role environment is changing but then it stops the role even though I&#8217;ve confirmed in the debugger I&#8217;m returning e.cancel = false.</p>
<p>Any ideas?</p>
<p>===================<br />
[fabric] Role state Started<br />
[runtime] Role environment is changing<br />
[fabric] Role state Stopping<br />
[fabric] Role state Stopped<br />
[fabric] Role state Teardown<br />
[fabric] Role state Destroyed<br />
[fabric] Role state Created<br />
[fabric] Role state Suspended<br />
[fabric] Role state Busy<br />
[fabric] Role state Started</p>
]]></content:encoded>
	</item>
</channel>
</rss>
