<?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: Simple Powershell scripting with Azure Powershell cmdlets</title>
	<atom:link href="http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-powershell-cmdlets/feed/" rel="self" type="application/rss+xml" />
	<link>http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-powershell-cmdlets/</link>
	<description>CodeBetter.Com - Stuff you need to Code Better!</description>
	<lastBuildDate>Thu, 16 May 2013 06:40:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Iris Classon</title>
		<link>http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-powershell-cmdlets/#comment-1190</link>
		<dc:creator>Iris Classon</dc:creator>
		<pubDate>Wed, 02 Jan 2013 13:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebetter.com/glennblock/?p=622#comment-1190</guid>
		<description><![CDATA[Yay for the PowerShell stuff :D Keep them coming, I need to learn :)]]></description>
		<content:encoded><![CDATA[<p>Yay for the PowerShell stuff <img src='http://codebetter.com/glennblock/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Keep them coming, I need to learn <img src='http://codebetter.com/glennblock/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Block</title>
		<link>http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-powershell-cmdlets/#comment-1189</link>
		<dc:creator>Glenn Block</dc:creator>
		<pubDate>Thu, 27 Dec 2012 18:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebetter.com/glennblock/?p=622#comment-1189</guid>
		<description><![CDATA[The Start-Job example explicitly uses a loop so that each call runs as it&#039;s own job otherwise I found that it just ran the whole thing as a single job.]]></description>
		<content:encoded><![CDATA[<p>The Start-Job example explicitly uses a loop so that each call runs as it&#8217;s own job otherwise I found that it just ran the whole thing as a single job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Block</title>
		<link>http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-powershell-cmdlets/#comment-1188</link>
		<dc:creator>Glenn Block</dc:creator>
		<pubDate>Thu, 27 Dec 2012 16:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebetter.com/glennblock/?p=622#comment-1188</guid>
		<description><![CDATA[Joel, the link is here: http://www.windowsazure.com/en-us/manage/downloads/

]]></description>
		<content:encoded><![CDATA[<p>Joel, the link is here: <a href="http://www.windowsazure.com/en-us/manage/downloads/" rel="nofollow">http://www.windowsazure.com/en-us/manage/downloads/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn Block</title>
		<link>http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-powershell-cmdlets/#comment-1187</link>
		<dc:creator>Glenn Block</dc:creator>
		<pubDate>Thu, 27 Dec 2012 16:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebetter.com/glennblock/?p=622#comment-1187</guid>
		<description><![CDATA[Hi Joel

That won&#039;t give the desired behavior because it will wipe all the settings and only leave Bar. In this case I am pulling down the existing settings and modifying them with Bar which leaves the exiting settings in tact.

As for why we can&#039;t just do the foreach passing in the site, it is because Get-AzureWebsite without a name returns only summary information including the site name, status, and uri. This is because the API call is cheaper. When you specify the site name it gets all the details.]]></description>
		<content:encoded><![CDATA[<p>Hi Joel</p>
<p>That won&#8217;t give the desired behavior because it will wipe all the settings and only leave Bar. In this case I am pulling down the existing settings and modifying them with Bar which leaves the exiting settings in tact.</p>
<p>As for why we can&#8217;t just do the foreach passing in the site, it is because Get-AzureWebsite without a name returns only summary information including the site name, status, and uri. This is because the API call is cheaper. When you specify the site name it gets all the details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel "Jaykul" Bennett</title>
		<link>http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-powershell-cmdlets/#comment-1186</link>
		<dc:creator>Joel "Jaykul" Bennett</dc:creator>
		<pubDate>Thu, 27 Dec 2012 15:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebetter.com/glennblock/?p=622#comment-1186</guid>
		<description><![CDATA[Shouldn&#039;t this:

    Get-AzureWebsite &#124; ForEach-Object -Process {
        $site = Get-AzureWebsite $_.Name;        $site.AppSettings[&quot;Bar&quot;]=&quot;Baz&quot;;
        Set-AzureWebsite $_.Name -AppSettings $site.AppSettings}

Just be this:
    Get-AzureWebsite &#124; Set-AzureWebsite -AppSettings @{ &quot;Bar&quot; = &quot;Baz&quot; }


I&#039;m not 100% sure about that one, because I don&#039;t have those cmdlets -- but based on your syntax, I think that would work (you need to take advantage of the pipeline, not use ForEach-Object and create loops -- loops are expensive, because you&#039;re creating that cmdlet object every time, instead of just once) (P.S. where&#039;s the download link? I installed the ones off github/WindowsAzure but it&#039;s not there)  

The next example (with Start-Job) definitely doesn&#039;t need the foreach...]]></description>
		<content:encoded><![CDATA[<p>Shouldn&#8217;t this:</p>
<p>    Get-AzureWebsite | ForEach-Object -Process {<br />
        $site = Get-AzureWebsite $_.Name;        $site.AppSettings["Bar"]=&#8221;Baz&#8221;;<br />
        Set-AzureWebsite $_.Name -AppSettings $site.AppSettings}</p>
<p>Just be this:<br />
    Get-AzureWebsite | Set-AzureWebsite -AppSettings @{ &#8220;Bar&#8221; = &#8220;Baz&#8221; }</p>
<p>I&#8217;m not 100% sure about that one, because I don&#8217;t have those cmdlets &#8212; but based on your syntax, I think that would work (you need to take advantage of the pipeline, not use ForEach-Object and create loops &#8212; loops are expensive, because you&#8217;re creating that cmdlet object every time, instead of just once) (P.S. where&#8217;s the download link? I installed the ones off github/WindowsAzure but it&#8217;s not there)  </p>
<p>The next example (with Start-Job) definitely doesn&#8217;t need the foreach&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Hexter</title>
		<link>http://codebetter.com/glennblock/2012/12/26/simple-powershell-scripting-for-azure-powershell-cmdlets/#comment-1185</link>
		<dc:creator>Eric Hexter</dc:creator>
		<pubDate>Wed, 26 Dec 2012 03:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://codebetter.com/glennblock/?p=622#comment-1185</guid>
		<description><![CDATA[cool.. keep the powershell examples coming with the new updates!]]></description>
		<content:encoded><![CDATA[<p>cool.. keep the powershell examples coming with the new updates!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
