<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6210655303359621164</atom:id><lastBuildDate>Fri, 01 Nov 2024 09:47:44 +0000</lastBuildDate><category>.Net</category><category>Windows Azure</category><category>Cloud computing</category><category>VM Role</category><category>Azure Diagnostics</category><category>Application Blocks</category><category>C#</category><category>Deployment in Azure</category><category>Managed Extensibility Framework</category><category>Silverlight</category><category>Windows Azure Service Bus</category><category>.Net RIA Services</category><category>ASP .Net</category><category>Autoscaling Application Blocks</category><category>Captcha</category><category>Data Binding</category><category>Delegates</category><category>Event Handling</category><category>Events and Delegates</category><category>Extension methods</category><category>Http handler</category><category>Http module</category><category>ListBox</category><category>Logging</category><category>Powershell</category><category>RSS</category><category>Service Bus</category><category>Web Role</category><category>Windows Azure Queues</category><category>Worker role</category><category>atom feed</category><title>Reeta S Lodhi&#39;s Blog</title><description></description><link>http://reeta-singh.blogspot.com/</link><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><generator>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-7433277902929194574</guid><pubDate>Thu, 17 May 2012 06:30:00 +0000</pubDate><atom:updated>2012-05-17T12:00:32.064+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Application Blocks</category><category domain="http://www.blogger.com/atom/ns#">Autoscaling Application Blocks</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Autoscaling Application Blocks</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Autoscaling Application blocks can automatically scale the
Windows Azure application based on the rules defined specifically for the
application. The Autoscaling application Block supports two autoscaling
mechanisms: &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l3 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;1)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Instance
Autoscaling, where the block changes the number of role instances based on
constraint and reactive rules.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l3 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;2)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Throttling,
where the application modifies its own behavior to change its resource
utilization based on set of reactive rules. For example switching off non-essential
features, or gracefully degrading its UI.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
So, there are two types of rules:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l4 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;1)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Constraint
rules: Constraint rule set the upper and lower bounds on the number of
instances. For example, in evening between 6:00 and 8:00, you need a minimum of
3 instances and a maximum of 7 instances, then use constraint rule.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l4 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;2)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Reactive
rules: Reactive rule enables the number of role instances to change in response
to unpredictable changes in demand. For example, if workload increases then
increase the number of role instances by 1. The reactive rules can use a
variety of techniques like performance counters, or windows azure queue length
to monitor and control application’s workload. A reactive rule makes changes to
the number of role instances only if a constraint rule applies at the same
time. It is easy to create a default constraint rule that always applies.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
While defining target of an autoscaling rule, you can
identify a scale group instead of an individual role. A Scale group enables you
to define autoscaling rules that target multiple roles. A scale group can have any
number of roles.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Following is an example rule xml. In this there are two
constraint rules. One is always active and default constraint. While other only
become active at peak time daily at 6 for 2 hours, and overrides the default
rule. There are two reactive roles:&lt;span&gt;&amp;nbsp; &lt;/span&gt;One
will increase the instance count by 1 if the average CPU power usage for last
30 minutes is over 70%, while the other one decrease the instance count by 1 if
the average CPU usage for last 30 minutes is less than 30%.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rules&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;xmlns&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;http://schemas.microsoft.com/practices/2011/entlib/autoscaling/rules&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;enabled&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;constraintRules&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Default&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Always active&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;enabled&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;rank&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;1&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;range&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;min&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;2&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;max&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;5&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;target&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;RoleA&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Peak&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Active at peak times&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;enabled&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;rank&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;100&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;range&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;min&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;3&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;max&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;7&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;target&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;RoleA&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;timetable&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;startTime&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;06:00:00&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;duration&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;02:00:00&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;daily&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;timetable&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;constraintRules&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;reactiveRules&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;ScaleUp&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Increases instance
count&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;enabled&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;rank&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;10&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;when&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;greater&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;operand&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Avg_CPU_RoleA&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;than&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;70&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;when&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;scale&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;target&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;RoleA&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;by&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;1&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;name&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;ScaleDown&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;description&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Decreases instance
count&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;enabled&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;true&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;rank&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;10&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;when&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;less&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;operand&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Avg_CPU_RoleA&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;than&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;30&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;when&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;scale&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;target&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;RoleA&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;by&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;-1&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;actions&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rule&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;reactiveRules&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;operands&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;performanceCounter&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red; font-family: Consolas; font-size: 9.5pt;&quot;&gt;alias&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Avg_CPU_RoleA&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;performanceCounterName&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;\Processor(_Total)\%
Processor Time&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;aggregate&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;Average&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;source&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;RoleA&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;timespan&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;=&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;00:30:00&lt;/span&gt;&quot;&lt;span style=&quot;color: blue;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;operands&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;!--&lt;/span--&gt;&lt;span style=&quot;color: #a31515; font-family: Consolas; font-size: 9.5pt;&quot;&gt;rules&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #073763; font-size: large;&quot;&gt;&lt;b&gt;Conflicting Rules&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l1 level1 lfo3; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;1)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Conflicting
Constraint and Reactive rules: A constraint rule always overrides a reactive
rule.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l1 level1 lfo3; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;2)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Conflicting
Constraint rules: If two or more constraint rule includes timetables that
specify they are active at the same time then&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .75in; mso-list: l2 level1 lfo4; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;a)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;The
rule with highest rank is given priority.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .75in; mso-list: l2 level1 lfo4; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;b)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;If two or more constraint rules of same rank
conflict, then block will perform the action from first constraint rule it
finds.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l1 level1 lfo3; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;3)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Conflicting
Reactive rules: If two or more reactive rules results in conflicting changes to
number of role instances then&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .75in; mso-list: l0 level1 lfo5; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;a)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;The
rule with highest rank is given priority.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .75in; mso-list: l0 level1 lfo5; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;b)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;If
two or more reactive rules of same rank conflict, then if any rule suggests increase
in number of instances, then largest increase is used.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .75in; mso-list: l0 level1 lfo5; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;c)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;If
two or more reactive rules of same rank conflict, then if any rule suggests decrease
in number of instances, then lowest decrease is used.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .75in;&quot;&gt;
For example if one rule suggest
increase the no. of instances by one, another suggest increase the number by
two, and another suggest decrease the number by one, then the number will
increase by two. Another example, if one rule suggest decrease in number of
instances by one, another suggest decrease in number by three, then number of
instances will decrease by one.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: .5in; mso-list: l1 level1 lfo3; text-indent: -.25in;&quot;&gt;
&lt;!--[if !supportLists]--&gt;&lt;span&gt;&lt;span&gt;4)&lt;span style=&quot;font: 7.0pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;!--[endif]--&gt;Conflicting
actions on scale group: It is possible that multiple rules could suggest
different scaling actions on same target at same time, either because same role
is member of different scale group or so. In that case, it uses same logic as
it is used in conflicting reactive rules.&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2012/05/autoscaling-application-blocks.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-3456142940183746603</guid><pubDate>Tue, 15 May 2012 08:26:00 +0000</pubDate><atom:updated>2012-05-15T14:02:59.543+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure Queues</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure Service Bus</category><title>Queue based  messaging in Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
A typical messaging solution exchanges data between its
distributed components using message queues includes &lt;i&gt;publishers&lt;/i&gt; publishing messages into queues and &lt;i&gt;subscribers&lt;/i&gt; intended to receive messages. The subscriber can be
implemented as single- or multi- threaded process, either continuously running
or initiated on demand. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
At higher level there are two primary queuing mechanism used
to enable queue listener (receiver) to receive messages stored on a queue:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Polling&lt;/b&gt; or &lt;b&gt;Poll- based model&lt;/b&gt;: A listener monitors
a queue by checking the queue at regular intervals. A listener is a part of a worker
role instance. Main processing logic is comprised of a loop in which messages are
dequeued and dispatched for processing. The listener checks for messages
periodically. The queue is polled until listener is notified to exit the loop. Windows
Azure pricing model measures storage transactions based on requests performed
against the queue, regardless if the queue is empty or not.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;Triggering&lt;/b&gt; or &lt;b&gt;Push- based model&lt;/b&gt;: A listener
subscribes to an event triggered either by the publisher or by queue service
manager, whenever a message arrives on a queue. Then the listener dispatched
the message for processing. So, it does not have to poll the queue in order to
determine whether any new work is available or not. A notification can be
pushed to the queue listeners for every new message, or when the first message
arrives to an empty queue, or when queue reaches a certain level. While using
Windows Azure Service Bus volume of messaging entities like queue or topics
should be considered.&lt;/div&gt;
&lt;h2&gt;

&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #20124d; font-family: inherit; font-size: large;&quot;&gt;&lt;b&gt;Best Practices for Optimizing Transaction Costs&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
In queue-based messaging solution, the volume of storage
transactions can be reduced using combination of the following methods:&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Group related messages&lt;/b&gt; into a single
     larger batch, and compress and stores the compressed image in the blob
     storage, while keeping a reference of blob in queue.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Batch multiple messages together&lt;/b&gt;&amp;nbsp;in a single storage
     transaction. The&amp;nbsp;&lt;i&gt;GetMessages&lt;/i&gt;&amp;nbsp;method in the Queue Service
     API enables de-queuing the specified number of messages in a single transaction.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;While
     polling, &lt;b&gt;avoid aggressive polling intervals&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;implement
     a back-off delay&lt;/b&gt; that
     increases the time between polling requests if a queue remains
     continuously empty.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;b&gt;Reduce
     the number of queue listeners&lt;/b&gt;&amp;nbsp;– when using a pull-based model,
     use only 1 queue listener per role instance when a queue is empty. To
     further reduce the number of queue listeners per role instance to zero, and
     use a notification mechanism to instantiate queue listeners when the queue
     receives work items.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;If
     queues remain empty for most of the time,&amp;nbsp;&lt;b&gt;automatically scale down
     the number of role instances&lt;/b&gt;&amp;nbsp;and continue to monitor relevant system
     metrics to determine if and when the application should &lt;b&gt;scale up the number of role instances&lt;/b&gt;
     to handle increasing workload.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Using a &lt;b&gt;combination of polling and push-based notifications&lt;/b&gt;, enabling the listeners to subscribe to a notification event (trigger) that is raised upon certain conditions to indicate that a new workload is put on queue.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2012/05/queue-based-messaging-in-windows-azure.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-7782264870899972951</guid><pubDate>Fri, 11 May 2012 12:19:00 +0000</pubDate><atom:updated>2012-05-15T14:05:40.385+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Service Bus</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure Service Bus</category><title>Windows Azure Service Bus</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h1 style=&quot;text-align: left;&quot;&gt;



&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-weight: normal;&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;
Windows
azure service bus provides infrastructure for communication, event
distribution, naming and service publishing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/h1&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-size: small; font-weight: normal;&quot;&gt;Azure
Service bus features:&lt;/span&gt;&lt;/div&gt;
&lt;ol start=&quot;1&quot; style=&quot;margin-top: 0in;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;It provides connectivity option for WCF
     and other service endpoints (including REST endpoints) running behind
     firewalls and NAT routers, bound to frequently-changing or dynamically-assigned
     IP addresses.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;It
     enables secure inbound communication from devices outside the firewall.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;It
     provides relayed messaging capabilities. The relay service supports direct
     one-way messaging, request/response messaging, full duplex messaging, and
     peer-to-peer messaging.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;It provides brokered (asynchronous)
     messaging capabilities. It supports publish-subscribe and temporal
     decoupling, i.e., sender and receiver don’t have to be online at same
     time. It reliably stores message until receiving party is ready to receive
     message. The core components of brokered messaging are- Queues, Topics and
     Subscriptions.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;It
     provides a global namespace system that is location- independent, i.e.,
     the name of service in the service bus provides no information about the
     final destination of the communication.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;Provides
     a service registry for publishing and discovering service endpoint
     references in a service namespace.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;It
     builds and hosts service endpoints that supports:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-align: left; text-indent: -0.25in;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;a)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Exposing a web service to remote users. Expose and secure a local
web service in the cloud without managing any firewall or NAT settings&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-align: left; text-indent: -0.25in;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;b)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Eventing behavior. Listen for notification on any device, anywhere
in the world.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.75in; text-align: left; text-indent: -0.25in;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;c)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Tunneling between any two endpoints to enable bidirectional
streams.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2012/05/windows-azure-service-bus.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-8968951237587663422</guid><pubDate>Tue, 27 Dec 2011 06:40:00 +0000</pubDate><atom:updated>2011-12-30T10:51:55.013+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">Deployment in Azure</category><category domain="http://www.blogger.com/atom/ns#">VM Role</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Deploying on Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt;


&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small; font-weight: normal;&quot;&gt;In the previous article we have seen how to create a package
for deployment. Now in this article we will see how to deploy it in azure.&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Open the management portal &lt;a href=&quot;https://windows.azure.com/&quot;&gt;https://windows.azure.com&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Click on the &lt;b&gt;Hosted Services, Storage Accounts &amp;amp; CDN&lt;/b&gt; tab, and then click &lt;b&gt;Hosted Services&lt;/b&gt;, and click &lt;b&gt;New Hosted Service&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaihYDgPrjwnVEfSrxoiLFQ85TbBedQ3sXqM2Grbv00-VqB-oHn-dgFJrDRnHgrPYEcwwDoakEUB8u71fFT1tBAFALy8DMGdIfePDzyTY_rC7DMrAU6X7jdDzNBAYZafh6M8lDm_2On-E/s1600/image001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaihYDgPrjwnVEfSrxoiLFQ85TbBedQ3sXqM2Grbv00-VqB-oHn-dgFJrDRnHgrPYEcwwDoakEUB8u71fFT1tBAFALy8DMGdIfePDzyTY_rC7DMrAU6X7jdDzNBAYZafh6M8lDm_2On-E/s1600/image001.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now select the subscription. Enter the name of
the service and url prefix. Then select a region&amp;nbsp; and do not deploy option. And then click &lt;b&gt;OK&lt;/b&gt;. We will create deployment after
creating the service.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV1gSXMgzx9u9CLGRww6ZoEIiSotDPnMXsBhDiFdK57tH1OgedrublvgzzC_upR1CQhwpXmJqWALXAR8NPDtaEcXs3IIFNw4u8pueZQrE8N5sBhxWqeyoc1nEiku8VXpufDaB_J2xhwyQ/s1600/image003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgV1gSXMgzx9u9CLGRww6ZoEIiSotDPnMXsBhDiFdK57tH1OgedrublvgzzC_upR1CQhwpXmJqWALXAR8NPDtaEcXs3IIFNw4u8pueZQrE8N5sBhxWqeyoc1nEiku8VXpufDaB_J2xhwyQ/s400/image003.png&quot; width=&quot;397&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
4)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;It will start creating hosted service. Once the
hosted service is created. You can add certificate and deployment to the
service.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
5)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now select the &lt;b&gt;Certificates &lt;/b&gt;in the newly created hosted service and click &lt;b&gt;Add certificate&lt;/b&gt;. Now add the
certificate that is used to create remote desktop connections while creating
the deployment. Select the certificate and enter password and click &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNxdC2PLcAQgbL-A-D8eH52SuEd2M50C20r-VoNfhPGKvcHlZVz9V1i9UaxsmSNiGe2HvO1MHcCjcm7W8VDuzHmoyA1p9HNZZLrx6AteOzSUomP9xPlSlikPCTDOKZ2r8B5c3_RFuTmfE/s1600/image006.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;175&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNxdC2PLcAQgbL-A-D8eH52SuEd2M50C20r-VoNfhPGKvcHlZVz9V1i9UaxsmSNiGe2HvO1MHcCjcm7W8VDuzHmoyA1p9HNZZLrx6AteOzSUomP9xPlSlikPCTDOKZ2r8B5c3_RFuTmfE/s400/image006.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
6)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now select the service and click New Staging
Deployment.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu3Qrh_bBhknamWCpG4Ll6ljbLOi_ryWGWNfegVkCHmKa5dciAKjUc4zkRRTBSMXqoGpXtr2FTMf1Ipz0MEDjsKP_m4jG0muB1pps092H3gkUALR1emw57oO-hi3uae7Z44on55SiFhw8/s1600/image008.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;123&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu3Qrh_bBhknamWCpG4Ll6ljbLOi_ryWGWNfegVkCHmKa5dciAKjUc4zkRRTBSMXqoGpXtr2FTMf1Ipz0MEDjsKP_m4jG0muB1pps092H3gkUALR1emw57oO-hi3uae7Z44on55SiFhw8/s400/image008.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
7)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now enter name of the deployment. Browse for the
package file and configuration file and click &lt;b&gt;OK&lt;/b&gt;. By default when you package a solution, visual studio will
place these file under bin -&amp;gt; Debug -&amp;gt; app.Publish folder.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJJa49duw2DRz5i-7eYW2wRHux0Nc7tfUMdU_iOeZ22CiE90BfSh7SMFk3MgFCl1UETZo2W0F1KQr3Q-PByjQQjp41CAHRfBk6J1A7HYN4WSk8Tw_ziWIEb6IhyphenhyphenOhfy9AsJt-PLPXw4BM/s1600/image010.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJJa49duw2DRz5i-7eYW2wRHux0Nc7tfUMdU_iOeZ22CiE90BfSh7SMFk3MgFCl1UETZo2W0F1KQr3Q-PByjQQjp41CAHRfBk6J1A7HYN4WSk8Tw_ziWIEb6IhyphenhyphenOhfy9AsJt-PLPXw4BM/s400/image010.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
8)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;It will start deployment. Once the deployment is
ready you can browse to the DNS name of the deployment and can see it.&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/12/deploying-on-windows-azure.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaihYDgPrjwnVEfSrxoiLFQ85TbBedQ3sXqM2Grbv00-VqB-oHn-dgFJrDRnHgrPYEcwwDoakEUB8u71fFT1tBAFALy8DMGdIfePDzyTY_rC7DMrAU6X7jdDzNBAYZafh6M8lDm_2On-E/s72-c/image001.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-708697662903774732</guid><pubDate>Tue, 27 Dec 2011 06:32:00 +0000</pubDate><atom:updated>2011-12-30T10:45:06.146+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">VM Role</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Creating the Service Model for VM role in Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt;


&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small; font-weight: normal;&quot;&gt;Now in this article we will create a service model for the
image uploaded in azure.&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Start &lt;b&gt;Visual
Studio 2010&lt;/b&gt;. Create new project. From the &lt;b&gt;Visual C#&lt;/b&gt; template, click &lt;b&gt;Cloud&lt;/b&gt;.
Give a name to the project and click &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUb2wYtnEMUhJAfvCigS0xJYmqqodd4HdIapWlQs9KLC_nlb1EHcj6GkgZltViwSY42zicmpN3WjfBswyjKEbOmiWJOJKfNSI5mrxj3PlXSgFNBEON6oUdWYDdTbSL8gX6HxF8saZoawA/s1600/image001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;243&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUb2wYtnEMUhJAfvCigS0xJYmqqodd4HdIapWlQs9KLC_nlb1EHcj6GkgZltViwSY42zicmpN3WjfBswyjKEbOmiWJOJKfNSI5mrxj3PlXSgFNBEON6oUdWYDdTbSL8gX6HxF8saZoawA/s400/image001.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now Click OK, without selecting any role.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn4LcMMBUxHVVfQ4qLjbHO7xroMvw0X12a_-LV4hd6pj1KKrI7jkYPETNtPk2_m3FI6WI9X81TPAkI7opoXgMzUi-Z3z4LOaH61X-ld0u1mswEiFBzBb4TbfzOf3HjFHso-Yirqnb6WwM/s1600/image003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn4LcMMBUxHVVfQ4qLjbHO7xroMvw0X12a_-LV4hd6pj1KKrI7jkYPETNtPk2_m3FI6WI9X81TPAkI7opoXgMzUi-Z3z4LOaH61X-ld0u1mswEiFBzBb4TbfzOf3HjFHso-Yirqnb6WwM/s400/image003.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now add a new VM role. For this right click the &lt;b&gt;Roles&lt;/b&gt; select &lt;b&gt;Add&lt;/b&gt; and then select &lt;b&gt;New
Virtual Machine Role.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSFAkVaZhSFWvEpUSzJ_6MIHiRH2Cqpe32CfLjPZyQW8laWgCqOIHuQSp5G0hH5moRMsGipTl9bwjGS1dgD6-9rYeeYCeo9-xBrMKx2_DTnQA5t5VHCZIv7VqWs3Zkren6E8gH9-bdDEc/s1600/image005.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;112&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSFAkVaZhSFWvEpUSzJ_6MIHiRH2Cqpe32CfLjPZyQW8laWgCqOIHuQSp5G0hH5moRMsGipTl9bwjGS1dgD6-9rYeeYCeo9-xBrMKx2_DTnQA5t5VHCZIv7VqWs3Zkren6E8gH9-bdDEc/s400/image005.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
In case if didn’t find the “New Virtual
Machine Role”, you have to run the scripts below to add new registry key or
just change the following [dword] registry key:&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;i&gt;HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Microsoft\Windows
Azure Tools for Microsoft Visual Studio 2010\1.0\VirtualMachineRoleEnabled​=1&lt;o:p&gt;&lt;/o:p&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
4)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now in properties of the &lt;b&gt;VMRole&lt;/b&gt;, select Virtual Hard Disk tab, and select an account for the
VHD. If you are using it for first time then you will not find any account there,
and either you have to import or manage it.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGyd_fMPkfq46LZoZCnhu_yTHGGUTEsj8VWREriKYQUwlQPBXygtesiHvPnBIyhZQ_uNRI8MT92NE15-pwz9lj7ocwDr7-BAylUar1av4B-E42CY1vLI69bS04-MxAXpVQl_iw9I0rS3k/s1600/image007.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGyd_fMPkfq46LZoZCnhu_yTHGGUTEsj8VWREriKYQUwlQPBXygtesiHvPnBIyhZQ_uNRI8MT92NE15-pwz9lj7ocwDr7-BAylUar1av4B-E42CY1vLI69bS04-MxAXpVQl_iw9I0rS3k/s400/image007.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
5)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now click on manage, It opens a window and then
click &lt;b&gt;New.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1sOZw-_VF6SNgNbrxVGIwbwEhCaAtLOf5QBOrYAT0N0pRkVHv-ThxujbxFP9U_PJtC7pKsLumF0vwhFnWJND2mUqkYQBfYGBxVhWzg5i5_t15Lb36VEyq0RTx-7c4mp0ca8wdTFpW-oI/s1600/image009.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1sOZw-_VF6SNgNbrxVGIwbwEhCaAtLOf5QBOrYAT0N0pRkVHv-ThxujbxFP9U_PJtC7pKsLumF0vwhFnWJND2mUqkYQBfYGBxVhWzg5i5_t15Lb36VEyq0RTx-7c4mp0ca8wdTFpW-oI/s400/image009.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
6)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now select a certificate&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPWbYGbXJQMZb905RYJ0KDeBR4uule26tXHXgx7JTA3fsCUfr7NdJrbzlc_PrZkNhAj-PnWJk8508XBPeOMAkO4-tsFBzSHwfBGrzxkQ2YQ1ojMc15x8KrtN6jaKaPXYLAHHKEiIE6Sqg/s1600/image011.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPWbYGbXJQMZb905RYJ0KDeBR4uule26tXHXgx7JTA3fsCUfr7NdJrbzlc_PrZkNhAj-PnWJk8508XBPeOMAkO4-tsFBzSHwfBGrzxkQ2YQ1ojMc15x8KrtN6jaKaPXYLAHHKEiIE6Sqg/s400/image011.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
7)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;You can either choose an existing certificate,
or can create a new one. To create a new certificate click “Create”. It asks
for a friendly name. Give name and click OK.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
8)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;You can view the certificate. Just select the
certificate and click View.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3DMIuZVZOmrL_w42TuOLy4ZBWDjQi8Ass0Jg0hkWb0vl3-IQId5fYNYHSbk1T6OF0jBNLIQWEkJdVvyk4f68Ej140kgk6V-2T1FHuz1_cP4bTLuYoEzQLfMN8SKxL2XypouI_ujkeTfw/s1600/image013.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3DMIuZVZOmrL_w42TuOLy4ZBWDjQi8Ass0Jg0hkWb0vl3-IQId5fYNYHSbk1T6OF0jBNLIQWEkJdVvyk4f68Ej140kgk6V-2T1FHuz1_cP4bTLuYoEzQLfMN8SKxL2XypouI_ujkeTfw/s400/image013.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
9)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;You can install the certificate and create a
.pfx for it. Just click on the I&lt;b&gt;nstall&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMVqDJ-_LeW1pcElzoxqTn92dViU4WGBot8SY3py6SgaN2xAGlPIwz1pDv750oRel-ZxYslUIk5qcViYgf2O3AYzBK4n0YdgG2AOE0Mj0lhW0LwGsnU-VdjAcNq-LwQzdJv45OjT2mlms/s1600/image015.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMVqDJ-_LeW1pcElzoxqTn92dViU4WGBot8SY3py6SgaN2xAGlPIwz1pDv750oRel-ZxYslUIk5qcViYgf2O3AYzBK4n0YdgG2AOE0Mj0lhW0LwGsnU-VdjAcNq-LwQzdJv45OjT2mlms/s400/image015.png&quot; width=&quot;321&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
10)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now you have to upload the newly created
certificate to the management portal. For this click “Copy the full path”. Now
click on the “Window Azure Portal”&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF2rbexz2ZJ_3RkSu7OyhJRxB_Aip42v9Q2Gcoo2PwNd3cPAOZcAl3WYi1WwaK6OAAwtZNbb_QODn5auPy8s7620M0hrORFAOsHCIVzLLz4bXsTnxAHY9JQ14P3hpb6zye0vcoYCMEe7E/s1600/image017.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF2rbexz2ZJ_3RkSu7OyhJRxB_Aip42v9Q2Gcoo2PwNd3cPAOZcAl3WYi1WwaK6OAAwtZNbb_QODn5auPy8s7620M0hrORFAOsHCIVzLLz4bXsTnxAHY9JQ14P3hpb6zye0vcoYCMEe7E/s400/image017.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
11)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;On the portal, click on the &lt;b&gt;Add Certificate&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIJT_jtYr4BwQgVtmavJXMETiMTdReH1gnZnuRrvrnIjIDaQKLV7FuK5Dg6p8kcYr4qDRZ5VJQkyR_MO6JtKE414CcRxoXvUYu8Drjo_YwZ9V9TvgMy6V71v7v9SjvaA1cLW3Yr54sv_E/s1600/image019.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIJT_jtYr4BwQgVtmavJXMETiMTdReH1gnZnuRrvrnIjIDaQKLV7FuK5Dg6p8kcYr4qDRZ5VJQkyR_MO6JtKE414CcRxoXvUYu8Drjo_YwZ9V9TvgMy6V71v7v9SjvaA1cLW3Yr54sv_E/s1600/image019.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
12)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now select the certificate, by pasting the path
of the certificate. And click &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://3.bp.blogspot.com/-8tmiZj-Y-0k/TvllmhBi2FI/AAAAAAAAAi0/jU26HsEu9zI/s1600/image021.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;140&quot; src=&quot;http://3.bp.blogspot.com/-8tmiZj-Y-0k/TvllmhBi2FI/AAAAAAAAAi0/jU26HsEu9zI/s400/image021.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
13)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now enter the subscription Id on which
certificate is uploaded and click &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVSSlFWdi1zqAvy5rT2yPoiI0TwLZ-7UI5WidIIJos0xnMdGTduZYIR3B_AuJ79PRP5cFzhU6NnrMRnBGehmBd4AFZ5tOvFPoZwXxbv4SHhriFpkM_j5drKdwCJtOf-pLWxBWgvOQGAh0/s1600/image023.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;271&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVSSlFWdi1zqAvy5rT2yPoiI0TwLZ-7UI5WidIIJos0xnMdGTduZYIR3B_AuJ79PRP5cFzhU6NnrMRnBGehmBd4AFZ5tOvFPoZwXxbv4SHhriFpkM_j5drKdwCJtOf-pLWxBWgvOQGAh0/s400/image023.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
14)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now select the account and click &lt;b&gt;Close.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb3t86LmtDsZbGNylyl_3iHn17poWm2UCo9P4iWmI_0KEq-GS0vAjL4_ttTNq1bVRHsDzB4hXsGIRysP7a5MeAGyfI6f-0j9S_gSMKVb-1kmhkRTrxfx6seQbcAtHhKN-sFWdNMFV7t5o/s1600/image025.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhb3t86LmtDsZbGNylyl_3iHn17poWm2UCo9P4iWmI_0KEq-GS0vAjL4_ttTNq1bVRHsDzB4hXsGIRysP7a5MeAGyfI6f-0j9S_gSMKVb-1kmhkRTrxfx6seQbcAtHhKN-sFWdNMFV7t5o/s320/image025.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
15)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now it will try to get the vhd’s of the account.
Then select the VHD uploaded.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4ulJ7VHq9XFZ6gm1uyNv9Q7L5kRECWF3LTPuY8zqA02BjrAoJihxW2TZ-oukV5gQsw0XRy_B1bcjU7kGPIyA9UmXiAO-nG0X44YjAmYftTMXBUOGgFUsDlpfC4ghRhDzV3NQBTBCgflc/s1600/image027.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4ulJ7VHq9XFZ6gm1uyNv9Q7L5kRECWF3LTPuY8zqA02BjrAoJihxW2TZ-oukV5gQsw0XRy_B1bcjU7kGPIyA9UmXiAO-nG0X44YjAmYftTMXBUOGgFUsDlpfC4ghRhDzV3NQBTBCgflc/s400/image027.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
16)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now configure endpoints to allow external
connection. For this click on the &lt;b&gt;Endpoints&lt;/b&gt;
tab, and then click &lt;b&gt;Add Endpoint&lt;/b&gt;.
Now define Http as the protocol and port 80 for both public and private ports.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeGIJjqRyay4CGxtmkcJbxpeyk74G-fM05zawKgaOslnlnT5DJG38C7YB2q1jbyr0LQT83JqQBrPO0FUL5VmUqegdyn4S1yglJA27LQxiMXF-AN6ZqgolUk-JshLWMRYuJw6Jd9RBuCMk/s1600/image029.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeGIJjqRyay4CGxtmkcJbxpeyk74G-fM05zawKgaOslnlnT5DJG38C7YB2q1jbyr0LQT83JqQBrPO0FUL5VmUqegdyn4S1yglJA27LQxiMXF-AN6ZqgolUk-JshLWMRYuJw6Jd9RBuCMk/s400/image029.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
17)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now configure the remote desktop connection for
the role. Right click the VM role solution and click &lt;b&gt;Package…&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLay6K8ma39g4FtDYFu5Z3_WYtIsOJPjElug-R7eeZFY9fnN3mK5diFfeqPRHFcWnyhh6iN6HSFa2RXUIWRUKao9wDqpkzTd3SMT1YL9o7_5mta2Bt6RVUbfyGkWe4B5MgP7ATDvJ9tio/s1600/image031.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLay6K8ma39g4FtDYFu5Z3_WYtIsOJPjElug-R7eeZFY9fnN3mK5diFfeqPRHFcWnyhh6iN6HSFa2RXUIWRUKao9wDqpkzTd3SMT1YL9o7_5mta2Bt6RVUbfyGkWe4B5MgP7ATDvJ9tio/s400/image031.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
18)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now click the enable Remote desktop for all
roles.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEAVQa-c6aUtmVHLEpwlOGC1Hn9e1UmaEKzEXEzymCGtXMMrR5eMvMWeB87qmT_rNt16PAa6oh_PXhB4clWtSAbJV_Hdyt7A1LCAWeD2cFKKs_SQdKSjQn-LtmkalJz2yhe2_6JkJBs_8/s1600/image033.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEAVQa-c6aUtmVHLEpwlOGC1Hn9e1UmaEKzEXEzymCGtXMMrR5eMvMWeB87qmT_rNt16PAa6oh_PXhB4clWtSAbJV_Hdyt7A1LCAWeD2cFKKs_SQdKSjQn-LtmkalJz2yhe2_6JkJBs_8/s400/image033.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
19)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now here select an existing certificate or you
can create a new one. And enter username and password for remote desktop
connection. Also select the expiration date. And then click &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrL05Vn_4e_LKA1yxxrTpzjNS87_r9Ob9js4MPJ5mezvRCEk7nwH_lsDxbnm3WZ-_P_Rw75QhTix-GxpMLA4J_KWPH_7KTlTfQMuhU2qkQvvemyPp-inp9egbRM6GPceNJgcIOsJCYF1o/s1600/image035.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;381&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrL05Vn_4e_LKA1yxxrTpzjNS87_r9Ob9js4MPJ5mezvRCEk7nwH_lsDxbnm3WZ-_P_Rw75QhTix-GxpMLA4J_KWPH_7KTlTfQMuhU2qkQvvemyPp-inp9egbRM6GPceNJgcIOsJCYF1o/s400/image035.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
20)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now click on the &lt;b&gt;Package&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSlXU68w-SPDtPApGh0VpKqUgVU2qeHNJzqmVmqU0Yq90hDU6-wbO-9TweTcdizEljw3HPvOhaG7unK_uLh1FU0JBnrIblvs0x7Dq2zMUtEYDqQGkrTfM9Gu207RP8ioypMbiBbV3iPlk/s1600/image037.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;217&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSlXU68w-SPDtPApGh0VpKqUgVU2qeHNJzqmVmqU0Yq90hDU6-wbO-9TweTcdizEljw3HPvOhaG7unK_uLh1FU0JBnrIblvs0x7Dq2zMUtEYDqQGkrTfM9Gu207RP8ioypMbiBbV3iPlk/s400/image037.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
21)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;It creates the .cspkg and .cscfg file for
deployment. And open the location in windows explorer.&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/12/creating-service-model-for-vm-role-in.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUb2wYtnEMUhJAfvCigS0xJYmqqodd4HdIapWlQs9KLC_nlb1EHcj6GkgZltViwSY42zicmpN3WjfBswyjKEbOmiWJOJKfNSI5mrxj3PlXSgFNBEON6oUdWYDdTbSL8gX6HxF8saZoawA/s72-c/image001.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-7809259151370863495</guid><pubDate>Tue, 27 Dec 2011 06:24:00 +0000</pubDate><atom:updated>2011-12-30T10:45:20.970+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">VM Role</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Uploading the Disk Image to Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt;

&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small; font-weight: normal;&quot;&gt;In this article we will see how to upload .vhd image to
Windows Azure. You cannot upload image directly from the portal, but it can be
done through command prompt. To upload image&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Open &lt;b&gt;Windows
Azure SDK Command Prompt&lt;/b&gt; &lt;b&gt;as an
administrator&lt;/b&gt; from &lt;b&gt;Start -&amp;gt; All
Programs -&amp;gt; Windows Azure SDK v1.x&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;At command prompt execute the following command&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&amp;nbsp;&lt;b&gt;csupload Add-VMImage -Connection
&quot;SubscriptionId=&lt;your-subscription-id&gt;;
CertificateThumbprint=&lt;your-certificate-thumbprint&gt;&quot; -Description
&quot;Base image Windows Server 2008 R2&quot; -LiteralPath &quot;&lt;path-to-vhd-file&gt;&quot;
-Name baseimage.vhd -Location &lt;hosted-service-location&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/hosted-service-location&gt;&lt;/path-to-vhd-file&gt;&lt;/your-certificate-thumbprint&gt;&lt;/your-subscription-id&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
Where&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1.0in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;your-subscription-id&gt; is your
subscription Id&lt;/your-subscription-id&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1.0in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;your-certificate-thumbprint&gt; is the
thumbprint of the certificate on the management portal.&lt;/your-certificate-thumbprint&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1.0in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;Set the description as Base image Windows Server
2008 R2&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1.0in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;path-to-vhd-file&gt; is the full path of the
.vhd file.&lt;/path-to-vhd-file&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1.0in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;Set the name of the image as baseimage.vhd. So,
that the name of the image on portal will be baseimage.vhd&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 1.0in; mso-add-space: auto; mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;hosted-service-location&gt; set the location
where the hosted service will be deployed. The location can be “East Asia”, “North Central US”, “North
Europe”, “South Central US”, “Southeast Asia”, “West Europe”.&lt;/hosted-service-location&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;In the &lt;b&gt;Windows
Azure VHD Verification Tool&lt;/b&gt; dialog, click &lt;b&gt;OK&lt;/b&gt; to allow the VHD to be mounted.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9MT-mzLv66TjGILMGRRfGicGaI5P3bpTYUOMWTstlGO1n8nc85LJzgCV613IK-3KJl4cyQjFmUw63RH3SPXYnWP9QYEK5xHxcHy2UkRZW0wkRG92okyf04tS4H6IZfo8LWzWVlC03W8E/s1600/image001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9MT-mzLv66TjGILMGRRfGicGaI5P3bpTYUOMWTstlGO1n8nc85LJzgCV613IK-3KJl4cyQjFmUw63RH3SPXYnWP9QYEK5xHxcHy2UkRZW0wkRG92okyf04tS4H6IZfo8LWzWVlC03W8E/s400/image001.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
4)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now it mounts the .vhd file and verifies it. In
this process it generates a compressed file (.preped file) in the same folder as the original image file.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH3Fr9wJVteAJiIad47J5sZdixrmsuOal5o_QlrtpuKFiakDuyqVEUe-1fGz6NLZeFqo36NZxWmeYLE2CYDx0mNDrz4DSSBvy-SsqrQVISzCVHLm9_g3ZOq-gNKpZc8unaAWKfAMotyPQ/s1600/image003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH3Fr9wJVteAJiIad47J5sZdixrmsuOal5o_QlrtpuKFiakDuyqVEUe-1fGz6NLZeFqo36NZxWmeYLE2CYDx0mNDrz4DSSBvy-SsqrQVISzCVHLm9_g3ZOq-gNKpZc8unaAWKfAMotyPQ/s400/image003.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
5)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;After that it creates a new blob for uploading
the image file and starts uploading the compressed image to the azure account.
It will take significant amount of time. After completion it shows the details.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4tVaLo1Oszu1lzepbYheb4fjJdXatoaJJUREshyT2lcgZwvehrDzWlglBkgqUduTb6rOts-RiIF10DnF_QelUAb1eUAejo-f95RRrxsVqVQhyBl2RJbi2bvoPhGup-8Xcg2NdyjujtoY/s1600/image005.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4tVaLo1Oszu1lzepbYheb4fjJdXatoaJJUREshyT2lcgZwvehrDzWlglBkgqUduTb6rOts-RiIF10DnF_QelUAb1eUAejo-f95RRrxsVqVQhyBl2RJbi2bvoPhGup-8Xcg2NdyjujtoY/s400/image005.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
6)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Once the image is uploaded successfully it shows
the status of the image as &lt;i&gt;Committed&lt;/i&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNKobzJiJCLFXUbwR_JU3lNDkUa-6RX_zU2xF6LkIuDG_56cHjgnGJO0yHvJqfSej51JC0iYLLEfrLgQXZOQHf19ihpvInkzrf-sx9uPBes4WEcDNI4hr1c8L_BlLceVQO1IAobRREdJI/s1600/image007.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;80&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNKobzJiJCLFXUbwR_JU3lNDkUa-6RX_zU2xF6LkIuDG_56cHjgnGJO0yHvJqfSej51JC0iYLLEfrLgQXZOQHf19ihpvInkzrf-sx9uPBes4WEcDNI4hr1c8L_BlLceVQO1IAobRREdJI/s400/image007.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/12/uploading-disk-image-to-windows-azure.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9MT-mzLv66TjGILMGRRfGicGaI5P3bpTYUOMWTstlGO1n8nc85LJzgCV613IK-3KJl4cyQjFmUw63RH3SPXYnWP9QYEK5xHxcHy2UkRZW0wkRG92okyf04tS4H6IZfo8LWzWVlC03W8E/s72-c/image001.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-4294594395961661651</guid><pubDate>Tue, 27 Dec 2011 06:13:00 +0000</pubDate><atom:updated>2011-12-27T11:48:53.593+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Installing Windows Azure Integration Components on VM role</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt;

&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small; font-weight: normal;&quot;&gt;In this article we will see how to install integration
components on the virtual machine. The integration components must be installed
on the machine before base image is uploaded to the Azure. The integration
components start each time the OS starts. It handles the integration between
the role instance and Azure environment. Windows Azure Integration components
support:&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Windows
setup for deployment&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
When a VM role instance comes online, the
generalized image that is used to create the instance must run through a setup
specialization phase. This specialization phase is performed by the System
Preparation Tool (sysprep), provided by the Windows Azure Integration
Components. &amp;nbsp;To automate the specialization,
it creates an answer file named c:\unattend.xml.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Interaction
with the Windows Azure environment&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
It installs the Service runtime API’s, so
that the VM role can get information about the Azure environment, like instance
ID, upgrade domain etc. This information is only available to the code that is
running under an Administrator or LocalSystem account in the VM role instance.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Local
storage resources&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
You can access the local resources using
the Service runtime API’s or at c:\Resources\&lt;resource-name&gt;.&lt;/resource-name&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l1 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Certificate
installation&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
You can install the certificates to the &lt;i&gt;LocalMachine&lt;/i&gt; store location.&lt;span style=&quot;color: #353535; font-family: &#39;Segoe UI&#39;, sans-serif; font-size: 10.5pt; line-height: 115%;&quot;&gt; I&lt;/span&gt;t is not possible to install
certificates to the&amp;nbsp;&lt;i&gt;CurrentUser&lt;/i&gt;&amp;nbsp;store location or
any other store location. Do not install the certificate before uploading,
because while generalizing the image, System Preparation Tool (sysprep) will
destroy the private key of the certificate.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now we will see how to install Integration components on VM
role.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;From the Hyper-V manager, right click the VM
role and click &lt;b&gt;Connect&lt;/b&gt;, and start
it. Now Click on the &lt;b&gt;Media&lt;/b&gt; -&amp;gt; &lt;b&gt;DVD Drive&lt;/b&gt; -&amp;gt; &lt;b&gt;Insert Disk…&lt;/b&gt; &lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9jw1UIXe53acOKQAQh8YDTiia7Wb6REDfmwoajymALrG1uN9oNhWdlvZe_L0Ij0Jdb2hJJ6DLfNHwGts7gIEsj9Mfe_imyVB7j48Bssz9m8o738OAGF5B_SjdDJMIOCiKtfOByBdubdo/s1600/image001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9jw1UIXe53acOKQAQh8YDTiia7Wb6REDfmwoajymALrG1uN9oNhWdlvZe_L0Ij0Jdb2hJJ6DLfNHwGts7gIEsj9Mfe_imyVB7j48Bssz9m8o738OAGF5B_SjdDJMIOCiKtfOByBdubdo/s400/image001.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;v:shapetype coordsize=&quot;21600,21600&quot; filled=&quot;f&quot; id=&quot;_x0000_t75&quot; o:preferrelative=&quot;t&quot; o:spt=&quot;75&quot; path=&quot;m@4@5l@4@11@9@11@9@5xe&quot; stroked=&quot;f&quot;&gt;
 &lt;v:stroke joinstyle=&quot;miter&quot;&gt;
 &lt;v:formulas&gt;
  &lt;v:f eqn=&quot;if lineDrawn pixelLineWidth 0&quot;&gt;
  &lt;v:f eqn=&quot;sum @0 1 0&quot;&gt;
  &lt;v:f eqn=&quot;sum 0 0 @1&quot;&gt;
  &lt;v:f eqn=&quot;prod @2 1 2&quot;&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelWidth&quot;&gt;
  &lt;v:f eqn=&quot;prod @3 21600 pixelHeight&quot;&gt;
  &lt;v:f eqn=&quot;sum @0 0 1&quot;&gt;
  &lt;v:f eqn=&quot;prod @6 1 2&quot;&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelWidth&quot;&gt;
  &lt;v:f eqn=&quot;sum @8 21600 0&quot;&gt;
  &lt;v:f eqn=&quot;prod @7 21600 pixelHeight&quot;&gt;
  &lt;v:f eqn=&quot;sum @10 21600 0&quot;&gt;
 &lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;
 &lt;v:path gradientshapeok=&quot;t&quot; o:connecttype=&quot;rect&quot; o:extrusionok=&quot;f&quot;&gt;
 &lt;o:lock aspectratio=&quot;t&quot; v:ext=&quot;edit&quot;&gt;
&lt;/o:lock&gt;&lt;/v:path&gt;&lt;/v:stroke&gt;&lt;/v:shapetype&gt;&lt;v:shape id=&quot;Picture_x0020_2&quot; o:spid=&quot;_x0000_i1035&quot; style=&quot;height: 99pt; mso-wrap-style: square; visibility: visible; width: 297pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now open the location for wavmroleic.iso. It
will be located at C:\Program Files\Windows Azure SDK\v1.6\iso.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBVHua2f8U-w4MeEj1vyqLMdHGyTO3jO0fJyn8xT44-aaT99Bw_o3vUKJghntd5hZkrHUp8BhFN72lrH912QE7vBOLEpEvlwz-lngOIrw-xVl1GcVTJtV7n5P0-q4OfnLgotdnf_5ywos/s1600/image002.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBVHua2f8U-w4MeEj1vyqLMdHGyTO3jO0fJyn8xT44-aaT99Bw_o3vUKJghntd5hZkrHUp8BhFN72lrH912QE7vBOLEpEvlwz-lngOIrw-xVl1GcVTJtV7n5P0-q4OfnLgotdnf_5ywos/s400/image002.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_9&quot; o:spid=&quot;_x0000_i1034&quot; style=&quot;height: 330pt; mso-wrap-style: square; visibility: visible; width: 468pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image002.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;It opens an AutoPlay dialogue. Now click &lt;b&gt;Open folder to view files using Windows
Explorer&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwJVPgcCNk4wOw9rAi3InAQ_6voD7POWWY_bIkDu4lWUruUU5PZzQYW2J1eTl90Nss7IfgzQWpv1nzm4GrOQ0aTQ4xqzKMS_p3Ukzod1oREKeex1wMf2-9QHA-xdIEQcQdB-n5FtnB6h8/s1600/image003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;338&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwJVPgcCNk4wOw9rAi3InAQ_6voD7POWWY_bIkDu4lWUruUU5PZzQYW2J1eTl90Nss7IfgzQWpv1nzm4GrOQ0aTQ4xqzKMS_p3Ukzod1oREKeex1wMf2-9QHA-xdIEQcQdB-n5FtnB6h8/s400/image003.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_3&quot; o:spid=&quot;_x0000_i1033&quot; style=&quot;height: 219pt; mso-wrap-style: square; visibility: visible; width: 258pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
4)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now click double click the &lt;b&gt;WaIntegrationComponents-x64.msi &lt;/b&gt;(Windows Installer) file.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_4&quot; o:spid=&quot;_x0000_i1032&quot; style=&quot;height: 149.25pt; mso-wrap-style: square; visibility: visible; width: 467.25pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image004.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlnXew1HifJE5bCpG_LKH4-ezKhU4KobW4JLu1GAhdlHGUtZq5umcpERqXtloHN_IPV0Y6SVP7soqcJxNWMziLZgIf5xvXHlLPeAAewy_9asdAfjfgpBn0Du-BMkqZxT2iCbTlph7Jej0/s1600/image004.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;127&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlnXew1HifJE5bCpG_LKH4-ezKhU4KobW4JLu1GAhdlHGUtZq5umcpERqXtloHN_IPV0Y6SVP7soqcJxNWMziLZgIf5xvXHlLPeAAewy_9asdAfjfgpBn0Du-BMkqZxT2iCbTlph7Jej0/s400/image004.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
5)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Click next on the Setup wizard.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_5&quot; o:spid=&quot;_x0000_i1031&quot; style=&quot;height: 291pt; mso-wrap-style: square; visibility: visible; width: 468pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiwSW83SHagOVCyqfV0UD1jDw3vFxp337KJIK8l2e7JELGIZqU-1XzeMkgISAjca018tK8YKDnRbj2UwtRTumaMTVgI0M-c5TPP02N_uHO9N9GzosxNOpKRC2hMyHyVxJ73j65P4G3rUs/s1600/image005.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjiwSW83SHagOVCyqfV0UD1jDw3vFxp337KJIK8l2e7JELGIZqU-1XzeMkgISAjca018tK8YKDnRbj2UwtRTumaMTVgI0M-c5TPP02N_uHO9N9GzosxNOpKRC2hMyHyVxJ73j65P4G3rUs/s400/image005.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
6)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now at Operating system Configuration wizard,
enter Password and click &lt;b&gt;Next&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaiFfMhUD1p92Q48CECUznHmijzsPvGMRDUBHST_uqZPqlptaSZStPYomfAZQ4zih6QNSEujI6-9AhyphenhyphenogbyAQkTeEvhvu1kVydQLtzCnv6Y2JCuXYi6eMKxczk3FrD-zlOYdv4qU86B4g/s1600/image006.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaiFfMhUD1p92Q48CECUznHmijzsPvGMRDUBHST_uqZPqlptaSZStPYomfAZQ4zih6QNSEujI6-9AhyphenhyphenogbyAQkTeEvhvu1kVydQLtzCnv6Y2JCuXYi6eMKxczk3FrD-zlOYdv4qU86B4g/s400/image006.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_6&quot; o:spid=&quot;_x0000_i1030&quot; style=&quot;height: 288.75pt; mso-wrap-style: square; visibility: visible; width: 359.25pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image006.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
7)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now Click &lt;b&gt;Install&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_7&quot; o:spid=&quot;_x0000_i1029&quot; style=&quot;height: 289.5pt; mso-wrap-style: square; visibility: visible; width: 376.5pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image007.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPkU6LruBbpVn0Hbhg5OqJ0-fhoIFS5rW6H2-FtskYRCpyRNCE7TsIY0udfjtJbmHevN1vP3GAL7pFY64SQYpggGHF0xygKGZodLBG0dFQ_7sHPj5Gkq4nefu76qWuYBFOe9ePy9gUtBo/s1600/image007.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPkU6LruBbpVn0Hbhg5OqJ0-fhoIFS5rW6H2-FtskYRCpyRNCE7TsIY0udfjtJbmHevN1vP3GAL7pFY64SQYpggGHF0xygKGZodLBG0dFQ_7sHPj5Gkq4nefu76qWuYBFOe9ePy9gUtBo/s400/image007.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
8)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;If it asks for installing the device software,
click &lt;b&gt;Install&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_10&quot; o:spid=&quot;_x0000_i1028&quot; style=&quot;height: 168pt; mso-wrap-style: square; visibility: visible; width: 367.5pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image008.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQV7v2_Iowm10Ts6PLrps2lzMaIFOE0GdHKTCOQ7pELP9jWdQVfGxvVSflCsw6w91IB3iBjbcti1ONcUW9qLRQKYMdqzhrH8_DxIJoP5HlXDZ-7jYiIvaa4NWrbMwcQaQNT-OcUd9fyNc/s1600/image008.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;182&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQV7v2_Iowm10Ts6PLrps2lzMaIFOE0GdHKTCOQ7pELP9jWdQVfGxvVSflCsw6w91IB3iBjbcti1ONcUW9qLRQKYMdqzhrH8_DxIJoP5HlXDZ-7jYiIvaa4NWrbMwcQaQNT-OcUd9fyNc/s400/image008.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
9)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;It will take some time for installation. When
the installation completes, click &lt;b&gt;Finish&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_8&quot; o:spid=&quot;_x0000_i1027&quot; style=&quot;height: 288.75pt; mso-wrap-style: square; visibility: visible; width: 375.75pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image009.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy_eL3vUpEcH64RJswyhW-ihXPUEdzCnbsR65ORgc-ru6Oe4zrl2q2rLaIuesMU8YIXarLf-IY7COG8FH84yQG6lSHh49pPQq13KTgRHijRFNgIJhx6JB9bLAlI-__g-MfdPhP07emSUQ/s1600/image009.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgy_eL3vUpEcH64RJswyhW-ihXPUEdzCnbsR65ORgc-ru6Oe4zrl2q2rLaIuesMU8YIXarLf-IY7COG8FH84yQG6lSHh49pPQq13KTgRHijRFNgIJhx6JB9bLAlI-__g-MfdPhP07emSUQ/s400/image009.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
10)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now it will ask you to restart the system. Click
&lt;b&gt;Yes&lt;/b&gt; to restart the system.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_11&quot; o:spid=&quot;_x0000_i1026&quot; style=&quot;height: 128.25pt; mso-wrap-style: square; visibility: visible; width: 278.25pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image010.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-pzcwP5FkPEJQyBoOtdzgwJld-vHsa38ZbVA1PI904L7_Yv5DLwIJ-D-7HOWakhhVOXFMxpYj1pc9T3WoqzNuiK8w6tBV__oWmRgHO-51fhsjnc4KdWBubc8XaU11C2MoQ5pL5gXPwY8/s1600/image010.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;183&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-pzcwP5FkPEJQyBoOtdzgwJld-vHsa38ZbVA1PI904L7_Yv5DLwIJ-D-7HOWakhhVOXFMxpYj1pc9T3WoqzNuiK8w6tBV__oWmRgHO-51fhsjnc4KdWBubc8XaU11C2MoQ5pL5gXPwY8/s400/image010.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
11)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now launch the &lt;b&gt;System Preparation Tool&lt;/b&gt; from the location &lt;b&gt;C:\system32\sysprep\sysprep.exe&lt;/b&gt;. Set the &lt;b&gt;System Cleanup Action&lt;/b&gt; to &lt;i&gt;“Enter
System Out-of-Box Experience (OOBE)”&lt;/i&gt;, check the option labeled &lt;b&gt;Generalize&lt;/b&gt;, set the &lt;b&gt;Shutdown Options&lt;/b&gt; to &lt;i&gt;Shutdown&lt;/i&gt;, and then press &lt;b&gt;OK&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;v:shape id=&quot;Picture_x0020_1&quot; o:spid=&quot;_x0000_i1025&quot; style=&quot;height: 192pt; mso-wrap-style: square; visibility: visible; width: 259.5pt;&quot; type=&quot;#_x0000_t75&quot;&gt;
 &lt;v:imagedata o:title=&quot;&quot; src=&quot;file:///C:\Users\REETA1~2\AppData\Local\Temp\msohtmlclip1\01\clip_image011.png&quot;&gt;
&lt;/v:imagedata&gt;&lt;/v:shape&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheeCN9oZ_XfuKz1rq0QF-vhByTxyvvq1KLNezcNGf_BLfKjvB6QHGhVIOBJ4W88_1SHFHIf3kQ5dAR61fBeF0Cw9olTTia2i39Be5xkyisyXZeTFzjtrkSFqn1QYqkrcwOWZ02rCPTKQY/s1600/image011.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;295&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheeCN9oZ_XfuKz1rq0QF-vhByTxyvvq1KLNezcNGf_BLfKjvB6QHGhVIOBJ4W88_1SHFHIf3kQ5dAR61fBeF0Cw9olTTia2i39Be5xkyisyXZeTFzjtrkSFqn1QYqkrcwOWZ02rCPTKQY/s400/image011.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo2; text-indent: -.25in;&quot;&gt;
12)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now the image is ready for deployment.&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/12/installing-windows-azure-integration.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9jw1UIXe53acOKQAQh8YDTiia7Wb6REDfmwoajymALrG1uN9oNhWdlvZe_L0Ij0Jdb2hJJ6DLfNHwGts7gIEsj9Mfe_imyVB7j48Bssz9m8o738OAGF5B_SjdDJMIOCiKtfOByBdubdo/s72-c/image001.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-557489824514356174</guid><pubDate>Tue, 27 Dec 2011 05:52:00 +0000</pubDate><atom:updated>2011-12-30T10:45:31.896+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">VM Role</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Preparing Base Image for Deployment</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt;



&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small; font-weight: normal;&quot;&gt;Now we had a .vhd image containing default installation of
Windows server 2008 R2. Now in this article we will install components required
for the deployment to windows azure. Connect to the virtual machine created and
starts it.&lt;/span&gt;&lt;/h1&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;After login, it shows the desktop of virtual
machine. Now from &lt;b&gt;All Programs&lt;/b&gt; &lt;b&gt;-&amp;gt; Administrative Tools&lt;/b&gt;, launch &lt;b&gt;Server Manager&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Select the role node and click Add Roles.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqM3eVApSr5FodwThDuFtfQIJzI4jb1PeSDjm9ct0Bx6wafBJS-99meHHk5LuYo-wBLfvAOnh26w3GrdSYYUPehhQzRG18x30zXC_wh7Hd7sB8iiBXMUcC4Vq7TkwGcHzsovZ56ABwBt0/s1600/image001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;287&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqM3eVApSr5FodwThDuFtfQIJzI4jb1PeSDjm9ct0Bx6wafBJS-99meHHk5LuYo-wBLfvAOnh26w3GrdSYYUPehhQzRG18x30zXC_wh7Hd7sB8iiBXMUcC4Vq7TkwGcHzsovZ56ABwBt0/s400/image001.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;In the &lt;b&gt;Server
Roles&lt;/b&gt; step, select the &lt;b&gt;Web Server
(IIS)&lt;/b&gt;, and click &lt;b&gt;Next&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgduy4eFviqF3xpX23xXVwHEQnqECiskDNn4TsW0JcPSA5Xt2qW-pU4yVL4WoYxq18gQ2-qzJLBRZgSIq4ZIe4b297w61Z7mXcn7uG0qI4FuCr7C4ajELmtMbEkSfsaSUxg0JO87Gxse6g/s1600/image003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgduy4eFviqF3xpX23xXVwHEQnqECiskDNn4TsW0JcPSA5Xt2qW-pU4yVL4WoYxq18gQ2-qzJLBRZgSIq4ZIe4b297w61Z7mXcn7uG0qI4FuCr7C4ajELmtMbEkSfsaSUxg0JO87Gxse6g/s400/image003.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
4)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now on the &lt;b&gt;Web
Server (IIS)&lt;/b&gt; step click &lt;b&gt;Next&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsugpqce5spBnvyre3zyLPQgY82ilR03G-trrv197bSwm3p8oXxKE735B7xFnbylCU2mvCb909sdIzsnqY3q3bQHAxqaQGpWaFMayvF-PhCdw5A5aD_1mn3Tgy43BFqce5mYGtZFUeLLQ/s1600/image005.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;275&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsugpqce5spBnvyre3zyLPQgY82ilR03G-trrv197bSwm3p8oXxKE735B7xFnbylCU2mvCb909sdIzsnqY3q3bQHAxqaQGpWaFMayvF-PhCdw5A5aD_1mn3Tgy43BFqce5mYGtZFUeLLQ/s400/image005.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
5)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;On the &lt;b&gt;Role
Services&lt;/b&gt; step click &lt;b&gt;Next&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG4LPBJsQvZrfnTqxxcj6R_v3jeyDxCLFC6O77WLO66jhI43bOvR080FpOVsG8mgkZUyX6drcJg-Gjy-qzRKcSiX_oN_4tjXrZ8oddRAZGGstJGZJyPKTjSH0bFdSxZMQEvCHfpLwhvzU/s1600/image007.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG4LPBJsQvZrfnTqxxcj6R_v3jeyDxCLFC6O77WLO66jhI43bOvR080FpOVsG8mgkZUyX6drcJg-Gjy-qzRKcSiX_oN_4tjXrZ8oddRAZGGstJGZJyPKTjSH0bFdSxZMQEvCHfpLwhvzU/s400/image007.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
6)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now on the &lt;b&gt;Confirmation&lt;/b&gt;
step, check Web server is included for the installation. And then click &lt;b&gt;Install.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmiDqh5dre-xqtWOyiOnGhnkYLIHudO0pjrkiUsYF7Gebvozbd3F5tOcTlqJsJgs0c-6ud8lFlfHeo1K2arpPT87jejJY6DkncySZUKgNYwgPRDfZ4prJ5AJqmTUglaWUDPbldlEhQtQk/s1600/image009.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmiDqh5dre-xqtWOyiOnGhnkYLIHudO0pjrkiUsYF7Gebvozbd3F5tOcTlqJsJgs0c-6ud8lFlfHeo1K2arpPT87jejJY6DkncySZUKgNYwgPRDfZ4prJ5AJqmTUglaWUDPbldlEhQtQk/s400/image009.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
7)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;When installation is complete, click &lt;b&gt;Close.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgt_-GZWv1qWXF0rnpUKzWj62rGoWfJ-2uVfGbnOLb31KmdXVtks4Lm51wuDJFfPmmBL4wkDxdUixqdkbBcC53HdGx5OTLKREHjRf2ep7x9NtR_b3T3VMgEfST3fCObhL3O4brRhM14UA/s1600/image011.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;277&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgt_-GZWv1qWXF0rnpUKzWj62rGoWfJ-2uVfGbnOLb31KmdXVtks4Lm51wuDJFfPmmBL4wkDxdUixqdkbBcC53HdGx5OTLKREHjRf2ep7x9NtR_b3T3VMgEfST3fCObhL3O4brRhM14UA/s400/image011.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;ppNumberList&quot; style=&quot;margin-left: .5in; mso-list: l0 level1 lfo1; tab-stops: 1.0in; text-indent: -.25in;&quot;&gt;
8)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Next,
in Server Manager, select the &lt;b&gt;Features&lt;/b&gt;
node and then click &lt;b&gt;Add Features&lt;/b&gt;. We
can see that Web Server IIS tools are already in the features list.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRQBRC8ElYUesr5DWaW2oBMsTl5XGkfIaAwDwtPd4Wo2GFyPIbmTMaCxmh37pHkm9tXKYZYfuv79xY-9hNn39E2B_mLacC_5-GOZy-YGVoPnr4GLTt0mM5HuJUPH_3AYRHwTUnK74n1SY/s1600/image013.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;277&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRQBRC8ElYUesr5DWaW2oBMsTl5XGkfIaAwDwtPd4Wo2GFyPIbmTMaCxmh37pHkm9tXKYZYfuv79xY-9hNn39E2B_mLacC_5-GOZy-YGVoPnr4GLTt0mM5HuJUPH_3AYRHwTUnK74n1SY/s400/image013.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
9)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;In the Features step, expand the &lt;b&gt;.Net framework 3.5.1 Features&lt;/b&gt; and &lt;b&gt;tick .Net Framework 3.5.1&lt;/b&gt; and click &lt;b&gt;Next.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ9MQZF3FerDp8cOrqhNzTGljIzJW0O7QxGpeU3EaOYAo5fNLKhbTogkXyaxA15wima9bFW_6cyQcgscsM4DdU8to2Z7KTyBJL3IBq-HUtzdkY0aQMUKTIznIAFxtDbelvvOGSIMtZvWw/s1600/image015.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJ9MQZF3FerDp8cOrqhNzTGljIzJW0O7QxGpeU3EaOYAo5fNLKhbTogkXyaxA15wima9bFW_6cyQcgscsM4DdU8to2Z7KTyBJL3IBq-HUtzdkY0aQMUKTIznIAFxtDbelvvOGSIMtZvWw/s400/image015.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
10)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;On the &lt;b&gt;Confirmation&lt;/b&gt;
step, Click &lt;b&gt;Install&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgXzU2Tv72cG8KLsF_eFDUBDOgPmCchrrgFmhxGje_NDs5JZKYOGEkRsefx9eyb5KjlxIojzBDfxCqE7HNkXoMXPqbiPlIginxLtvffEUdMwvi-kpSvTD0I5rudRogZRuIjhAQvg0C94c/s1600/image017.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgXzU2Tv72cG8KLsF_eFDUBDOgPmCchrrgFmhxGje_NDs5JZKYOGEkRsefx9eyb5KjlxIojzBDfxCqE7HNkXoMXPqbiPlIginxLtvffEUdMwvi-kpSvTD0I5rudRogZRuIjhAQvg0C94c/s400/image017.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
11)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;After the features are installed, on &lt;b&gt;Results&lt;/b&gt; step, click &lt;b&gt;Close.&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcz6GDq5JTC8XykIQh2JZb6xFqOsLcOw0Zi7nW3x4f8vJdBQAwZyfgOa3m1FEjSQ5mkadcK6dt8Nf7aIKvqPY2hYNyd8EbrUukM-4oPG8BoOGEeC3qRtwToB1-pR48FZQy35tQMzkGX_o/s1600/image019.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcz6GDq5JTC8XykIQh2JZb6xFqOsLcOw0Zi7nW3x4f8vJdBQAwZyfgOa3m1FEjSQ5mkadcK6dt8Nf7aIKvqPY2hYNyd8EbrUukM-4oPG8BoOGEeC3qRtwToB1-pR48FZQy35tQMzkGX_o/s400/image019.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
12)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now open the Windows Update control panel, and
on the &lt;b&gt;Change Settings&lt;/b&gt; page,
select the option labeled &lt;b&gt;Never check
for updates (not recommended)&lt;/b&gt; and then click &lt;b&gt;OK&lt;/b&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
13)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Now check for available updates and install the
updates.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/12/preparing-base-image-for-deployment.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqM3eVApSr5FodwThDuFtfQIJzI4jb1PeSDjm9ct0Bx6wafBJS-99meHHk5LuYo-wBLfvAOnh26w3GrdSYYUPehhQzRG18x30zXC_wh7Hd7sB8iiBXMUcC4Vq7TkwGcHzsovZ56ABwBt0/s72-c/image001.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-4079234806463026938</guid><pubDate>Mon, 26 Dec 2011 11:51:00 +0000</pubDate><atom:updated>2011-12-30T10:45:57.311+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">VM Role</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Creating a Base image for Virtual Machine Role on Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt;


Creating a Base image for Virtual Machine Role on Windows Azure&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
In this article we will see how to create a base image for
Virtual machine role on windows Azure. I am assuming you have windows server
2008 R2 and hyper V installed on the server. &lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Open
Hyper-V manager and connect to Hyper-V server.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwWEq3d_DfcAXpd5X9G4x6go_75LwUys6D2XVPhkBj4lSxWZMUBAaW2zQuEKEYaV6NkSykP_AtayjdNKJDZTAEacKzzKbU_11VEN7IkSQKwBqdujtbh1hg5Fzuh1O9FvN2w1SPmemzkXs/s1600/image001.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwWEq3d_DfcAXpd5X9G4x6go_75LwUys6D2XVPhkBj4lSxWZMUBAaW2zQuEKEYaV6NkSykP_AtayjdNKJDZTAEacKzzKbU_11VEN7IkSQKwBqdujtbh1hg5Fzuh1O9FvN2w1SPmemzkXs/s400/image001.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Now
select the server, then right- click on it. And select &lt;b&gt;New&lt;/b&gt; and click &lt;b&gt;Virtual
Machine…&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu8si3Ny1q-ZaR1cd_n6N0rEx2scVh4kM2_2SWWaVJhhcrJphZ7mfod9yyhYyQXyIYkcadVWZOoYj8Lp65eBYCzATCNcMOdL-Prxb7ArO8bWHEwQJLX92CzPSk2DEgDeJmrCAbQsHn-QA/s1600/image003.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;187&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu8si3Ny1q-ZaR1cd_n6N0rEx2scVh4kM2_2SWWaVJhhcrJphZ7mfod9yyhYyQXyIYkcadVWZOoYj8Lp65eBYCzATCNcMOdL-Prxb7ArO8bWHEwQJLX92CzPSk2DEgDeJmrCAbQsHn-QA/s400/image003.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;It
opens a New Virtual Machine Wizard. On the &lt;b&gt;Specify
Name and Location&lt;/b&gt; tab, specify the name for virtual machine. If you want to
change location of the image, you can also do this by specifying the new
location, and click &lt;b&gt;Next&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTh6Ov6XSpf4_qsqm2GvijT0tXcJG3-tkiZC1Mb0P7SjnE8bMJKWXA_k_Gd-lqGKOiEv-jUOTtYi20yR6MCptFDfSgIPU9q06eW3YsHKcKwlM3my2S7hfHISjwXJJmo599k3O5KYpblvw/s1600/image005.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTh6Ov6XSpf4_qsqm2GvijT0tXcJG3-tkiZC1Mb0P7SjnE8bMJKWXA_k_Gd-lqGKOiEv-jUOTtYi20yR6MCptFDfSgIPU9q06eW3YsHKcKwlM3my2S7hfHISjwXJJmo599k3O5KYpblvw/s400/image005.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
4)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Now
in the &lt;b&gt;Assign Memory&lt;/b&gt; step specify
the memory allocated to VM. This amount can range from 8MB- 10236 MB. In our
demo we will set it to 2048 MB, and click &lt;b&gt;Next&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtIIcpdTZsFTwTiMy1Z51-OpGJCNJu5v6aR5RB5NxHhetlzHMZ3UBNrfUDzV9Mhx1imDbyEgtPlMnhaoCJ532JVCZCFVTJbqBj7_YgrUdJ-G4e1N3iESwep3MzdWjtQDo_-LOCABLQJcQ/s1600/image007.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtIIcpdTZsFTwTiMy1Z51-OpGJCNJu5v6aR5RB5NxHhetlzHMZ3UBNrfUDzV9Mhx1imDbyEgtPlMnhaoCJ532JVCZCFVTJbqBj7_YgrUdJ-G4e1N3iESwep3MzdWjtQDo_-LOCABLQJcQ/s400/image007.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
5)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Next,
in the &lt;b&gt;Configure Networking&lt;/b&gt; step,
select &lt;b&gt;Local Area Connection - Virtual
Network&lt;/b&gt; and then click &lt;b&gt;Next&lt;/b&gt;.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk21MmGReAdW3oWXUNQnot-WiK_ccrQ8hzXV17vHeL7ie7cLpH1j0Oo4YbUZbdX3umdHlTMvnstu4V4kpsTEjZFh0afHnFX7cgNFH1TlMCQKtME9ez5EfgoINdz859JpOtshLG4LxKnDY/s1600/image009.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk21MmGReAdW3oWXUNQnot-WiK_ccrQ8hzXV17vHeL7ie7cLpH1j0Oo4YbUZbdX3umdHlTMvnstu4V4kpsTEjZFh0afHnFX7cgNFH1TlMCQKtME9ez5EfgoINdz859JpOtshLG4LxKnDY/s400/image009.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
6)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Next,
in the&lt;b&gt; Connect Virtual Hard disk&lt;/b&gt;
step, select the &lt;b&gt;Create a virtual hard
disk&lt;/b&gt;. Specify the name of the disk. If you want to change the location you
can change it here. Set the size of the disk. If you want to choose an existing
disk, you have to choose &lt;b&gt;Use an existing
virtual hard disk&lt;/b&gt; option, and browse to the disk location. If you are using
an existing disk, you can skip the OS installation section.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;b&gt;Note&lt;/b&gt;
- The image file must contain a &lt;b&gt;single&lt;/b&gt; &lt;b&gt;partition&lt;/b&gt; with the OS installation and must not include a recovery
partition.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdWt9T9IFyqsqg6ZK7AC9U5tO18FipIod9KRZU-aUZZDqVyspq-JTzpmn0mOszdf7VzBef61-XsvNUJo-89QPf8SqrdtrV_nf4IKrI01gqgYggbKp8O01PGDq6tYoP5QiJjtaSjd2Pgh8/s1600/image011.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdWt9T9IFyqsqg6ZK7AC9U5tO18FipIod9KRZU-aUZZDqVyspq-JTzpmn0mOszdf7VzBef61-XsvNUJo-89QPf8SqrdtrV_nf4IKrI01gqgYggbKp8O01PGDq6tYoP5QiJjtaSjd2Pgh8/s400/image011.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
7)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Now,
since we are creating a new disk we need to specify how OS (Windows server 2008
R2 Enterprise Edition) will be installed. Here are different options, either
you can install OS later, or can install it from CD/DVD or from a network. Here
we are using an .iso image for installing OS. So select the option I&lt;b&gt;nstall an operating system from a boot
CD/DVD-ROM.&lt;/b&gt; And select the image file and browse to the location. Now click
next.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh1E_W4Xw1iMjE_EPlCDVPT0iAQtu7OxejAZPEw94Q4oykQqwkAY7MzL91PJMgc9g2MJLatCgVY6tzNnK0MqWspzwNZRKvPU88zLfyIhpJ98SeTtWIJjfHUPXYI81Dxp_fqlwR3H-H7bY/s1600/image013.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh1E_W4Xw1iMjE_EPlCDVPT0iAQtu7OxejAZPEw94Q4oykQqwkAY7MzL91PJMgc9g2MJLatCgVY6tzNnK0MqWspzwNZRKvPU88zLfyIhpJ98SeTtWIJjfHUPXYI81Dxp_fqlwR3H-H7bY/s400/image013.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
8)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Click
finish to create the virtual machine.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiptfxdq1Gd3WRK81Zz8NVEFezxo8k6bkDM5g1DALpe1jg06Id_jWVB0Ujq1NFdoK3E41wgwAJggpb6p0qpE1ecvgQy4zE66rcILZdbqXkDvk4453qGXdwizgCV8m18BmfUFmT7aW9xlw/s1600/image015.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;291&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiptfxdq1Gd3WRK81Zz8NVEFezxo8k6bkDM5g1DALpe1jg06Id_jWVB0Ujq1NFdoK3E41wgwAJggpb6p0qpE1ecvgQy4zE66rcILZdbqXkDvk4453qGXdwizgCV8m18BmfUFmT7aW9xlw/s400/image015.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
9)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Now
in the Hyper-V it shows the newly created virtual machine. If it not showing
then refresh it.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDQI6ot7jAdsPk5cIZXdFhyphenhyphen7pZFINGcFWJUDpyNg7dbX1674SuFN_5lFP-MYMaosnMsUeyXB5kL1NMKUpvWd9yv5VIjH2Q1yvy4FdjWKV-8KVh9lT-mpPWLBQvH7XLDxkr-vCK5mCLLho/s1600/image017.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDQI6ot7jAdsPk5cIZXdFhyphenhyphen7pZFINGcFWJUDpyNg7dbX1674SuFN_5lFP-MYMaosnMsUeyXB5kL1NMKUpvWd9yv5VIjH2Q1yvy4FdjWKV-8KVh9lT-mpPWLBQvH7XLDxkr-vCK5mCLLho/s400/image017.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
10)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Now
right click the newly created machine and click &lt;b&gt;Connect… &lt;/b&gt;Now click on the start as shown in figure to start the
virtual machine.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_EMHLTpWPjwePWGdRxRHzmSS9jgqM8sdsGSkps7ADHhz1iLS4LFwBhcxDev6O1K6VE3GxNLaSYFZiN_56bxvHr_EQGXhY8TmVXK5bYX6Uovh7hfyMKp_Gm2fWpTs76kVGG1WmKEzyaTs/s1600/image019.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;305&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_EMHLTpWPjwePWGdRxRHzmSS9jgqM8sdsGSkps7ADHhz1iLS4LFwBhcxDev6O1K6VE3GxNLaSYFZiN_56bxvHr_EQGXhY8TmVXK5bYX6Uovh7hfyMKp_Gm2fWpTs76kVGG1WmKEzyaTs/s400/image019.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
11)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Now
it will start installing the windows server 2008 R2 from the specified
location. If it doesn’t start installation then might be installation location
is incorrect. If the location is correct it asks for choosing language,
currency format. Now click next.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT_CcekiwPmxdqEk4OZWLnAsjgi-6FiUyr10KbyNm3dmK9LTUauFnEuUSI7ctDEkb1iKtVlPpIOLi2g5sp1XOGFc9glnJsUipHal11BkJDFeJ4Z5PTnixwBZduE6VJwjo5dInxjbjLVV4/s1600/image021.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;295&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT_CcekiwPmxdqEk4OZWLnAsjgi-6FiUyr10KbyNm3dmK9LTUauFnEuUSI7ctDEkb1iKtVlPpIOLi2g5sp1XOGFc9glnJsUipHal11BkJDFeJ4Z5PTnixwBZduE6VJwjo5dInxjbjLVV4/s400/image021.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
12)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Click
&lt;b&gt;Install Now&lt;/b&gt; to start installation.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP1ycXKBcYfDkiTSVTNfXoSWU70aO29s2Fk5UaDDEbahyphenhyphenxE74YrOvMGeGszKWzeyuJ2GsRX4mcttXmwQgjlaAqogctshjHxTdwYTv89ld0sXuBqIMc0vvK5q34FcUJydtwJSrt9uKl-Zg/s1600/image023.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;293&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP1ycXKBcYfDkiTSVTNfXoSWU70aO29s2Fk5UaDDEbahyphenhyphenxE74YrOvMGeGszKWzeyuJ2GsRX4mcttXmwQgjlaAqogctshjHxTdwYTv89ld0sXuBqIMc0vvK5q34FcUJydtwJSrt9uKl-Zg/s400/image023.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
13)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Choose
the windows Server 2008 R2 full installation and click &lt;b&gt;Next&lt;/b&gt;. And accept the terms and conditions.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNRHehIEv0R3FVwKpoxmz_EVWaWOnes1E-BTYnWzG8iJtdj3A1rCnp2yly7dlfv8YpRqKld4w0MmlX9-Y4MqyHM_L2YIVXAjlkmYFinMlxtnISn6vL4aW6kbV3IalPT5uK2zmh9Ak6T8g/s1600/image025.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNRHehIEv0R3FVwKpoxmz_EVWaWOnes1E-BTYnWzG8iJtdj3A1rCnp2yly7dlfv8YpRqKld4w0MmlX9-Y4MqyHM_L2YIVXAjlkmYFinMlxtnISn6vL4aW6kbV3IalPT5uK2zmh9Ak6T8g/s400/image025.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
14)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Now
choose the custom installation.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj86eUpnD6ybzVoKmHUuMHFM_xYd_fwwJiZq-iqkIKfJVbHK1yiI3YVwxlMt1E-mQtIzuigjCPWbVl09Cwn3Bg45N8AtCCNmJOHsptg7wvHTTsS-lQIezu31d09VvuiRdoB7sWCnNOL_Jo/s1600/image027.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj86eUpnD6ybzVoKmHUuMHFM_xYd_fwwJiZq-iqkIKfJVbHK1yiI3YVwxlMt1E-mQtIzuigjCPWbVl09Cwn3Bg45N8AtCCNmJOHsptg7wvHTTsS-lQIezu31d09VvuiRdoB7sWCnNOL_Jo/s400/image027.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
15)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;When
it prompts for installation like&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBhN3iPwOuYByzdI8uxrO5TDpJhuGtCFipTzpiz9Uup7-iiLPftkPS8W317I2PZ2DoznnGeiGeJtWS-YR1deD-Ch7IYXjlF4RsMUHy8XuA_GilV0jWaT34Z7hyphenhyphenzb9fWdW9X79BxNfGW0Y/s1600/image029.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBhN3iPwOuYByzdI8uxrO5TDpJhuGtCFipTzpiz9Uup7-iiLPftkPS8W317I2PZ2DoznnGeiGeJtWS-YR1deD-Ch7IYXjlF4RsMUHy8XuA_GilV0jWaT34Z7hyphenhyphenzb9fWdW9X79BxNfGW0Y/s400/image029.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
By default installation creates a recovery
partition automatically. But for VM role we need only single partition. So to
configure it Now press &lt;b&gt;SHIFT+F10 &lt;/b&gt;to
open command prompt. At command prompt enter following commands:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;b&gt;diskpart&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;b&gt;select disk 0&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;b&gt;create partition primary&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;b&gt;exit&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
diskpart
command will launch the diskpart tool. Now select the disk 0 and make this
partition as primary. And exit from the diskpart tool.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
Now
close the command prompt. &lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
16)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Now
continue the installation.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
17)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Once
the installation is complete it reboots and ask for login for the first time.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
Now enter the login password and continue.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge7cRxaTmzaDzBKnhoywCZY7XUF5Ls4lq07UysO5hyphenhyphen5QPxyPPtFfkgFMXpPYljjDLeDrS4vY9FI-hCV0fxhnd3YEHxFV1s3n2iKqm1cJjXbx2485PTvpgKwE2bTYrXusniDjRvRD_WKDs/s1600/image031.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEge7cRxaTmzaDzBKnhoywCZY7XUF5Ls4lq07UysO5hyphenhyphen5QPxyPPtFfkgFMXpPYljjDLeDrS4vY9FI-hCV0fxhnd3YEHxFV1s3n2iKqm1cJjXbx2485PTvpgKwE2bTYrXusniDjRvRD_WKDs/s400/image031.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 0in; mso-add-space: auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/12/creating-base-image-for-virtual-machine.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwWEq3d_DfcAXpd5X9G4x6go_75LwUys6D2XVPhkBj4lSxWZMUBAaW2zQuEKEYaV6NkSykP_AtayjdNKJDZTAEacKzzKbU_11VEN7IkSQKwBqdujtbh1hg5Fzuh1O9FvN2w1SPmemzkXs/s72-c/image001.png" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-2812289268053079294</guid><pubDate>Mon, 26 Dec 2011 11:38:00 +0000</pubDate><atom:updated>2011-12-30T10:46:27.689+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">VM Role</category><category domain="http://www.blogger.com/atom/ns#">Web Role</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><category domain="http://www.blogger.com/atom/ns#">Worker role</category><title>Virtual Machine Role in Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h1&gt;




Virtual Machine Role in Windows Azure&lt;/h1&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Windows Azure compute provides facility to run an
application in the cloud. For this azure provides three types of roles:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Web role: used for web application programming
and supported by IIS7&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Worker role: used for asynchronous, long running
tasks, without any user interruption.&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;VM role: used for migrating windows server
applications to Windows azure in an easy way.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
In this article we will see Virtual Machine (VM) roles. VM
role fits for the situations where:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;Long running application installation is
required&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;Error prone application installation&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;Application installation needs manual
interaction&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;mso-list: l1 level1 lfo2; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Symbol;&quot;&gt;·&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;Migrating existing applications&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
VM role is a special role, which gives user freedom to
control the operating system. While web role and worker role runs on a virtual
machine, but VM is a virtual machine. But this comes with the responsibility of
making sure that the OS image is up to date through the creation of difference
disks. So it increases the cost of development, testing and maintenance.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Creation of VM role in azure needs:&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l2 level1 lfo3; text-indent: -.25in;&quot;&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://reeta-singh.blogspot.com/2011/12/creating-base-image-for-virtual-machine.html&quot;&gt;Creating a Base Virtual Machine Image&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;nbsp;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://reeta-singh.blogspot.com/2011/12/preparing-base-image-for-deployment.html&quot;&gt;Preparation of the Base Image for Deployment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.blogger.com/goog_1295852204&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://reeta-singh.blogspot.com/2011/12/installing-windows-azure-integration.html&quot;&gt;Installation of the Windows Azure VM RoleIntegration Components&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://reeta-singh.blogspot.com/2011/12/uploading-disk-image-to-windows-azure.html&quot;&gt;Uploading the Disk Image to Windows Azure&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://reeta-singh.blogspot.com/2011/12/creating-service-model-for-vm-role-in.html&quot;&gt;Creating the Service Model&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Symbol;&quot;&gt;&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://reeta-singh.blogspot.com/2011/12/deploying-on-windows-azure.html&quot;&gt;Creating the Hosted Service and Deploying thePackage&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
I will blog each step in detail in my upcoming articles.&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/12/virtual-machine-role-in-windows-azure.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-4464068577321732909</guid><pubDate>Fri, 14 Oct 2011 07:09:00 +0000</pubDate><atom:updated>2011-10-14T12:41:10.895+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">ASP .Net</category><category domain="http://www.blogger.com/atom/ns#">Http handler</category><category domain="http://www.blogger.com/atom/ns#">Http module</category><title>Difference between ASP.NET HttpHandler and HttpModule</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this blog we will see what are http handlers and modules.
And in which condition which one is suitable. For that first we need to
understand when user request application resource to web server, what happened?
The user requests for a resource on web server. The web server examines the
file name extension of the requested file, and determines which ISAPI extension
should handle the request. Then the request is passed to the appropriate ISAPI
extension. For example when an .aspx page is requested it is passed to ASP.Net
page handler. Then Application domain is created and after that different
ASP.Net objects like Httpcontext, HttpRequest, HttpResponse are created. Then
instance of HttpApplication is created and also instance of any configured
modules. One can register different events of HttpApplication class like
BeginRequest, AuthenticateRequest, AuthorizeRequest, ProcessRequest etc.&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;HTTP Handler&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
HTTP Handler is the process which runs in response to a HTTP
request. So whenever user requests a file it is processed by the handler based
on the extension. So, custom http handlers are created when you need to special
handling based on the file name extension. Let’s consider an example to create
RSS for a site. So, create a handler that generates RSS-formatted XML. Now bind
the .rss extension to the custom handler.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;HTTP Modules&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
HTTP Modules are plugged into the life cycle of a request.
So when a request is processed it is passed through all the modules in the
pipeline of the request. So generally http modules are used for:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;Security&lt;/i&gt;: For
authenticating a request before the request is handled.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;Statistics and Logging&lt;/i&gt;:
Since modules are called for every request they can be used for gathering
statistics and for logging information.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;i&gt;Custom header&lt;/i&gt;:&amp;nbsp; Since response can be modified, one can add
custom header information to the response.&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/10/difference-between-asp.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-6113976969008994718</guid><pubDate>Thu, 13 Oct 2011 10:08:00 +0000</pubDate><atom:updated>2012-01-30T15:00:03.507+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Application Blocks</category><category domain="http://www.blogger.com/atom/ns#">Logging</category><category domain="http://www.blogger.com/atom/ns#">Managed Extensibility Framework</category><title>Logging Application Block</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
First we need to know what application blocks are?&lt;br /&gt;
&lt;b&gt;Application Blocks&lt;/b&gt; are reusable software components and are part of Microsoft’s
Enterprise Library. Enterprise library provides configurable features to manage
crosscutting concerns like validation, logging, exception management etc. Here
I elaborate on one of the feature of Enterprise Library- Logging Application
Block. One can use the Logging Application Block to log information to:&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Event
logs&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;A
text file&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
3)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;An
email message&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
4)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;A
database&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
5)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;A
message queue&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
6)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Windows
Management Instrumentation (WMI) event&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-left: .5in; mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
7)&lt;span style=&quot;font: normal normal normal 7pt/normal &#39;Times New Roman&#39;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Customize
the logging location&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
In this article we will see how
to configure the logging. One need to install the Enterprise Library.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
Create a windows form
application. Now add a reference of Enterprise Library Logging Application
Block to the solution.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMExDm2Uh1CC1XswyOrPXxInCjQR9uTYls719umkesF8y6IszH14ShJCepqudlzAGlq38t3W-G6bJNC8l071xEucAZ1VUTwbtrycIDaDVq4D4tuq2tqfOYBROmzLKlcYy6MAqOtqpUiWI/s1600/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMExDm2Uh1CC1XswyOrPXxInCjQR9uTYls719umkesF8y6IszH14ShJCepqudlzAGlq38t3W-G6bJNC8l071xEucAZ1VUTwbtrycIDaDVq4D4tuq2tqfOYBROmzLKlcYy6MAqOtqpUiWI/s320/1.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
Now add a configuration file for
configuring the log. Now edit it with Enterprise Library Configuration.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg__qtaq4z33tDnd_rd_umxKyMd_uJuPaw__Zs8NElQyXQVJ3e0NCVSYhormC9GApb4NJSPPYdjSfvhOAinIG-TRRGzjTCq8nKdwAiVN7MV4KUTR1F0JApm5sli-z-w68lIZhcMcbE3QuA/s1600/2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;122&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg__qtaq4z33tDnd_rd_umxKyMd_uJuPaw__Zs8NElQyXQVJ3e0NCVSYhormC9GApb4NJSPPYdjSfvhOAinIG-TRRGzjTCq8nKdwAiVN7MV4KUTR1F0JApm5sli-z-w68lIZhcMcbE3QuA/s320/2.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
It opens a window. In that select
Blocks -&amp;gt; Add Logging Settings&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikRgCzS0sRyzCR6oXVEOcmI4gGd9ttSh1adDzQJzgp-k0i_Nv6xO_n0gjKYuRCTdkLli8eo5rPE1UdA7pYVyfZx33jsVjN9w2xTZc0aK46yGKFMTRYYReMzsnz2GmiIZtObymF4Fm5s9o/s1600/3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikRgCzS0sRyzCR6oXVEOcmI4gGd9ttSh1adDzQJzgp-k0i_Nv6xO_n0gjKYuRCTdkLli8eo5rPE1UdA7pYVyfZx33jsVjN9w2xTZc0aK46yGKFMTRYYReMzsnz2GmiIZtObymF4Fm5s9o/s320/3.JPG&quot; width=&quot;231&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
It creates a default logging
settings as follows:&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg692CrEd-2dnMMzX-BB7G1ZVJ0rWEXblWFRXpVfXtgWYzxe-vHNcn90zbd4b7hjPfFRPVDRtn8FMrS0gj_8DJpsgQOtVQpUvmj1S4kmpP4VlpB2pKNimQTC1uGeQCMXrBIDQTNcaWbO4M/s1600/4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg692CrEd-2dnMMzX-BB7G1ZVJ0rWEXblWFRXpVfXtgWYzxe-vHNcn90zbd4b7hjPfFRPVDRtn8FMrS0gj_8DJpsgQOtVQpUvmj1S4kmpP4VlpB2pKNimQTC1uGeQCMXrBIDQTNcaWbO4M/s320/4.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
It contains a category named
“General”, which is using an “Event Log Listener” with a “Text Formatter”. For
now we can leave Special Categories. So, what all these are doing?&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
Let’s understand it with an
example. There may be some logs which you need to write in event log and a text
file, and for some log you need to mail also. So you create one category which
writes all logs to event log and text file, and another category for sending mail
of only error logs. Then you have to create 3 listeners, for logging in event
log, text file and mailing. You can also define different formatters for
different type of listeners. For example you need a detailed log for logging in
events log and precise log for mailing. All these settings are defined in the
configuration. All you need to do is when you write a log just defines the
category of the log and rest is done by the application block.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;b&gt;Categories:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
Category can filter the log entry
and route it to different listeners. The filter can be based on the severity,
i.e., Critical, Error, Warning or Information.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;b&gt;Logging Target Listeners:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
Different listeners can be
defined here. We only need to do configuration and these listeners can write to
event logs, a flat file, xml file, to database, send mail etc.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
&lt;b&gt;Log Message formatters:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
This is used to define a format
in which log is written. Text formatter is the default formatter, which writes
all the information. For customizing the formatter, define a template.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
A &lt;a href=&quot;https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0ByC98kbqGbN2MDc3OWI1Y2EtY2I3OS00NzE0LTljNTUtNmUxZDBiMWNmNDRl&amp;amp;hl=en_US&quot;&gt;sample
project&lt;/a&gt; is uploaded. This contains a general category which logs to event
logs and a flat file using text formatter. And mail category which sends mail
using mail formatter. And depending on the conditions it logs to general
category, or sends mail, or can do both.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
So now you can see a
configuration section “loggingConfiguration” in the app.config file.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
This configuration section
contains listeners, formatters, categorysources and specialSources. One can
configure listener, formatter, categories here.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
To write a log you just need to create
a LogEntry and specify the category. Of category is not specified, log will be
written to default category.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;
So, now you can see logging so
easy using Application blocks.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/10/logging-application-block-first-we-need.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMExDm2Uh1CC1XswyOrPXxInCjQR9uTYls719umkesF8y6IszH14ShJCepqudlzAGlq38t3W-G6bJNC8l071xEucAZ1VUTwbtrycIDaDVq4D4tuq2tqfOYBROmzLKlcYy6MAqOtqpUiWI/s72-c/1.JPG" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-7572679656479207488</guid><pubDate>Mon, 19 Sep 2011 05:58:00 +0000</pubDate><atom:updated>2011-10-13T15:46:19.709+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Managed Extensibility Framework</category><title>Managed Extensibility Framework (MEF)</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
MEF is a component of .net framework 4.0, to create
lightweight, extensible applications. It avoid hard dependencies and lets
application developer to discover and use extensions without any configuration
required.&lt;br /&gt;
&lt;h2&gt;


Why MEF?&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Imagine a situation where an application is using several
smaller components. And application is responsible for creating and running
those components. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
One possible solution could be including all the components
as source code in the application. But you cannot add new components without modifying
the source code.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Another solution could be to provide an interface for
decoupling between application and components. So the component can implement
the interface and interact with application. But this approach too has
drawback. As application cannot discover components by itself, it must be
explicitly told which components are required and loaded.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here MEF comes into the picture. MEF provides a way to
discover components via composition. A MEF component specifies both its
dependencies (known as&amp;nbsp;&lt;i&gt;imports&lt;/i&gt;) and what capabilities (known
as&amp;nbsp;&lt;i&gt;exports&lt;/i&gt;) it makes available. &lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Let’s understand it with the help of an example. Suppose you
are having a simple calculator application which currently supports addition
and subtraction.&lt;/div&gt;
&lt;h2&gt;


Creating composition container and catalogue&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Composition container keeps track of which components are
available for composition and what are their dependencies. It provides a way by
which application can get the instance of components to be composed. We need to
include System.ComponentModel.Composition in reference.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; tab-stops: 45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; word-break: break-all;&quot;&gt;
&lt;span style=&quot;color: green; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //An aggregate catalog that combines multiple catalogs&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; catalog = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; AggregateCatalog();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;//Adds all the parts found in the same assembly as the current class&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; catalog.Catalogs.Add(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; AssemblyCatalog(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;(this).Assembly));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;//If parts are placed at some other location then adds that directory path&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //catalog.Catalogs.Add(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DirectoryCatalog&lt;/span&gt;(componentsDirectoryPath));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;//Create the CompositionContainer with the parts in the catalog&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CompositionContainer _container = &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; CompositionContainer(catalog);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: green; font-family: Consolas;&quot;&gt;//Fill the imports of this object&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;try&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;._container.ComposeParts(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; (CompositionException compositionException)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(compositionException.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre style=&quot;text-align: justify; word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;catalog.Catalogs.Add(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; AssemblyCatalog(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;(this).Assembly));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This adds the components from the current assembly. To add
the components from some specified folder location, add a directory catalogue
like:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt; line-height: 115%;&quot;&gt;catalog.Catalogs.Add(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;DirectoryCatalog&lt;/span&gt;(componentssDirectoryPath));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Where componentsDirectoryPath is the path of directory where
components can be found.&lt;/div&gt;
&lt;h2&gt;


Import and Exports&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Define an interface like it.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;[Import(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;IOperation&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;))]&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: blue;&quot;&gt;interface&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;IOperation&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;
Operate(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; leftOperand, &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; rightOperand);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This interface has an attribute &lt;i&gt;Import&lt;/i&gt;. This ImportAttribute defines that the type IOperation needs
to be imported. So we implement the IOperation class, and above the class we
use ExportAttribute indicating that it has the capabilities of IOperation. Also
it contains ExportMetadata attribute indicating that depending on the metadata &lt;i&gt;Symbol&lt;/i&gt; the operation is performed.&lt;/div&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;[Export(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;IOperation&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;))]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;[&lt;span style=&quot;color: #2b91af;&quot;&gt;ExportMetadata&lt;/span&gt;(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Symbol&quot;&lt;/span&gt;,
&lt;span style=&quot;color: #a31515;&quot;&gt;&#39;+&#39;&lt;/span&gt;)]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;Add &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;IOperation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;//Implementation of IOperation&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Now we will do lazy initialization for getting objects like
this:&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;[&lt;span style=&quot;color: #2b91af;&quot;&gt;ImportMany&lt;/span&gt;]&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;span style=&quot;color: #2b91af; font-family: Consolas; font-size: 9.5pt;&quot;&gt;IEnumerable&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;lt;&lt;span style=&quot;color: #2b91af;&quot;&gt;Lazy&lt;/span&gt;&amp;lt;&lt;span style=&quot;color: #2b91af;&quot;&gt;IOperation&lt;/span&gt;,
&lt;span style=&quot;color: #2b91af;&quot;&gt;IMetadata&lt;/span&gt;&amp;gt;&amp;gt; operations;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Lazy initialization is used so that only operations that are
needed are initialized. Based on the metadata it initializes what operation is
to be performed. It contains ImportMany attribute because IOperation can be
filled by many exports like add, subtract etc. &lt;/div&gt;
&lt;h2&gt;


Lazy Initialization&lt;/h2&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
As we see we declare an IEnumerable for lazy initialization.
Now how does it work? When we run application, it initializes the catalogue and
creates a container. Based on the Import attribute it finds the components
which can be filled for it. Here we have only one class Add to fill it. So
operations will contains only single Lazy&lt;span style=&quot;color: black;&quot;&gt;&lt;ioperation, ioperationdata=&quot;&quot;&gt;&lt;/ioperation,&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;object, and that object will be initialized when it will be
accessed first time. So based on the operation we will call Operate function.&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;foreach&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; (Lazy&lt;ioperation, ioperationdata=&quot;&quot;&gt; i &lt;/ioperation,&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; operations)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; (i.Metadata.Symbol.Equals(operation)) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: Consolas;&quot;&gt;result=&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt; i.Value.Operate(left, right).ToString();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;word-break: break-all;&quot;&gt;&lt;span style=&quot;color: black; font-family: Consolas;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
I had a &lt;a href=&quot;http://goo.gl/pxbKq&quot;&gt;sample project&lt;/a&gt; to illustrate it. It contains 2
operations Add and Subtract in the assembly and Multiplication in a separate
dll, which can be found in “&lt;current assembly=&quot;&quot; executing=&quot;&quot; path=&quot;&quot;&gt;\Extensions”
folder.&lt;/current&gt;&lt;br /&gt;
&lt;current assembly=&quot;&quot; executing=&quot;&quot; path=&quot;&quot;&gt;&lt;br /&gt;&lt;/current&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/09/managed-extensibility-framework-mef-mef.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-2561313492918065973</guid><pubDate>Thu, 21 Jul 2011 08:29:00 +0000</pubDate><atom:updated>2011-10-13T15:41:05.404+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Extension methods</category><title>Extension Methods in .Net</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this article we will see what extension methods are, why we need them and how to create them. &lt;br /&gt;
Extension methods are methods which allow you to extend a type, even if you don’t have the source code for that type. Let’s understand it with a simple example: Suppose you want to add IsNumeric method to string class to check whether a string is numeric or not. What you will do? &lt;br /&gt;
1) Either you have to create a new class inheriting from string class and then add the IsNumeric method in it. Now this solution has 2 problems. First, what if the class you want to inherit, in this case string class, is sealed. You can’t inherit from it. Second, if any how you inherit the string class then you need to make sure everyone else is using your class not the string class &lt;br /&gt;
2) Or create a static StringHelper class and create a static IsNumeric function in it. But this solution also has a problem that user need to know a Helper class exist. &lt;br /&gt;
Prior to .Net Framework 3.5 second solution was the most popular solution. But in .Net Framework concept of extension methods is introduced. Now let’s see how to create extension methods. We need to create a static class StringHelper and a static method IsNumeric as we do in the second solution. &lt;br /&gt;
public static class StringHelper &lt;br /&gt;
{ &lt;br /&gt;
public static bool IsNumeric(this string str) &lt;br /&gt;
{ &lt;br /&gt;
double val; &lt;br /&gt;
return double.TryParse(str, out val); &lt;br /&gt;
} &lt;br /&gt;
} &lt;br /&gt;
The only difference from second solution is the “this” keyword in the IsNumeric parameter. By using this keyword we are indication that it is the extension of type next to the “this” keyword. Here we have written “this string” it means IsNumeric is the extension of string type. &lt;br /&gt;
To use it: &lt;br /&gt;
string nonNumericString = &quot;123abc&quot;; &lt;br /&gt;
bool Result = nonNumericString.IsNumeric(); &lt;br /&gt;
Another benefit of using extension method is that you can easily convert helper class into extension methods without breaking the existing functionality, i.e., following code still works: &lt;br /&gt;
bool Result = StringHelper.IsNumeric(nonNumericString); &lt;br /&gt;
So now you realize it is easy to create extension methods. J&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/07/extension-methods-in-net.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-1523856106088244710</guid><pubDate>Sat, 07 May 2011 16:54:00 +0000</pubDate><atom:updated>2012-01-11T15:53:01.307+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Azure Diagnostics</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Initializing Windows Azure Diagnostic – Part 2</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As you have read in my &lt;a href=&quot;http://reeta-singh.blogspot.com/2011/05/initializing-windows-azure-diagnostics.html&quot;&gt;previous article&lt;/a&gt; how to initialize Windows Azure diagnostic monitor. Now we will see how to collect different diagnostic data. I am defining a connection string for the role. For that right click on the role and click on properties. Now from the connection tab you can add configuration string. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYn7c3cU_MpQZi2b8nuhgtMhmOn4lRVyDhiUqWOQgh2VHzu_a2HqZzXzxNfWONBeZ2N43K0KppJ1NKBCVYYBagaFpmZk3aa-GteTP5LNqu4E5TOoQq-cq6E75DdAEZ2Cx6orOvxso9l70/s1600-h/clip_image002%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image002&quot; border=&quot;0&quot; height=&quot;76&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicjb7s5YqQ_IBnh-EDLeYK-MRUBJyphCJuD6MPSmoYnnPjd3Tcylu0Dimigos6KTSNNRPfSCt1dnhUSrczZOXa7h923BQbp-g63yrOSKQXTVE4awCLOOW5bkUDnbb5q-W9PF31ToJlDRM/?imgmax=800&quot; style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;clip_image002&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;1)&lt;/b&gt; &lt;b&gt;Collecting data from event logs &lt;/b&gt;&lt;br /&gt;
Open the Role entry point class. Add following code to the OnStart() function &lt;br /&gt;
var config = DiagnosticMonitor.GetDefaultInitialConfiguration(); &lt;br /&gt;
config.WindowsEventLog.DataSources.Add(&quot;System!*&quot;); &lt;br /&gt;
config.WindowsEventLog.ScheduledTransferLogLevelFilter = LogLevel.Warning; &lt;br /&gt;
config.WindowsEventLog.ScheduledTransferPeriod = TimeSpan.FromMinutes(1.0); &lt;br /&gt;
DiagnosticMonitor.Start(&quot;DiagnosticsConnectionString&quot;, config); &lt;br /&gt;
&lt;br /&gt;
So, first you need to get DiagnosticMonitorConfiguration object. Then you can add channel to the datasource. You can add multiple channels. Windows Azure cannot log Security channel. You can define log level filter, so that only those logs are transferred. You have to define schedule transfer period, so that after that time span logs are transferred to the account you specified in the configuration. Now start the diagnostic monitor with the connection and new configuration. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;2) Collect data from Performance Counters &lt;/b&gt;&lt;br /&gt;
Open the Role entry point class. Add following code to the OnStart() function &lt;br /&gt;
&lt;br /&gt;
var config = DiagnosticMonitor.GetDefaultInitialConfiguration(); &lt;br /&gt;
config.PerformanceCounters.DataSources.Add(new PerformanceCounterConfiguration() &lt;br /&gt;
{ &lt;br /&gt;
CounterSpecifier = @&quot;\Processor(_Total)\% Processor Time&quot;, &lt;br /&gt;
SampleRate = TimeSpan.FromMinutes(1.0), &lt;br /&gt;
}); &lt;br /&gt;
config.PerformanceCounters.ScheduledTransferPeriod = TimeSpan.FromMinutes(5.0); &lt;br /&gt;
DiagnosticMonitor.Start(&quot;DiagnosticsConnectionString&quot;, config); &lt;br /&gt;
&lt;br /&gt;
Here I have defined a performance counter which takes sample for processor time in every minute. You can add multiple performance counters in the data souce. And then transfer the log to azure account defined in the connection string after every 5 minutes. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;3) Collect data from IIS logs &lt;/b&gt;&lt;br /&gt;
IIS logs are collected only for web role because worker and VM roles don’t run under IIS. &lt;br /&gt;
To enable IIS logging add following code to the web.config.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;tracing&amp;gt; &lt;br /&gt;
&amp;lt;traceFailedRequests&amp;gt; &lt;br /&gt;
&amp;lt;add path=&quot;*&quot;&amp;gt; &lt;br /&gt;
&amp;lt;traceAreas&amp;gt; &lt;br /&gt;
&amp;lt;add provider=&quot;ASP&quot; verbosity=&quot;Verbose&quot; /&amp;gt; &lt;br /&gt;
&amp;lt;add provider=&quot;ASPNET&quot; areas=&quot;Infrastructure, Module, Page, AppServices&quot; verbosity=&quot;Verbose&quot; /&amp;gt; &lt;br /&gt;
&amp;lt;add provider=&quot;ISAPI Extension&quot; verbosity=&quot;Verbose&quot; /&amp;gt; &lt;br /&gt;
&amp;lt;add provider=&quot;WWW Server&quot; &lt;br /&gt;
areas=&quot;Authentication, Security, Filter, StaticFile, CGI, Compression, Cache, RequestNotifications, Module&quot; &lt;br /&gt;
verbosity=&quot;Verbose&quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/traceAreas&amp;gt; &lt;br /&gt;
&amp;lt;failureDefinitions statusCodes=&quot;400-599&quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/add&amp;gt; &lt;br /&gt;
&amp;lt;/traceFailedRequests&amp;gt; &lt;br /&gt;
&amp;lt;/tracing&amp;gt; &lt;br /&gt;
After adding this code IIS logs are automatically logged. No additional API calls are required. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;4) Collect data from crash dumps &lt;/b&gt;&lt;br /&gt;
In the role entry point class add the following code; &lt;br /&gt;
&lt;br /&gt;
Microsoft.WindowsAzure.Diagnostics.CrashDumps.EnableCollection(true); &lt;br /&gt;
&lt;br /&gt;
Pass true for enabling complete crash dump data, or false for partial crash dump data.   &lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/05/initializing-windows-azure-diagnostic.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicjb7s5YqQ_IBnh-EDLeYK-MRUBJyphCJuD6MPSmoYnnPjd3Tcylu0Dimigos6KTSNNRPfSCt1dnhUSrczZOXa7h923BQbp-g63yrOSKQXTVE4awCLOOW5bkUDnbb5q-W9PF31ToJlDRM/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-6741434875905042157</guid><pubDate>Sat, 07 May 2011 14:49:00 +0000</pubDate><atom:updated>2012-01-11T15:49:10.195+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Azure Diagnostics</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Initializing Windows Azure Diagnostics- Part 1</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As we have seen in my previous blog that some of diagnostics data is stored in table, while some in blob. For collecting diagnostics data, we must initialize &lt;i&gt;Windows Azure diagnostic monitor.&lt;/i&gt; Windows Azure diagnostic monitor runs in Windows Azure and in the compute emulator and collects diagnostic data for a role instance. Only Windows Azure Logs, Windows Azure Diagnostic Infrastructure Logs and IIS logs are configured in the diagnostic monitor by default. We can collect other diagnostic data by importing diagnostic module. A role instance that imports the Diagnostic module starts, it starts the diagnostic monitor. &lt;br /&gt;
To start diagnostic monitor for a role open the role entry point class and make sure that you are using Microsoft.WindowsAzure.Diagnostics namespace in the class. Now on the Azure service project right click on the role and click Properties. Here I am configuring a web role. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi88rxF2SvWYgPL2m-PfEIJoA0EZ-0Hi7IlWRn_2Z4XEHqwZwf8EpybRRk70NQsetM93uY6sLUyLsTDueQDgWjkbS4LC6SZtqit3CVyzFHEGRJk_yAqMNkQBfUJcoUqdvVZKIUhFcYpplM/s1600-h/clip_image002%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image002&quot; border=&quot;0&quot; height=&quot;123&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKYb6uav_GEz3QmaiHntIKRadvCnhQodQXh0En5ZABzpXuszZslDyb52S_8Sd-6atn7cE5In1Y2xMwjaRMYGzxpx-FT6NGPnZ8GNV6DdWM6DHVYEYkPU14bxO0wp7DTg4x7K8gMM-hRjM/?imgmax=800&quot; style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;clip_image002&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Now in the configuration section check enable diagnostics. And specify the account credentials &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRtkiXnwy9MguCZO1WyoeQccyzKXahhUhdGN5WvCvq1ZkqkmKnIlRFkbVlIeKjYYTrwGn2T3OkGMeG0Wm5eSUYEAUwieLiqJ6wNK_ZHwLWWuuBaeXsSCRZOlkEqWzxoK_E1XORTJZhk64/s1600-h/clip_image004%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image004&quot; border=&quot;0&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhavT2j_I3HL4lZzFMK4oWFasN9Fpr7dPCCmqfjxJlLo3yrMkvkvP4FinLnOASqd0xcwp6Ol9BuJopMfIKeNs95_1LY5m5ZAdQ93HtO23C73616LxuXq4IC2TWeNGzaR3sg9abzQbxGYSY/?imgmax=800&quot; style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; margin: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;clip_image004&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
You can either use development storage or can give your account credentials. Just click on “…” and will ask for the credentials. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3X-kp2hk0hQmgD_c-KU6fVDsdZhHa8IBYM5NkJv1zKenxc1R3vV_rZNCNOatJzMv6SlK2J4Zje1u08PR888Gf1zkDD-KhLOa4v_J0NTQhWvAKzsdrz2jx3xop82F3wleBC3L047Ps7vg/s1600-h/clip_image006%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image006&quot; border=&quot;0&quot; height=&quot;84&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgstdXSkHrk89k9B5b7oH6VGFQCEn2A2YvtzhrNhupmBtV6SzJlvpvn9bBgUHDp8lVX-PABRLHdXGLor2Z9v3ESTqxUaiioWE7sjzOeSqJpqTEwIJAqO0WOWwPhQCy9jSWe7NjDb5oBKuA/?imgmax=800&quot; style=&quot;background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot; title=&quot;clip_image006&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Now when you open your .cscfg file it has a new setting for the webrole like &lt;br /&gt;
&amp;lt;ConfigurationSettings&amp;gt; &lt;br /&gt;
&amp;lt;Setting name=&quot;Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString&quot; value=&quot;DefaultEndpointsProtocol=https;AccountName=&lt;i&gt;myaccountName&lt;/i&gt;;AccountKey=&lt;i&gt;myAccountKey&lt;/i&gt;&quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/ConfigurationSettings&amp;gt; &lt;br /&gt;
&lt;br /&gt;
And in the .csdef file it import the module like: &lt;br /&gt;
&amp;lt;Imports&amp;gt; &lt;br /&gt;
&amp;lt;Import moduleName=&quot;Diagnostics&quot; /&amp;gt; &lt;br /&gt;
&amp;lt;/Imports&amp;gt; &lt;br /&gt;
&lt;br /&gt;
If you are using a web role or worker role template for creating roles then in the web.config or app.config following code is added. Or you can just inherit a class from RoleEntryPoint and add the following code in the config file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;system.diagnostics&amp;gt;&lt;br /&gt;
&amp;lt;trace&amp;gt;&lt;br /&gt;
&amp;lt;listeners&amp;gt;&lt;br /&gt;
&amp;lt;add type=&quot;Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&quot; name=&quot;AzureDiagnostics&quot;&amp;gt;&lt;br /&gt;
&amp;lt;filter type=&quot;&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/add&amp;gt;&lt;br /&gt;
&amp;lt;/listeners&amp;gt;&lt;br /&gt;
&amp;lt;/trace&amp;gt;&lt;br /&gt;
&amp;lt;/system.diagnostics&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;If you want to create a web role just override OnStart() method, and if you want to create a workerrole override OnStart() and Run() method. We will see it in my next article.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/05/initializing-windows-azure-diagnostics.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKYb6uav_GEz3QmaiHntIKRadvCnhQodQXh0En5ZABzpXuszZslDyb52S_8Sd-6atn7cE5In1Y2xMwjaRMYGzxpx-FT6NGPnZ8GNV6DdWM6DHVYEYkPU14bxO0wp7DTg4x7K8gMM-hRjM/s72-c?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-8662671660110351710</guid><pubDate>Fri, 11 Mar 2011 17:11:00 +0000</pubDate><atom:updated>2011-12-30T10:49:04.912+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Azure Diagnostics</category><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Understanding Diagnostics in Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3&gt;


&amp;nbsp;&lt;/h3&gt;
Windows Azure diagnostics provides facility to store diagnostics data. Azure diagnostics supports logging and monitoring of diagnostics data. It uses blob service or table service to save diagnostics data, depending on the diagnostics data. Before logs are saved in a container they are indexed in WADDirectoriesTable table in the storage account. &lt;br /&gt;
Following diagnostics data is stored in table storage: &lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt; &lt;tbody&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;b&gt;&lt;i&gt;Data Source&lt;/i&gt;&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;209&quot;&gt;&lt;b&gt;&lt;i&gt;Table name in Azure Storage&lt;/i&gt;&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;264&quot;&gt;&lt;b&gt;&lt;i&gt;Detail&lt;/i&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;b&gt;Windows Azure Logs&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;209&quot;&gt;WADLogsTable&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;264&quot;&gt;These are the application logs dumped from the application.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;b&gt;Windows Azure Diagnostics Infrastructure Logs&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;209&quot;&gt;WADDiagnosticInfrastructureLogsTable&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;264&quot;&gt;These are the logs about running of diagnostics service.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;b&gt;Windows Event logs&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;209&quot;&gt;WADWindowsEventLogsTable&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;264&quot;&gt;These are the logs generated on the instance where logs are running.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;159&quot;&gt;&lt;b&gt;Performance counters&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;209&quot;&gt;WADPerformanceCountersTable&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;264&quot;&gt;These are the performance matrices like memory utilization, processor utilization, response time etc.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Following diagnostics data is stored in blob storage: &lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt; &lt;tbody&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;158&quot;&gt;&lt;b&gt;&lt;i&gt;Data Source&lt;/i&gt;&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;222&quot;&gt;&lt;b&gt;&lt;i&gt;Container name in azure storage&lt;/i&gt;&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;258&quot;&gt;&lt;b&gt;&lt;i&gt;Detail&lt;/i&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;158&quot;&gt;&lt;b&gt;IIS Logs&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;222&quot;&gt;wad-iis-logfiles&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;258&quot;&gt;These are the IIS logs generated by role instances.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;158&quot;&gt;&lt;b&gt;Failed Request Logs&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;222&quot;&gt;wad-iis-failedreqlogfiles&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;258&quot;&gt;These are the IIS failed requests logs generated by role instances.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt; &lt;td valign=&quot;top&quot; width=&quot;158&quot;&gt;&lt;b&gt;Crash Dumps&lt;/b&gt;&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;222&quot;&gt;wad-crash-dumps&lt;/td&gt; &lt;td valign=&quot;top&quot; width=&quot;258&quot;&gt;These are the logs generated on the application crash.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/03/understanding-diagnostics-in-windows.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-5740541272741741320</guid><pubDate>Wed, 09 Mar 2011 05:54:00 +0000</pubDate><atom:updated>2011-12-30T10:49:29.246+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">Deployment in Azure</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Deploying an application in Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In the previous article we have seen how to create a Hello World application in azure. In this article we will see how to deploy it in Windows azure. To deploy an application in azure, two files are needed- a package file and a configuration file. Configuration file is already in CloudService1 named ServiceConfiguration.cscfg. Now for the package file just right click on the CloudService project and click Publish. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc4SARcuaGwlyeOa4rHwq6M508yZ5eRfcnPyZrxlAbBW5jhtTHFmqqq9O3fFrVBdYhmy9-KQqLS-s4rzjJgOTiyOWTMk_UU3E8tYvB_y67GjpMft0qQWuD2xz7dwdvkte6Xg6Sh4-k1xk/s1600-h/clip_image002%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image002&quot; border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMj4CeYUoAEzIyte_hwP0W6pjZ8JMPHmLLF4CZx-7d7BYiM5DJANJxz31d8rtIh_-uE9Xc1Kouo3b7lrBSWsWeYNI_PiScWeLpoHKB2mw7mIT-CAhT6QLqjcyxWq5Pvep-iSR_Wm8TR2A/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image002&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Then it asks to create just a package file or to deploy it in azure.  &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDf6PsNkNZ6x-oHcungpv2UqIqDJTCfCQScrRBiQldqbrJktvJqZ_ssU3wUF7Kmg3_6sLtYGT3scn-wPQ7uV3_9lQPVGs0YCActxVKnFQsNyx6mWFKPTNfQOG3I7QLtwGiq2E8H-PSjzE/s1600-h/clip_image004%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image004&quot; border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzKNUGk4RtgQZwZHUzLOTbsTa8cT5YSyhzArL6pH_bVsY4DeSNHlTS25q1lBgKo1ls26lJEgjjLPpCbg7HdDR4f6LefBz8UIjJkLqY3zfGZ_3zqyPFb7CVEQVAHpMJy7mKs-5pcc57dFc/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image004&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
If first option is selected then it creates the package file and opens the explorer. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkMjJaliBk29UKZ9SoFt2HFdYYob0Pw-eJi7m9MgNHxXD2bWgAxYCbdyEMVFx0GEvYPgnPi6NeWtX8W_w389K1F17zJgNb4DB2UIp4LXDhEy3n6eAPM1a_qfz1Qk4sJeC_JPH0VRVjwws/s1600-h/clip_image006%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image006&quot; border=&quot;0&quot; height=&quot;42&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHi5wHgJdJZIcKWyZyjA7RJh5c-eULVjdy5Rczz-N4P7mNGGUIJ2dO4jMyEzeIy2KfmcYWoURFkkOfxH8iKJ7mzdp8Jp8gwhqMpEHnm117rhzNR57mexqOy3W2tCzOz5wefJjZSrn-Be0/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image006&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Once we have a package file (.cspkg) and configuration file (.cscfg) then we can deploy it through &lt;i&gt;management portal&lt;/i&gt;, or azure service management cmdlets, or Cerebrata’s CloudStorageStudio, or Cerebrata’s Azure management cmdlets. We can directly upload it through visual studio also, if we select second option from publish dialog. It needs a subscriptionId and a X509 v3 certificate as shown below: &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifTH7g-dGPAcSjFN_tCI1f2r30EJQBu_29ZypL4H0CFU7cwEEtsnooMaLsQdDny6jLUooFrValc-SpZGrBJ_xTxcyr2zy5RPfc60BKmIwMkAHvCfE85vLw27Ydz5kOd8-btlTLmXe6lIE/s1600-h/clip_image008%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image008&quot; border=&quot;0&quot; height=&quot;167&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSxE2EMOeEB_Gamp-hZvj8y-2g126pmeuSNt5eDGoF4u5KjGl1ws9ItLYWuEMpuB-7ZTroPaA-EoC4_iSUUWILbp73mG1iUT7Fqyl6Z0hIoZI1Jt-MjID23yOLoIH5z__VMQPbjQNc-8M/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image008&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Then we have to provide deployment environment and storage account. &lt;br /&gt;
Whichever option we had selected, we need: &lt;br /&gt;
a) A Windows Azure Subscription – when we sign up for azure, a subscription is associated with our live Id. &lt;br /&gt;
b) A Windows Azure Hosted Service – we need to create a hosted service for deployment. It provides two deployment environment- &lt;i&gt;production&lt;/i&gt; and &lt;i&gt;staging&lt;/i&gt;. &lt;br /&gt;
c) A Windows Azure storage account – When we deploy through visual studio then package file is first uploaded in blob storage of the storage account, and then deployed from the blob service. &lt;br /&gt;
So summarizing deployment through management portal in some simple steps: &lt;br /&gt;
1) We need a package file and a configuration file to deploy. &lt;br /&gt;
2) To create a package file click publish and create package only option from project. &lt;br /&gt;
3) Sign In the management portal. &lt;br /&gt;
4) Create a new hosted Service if you want to deploy in a new service. &lt;br /&gt;
5) Then in deployment environment either deploy in production or staging. &lt;br /&gt;
6) Then start the deployment. &lt;br /&gt;
7) You can see the progress of the deployment on the portal &lt;br /&gt;
8) To delete a deployment first click on stop, and when it is stopped delete it.   &lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/03/deploying-application-in-windows-azure.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMj4CeYUoAEzIyte_hwP0W6pjZ8JMPHmLLF4CZx-7d7BYiM5DJANJxz31d8rtIh_-uE9Xc1Kouo3b7lrBSWsWeYNI_PiScWeLpoHKB2mw7mIT-CAhT6QLqjcyxWq5Pvep-iSR_Wm8TR2A/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-4851264514655295300</guid><pubDate>Tue, 01 Mar 2011 07:11:00 +0000</pubDate><atom:updated>2011-10-13T15:42:18.970+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Creating a “Hello world” application in Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
In this article we will see how to create a “Hello World!!!” application in azure in .net. I had used Visual Studio 2010 along with azure SDK 1.3 installed. Start visual studio and select a new project. In the &lt;i&gt;cloud template&lt;/i&gt; select &lt;i&gt;Windows Azure Cloud Service.&lt;/i&gt; &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh90hGWksKMGXHQnX96OxZ8wT4vc8Pnws72UZVAXCxkBV6nnr9lALGxlxUSGOgYNHzPsuLrOR-zZ8tuDJZ5KwJ5OXXuW6oW-QhCWOOakOb1qijHfLznnHsx57gkSMx0pz0wLpgB0d1ooGU/s1600-h/clip_image002%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image002&quot; border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic35AxxBGkPySW1-j6X3lu4ag3SqIZuzrzVMGf_zVGG-kEiYet7pKV4LXQscF2mAsx1QghzJR3RQQa5p6pjHEIR21RG5a4-rGWIcepBpbpPRa_BHffjtFjYlXbk3iIhoIW2TB2QRRw26o/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image002&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Once you click OK. It asks for selecting a Role. Here we are adding an ASP.Net Web role. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHt9K6waIvgVHxtL_7CSD7ugtxMZUtWywnRefpIUVanLpegXp9VWvACfXtQrfNfy13D9xMt-djJZhyphenhyphenDT70oa48KAuHBTyz2ZMPYQzgMcTfATvoiUxnyQ4GWaGFyes0KCCf4drQbo0Q_mU/s1600-h/clip_image004%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image004&quot; border=&quot;0&quot; height=&quot;154&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfp2ODZHKefUY-7uhuPEeSoKu52L1hVo0Z_0vDplggSPtnGlRawy3g1TUf6xK3Xp8HgrEyO6fnmuR_3Z2igotS1QbaG4454KmQSUBpO99Lm8j3KP2CD3npGbbnlsksJnQxNUzoQko18z0/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image004&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
It will create two projects- CloudService1 (Azure Service Project) and WebRole1 (ASP.net Project). The Azure service project is used to configure the application, and to create a deployment package. ASP.Net project is like a normal web project.  &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLvyQ3Fy7BN5_vS5DGxF2i55lBO_bdZxtsZpBqP_EC0ttKlLWThTfqkk8LW8DL2cWoiAFABBNZNfFlGGay8MFyOoqoMzGkfvHNGnIGWJ4mL3vMrPGVcwkW0fE6UM_GJYuR1pwnVQL7z3c/s1600-h/clip_image006%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image006&quot; border=&quot;0&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizSNWHObUkpdYE-Bu5LWIRkHZHYxODDBf7p5q3LRyI-xwlnVD3yd1joSl8PbIXyhFiABLLv6nQ9cBrvZsSWxF3y8ZVjFjGNA-efGyKjC-Sq0JUrcwJpzOImMuVZTprd-4P3GIkx9WwbZ4/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image006&quot; width=&quot;198&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Here I removed header div from the SiteMaster. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpfCs__gEuW9BJzHbbVu9G4qHTEXOJ0XPne_R03nw9yoV-AUGgJkEFApcN8pxs6kShQ34B-mF8AW9Z9pmmFkBIDYrWbhyphenhyphenMDYLnYdZp4Tm8f-Z6UddYrI_HgmHDDTB0-ZDMYLp-VqFc0D0/s1600-h/clip_image008%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image008&quot; border=&quot;0&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXqWtw03trlCpma1gNtgeihsG_t2bUJoJtEr_5lmSVGGQcHp-IEiW5A61n2SoQJE3hnDPezcdjMvqoouseK8A_oZT-1g8IWReKeYeQ3e0-S_PXIN-tzC1bEsfMy3QQ_XNBzhtFazZTlR0/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image008&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
And add a text “Hello World!!!!” in the default.aspx &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2yzyGpUuArj1Y4gKZ4mulPEuP2hfqXkSii91hq2afA4HmHYwgMQQiw92faXXgXNpf_b9W-cYDT14c67l4JGE6C_ZVN-lbvTZ2Q4ijtwP7M-redxtOkznwfkyZPfxH8ZnVcoMy0srxYcE/s1600-h/clip_image010%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image010&quot; border=&quot;0&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg1oFhlyta9JGS11_LlinZ7vU0_BOScA26F_4EvNBFI9mJqej7F5NzfbbV3DULPgYHmOHaz5yV-tpl8Cfd3uermHQ75B3Eg8sNZ8L9xCGo5lZkerMQkjbdmZoWvRKaWfjxwT8u9m-vCNo/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image010&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
And we are done. Now Select Cloud Service as your startup project and run it. When you run it, azure simulation environment is initialized, and it starts development storage and development fabric. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyz58D5XnIm1cjDsIIKeHkJRY9VNiO_vVmnAL7oWXbXZ4bxFEKCUmRXl8kJxQwHk6lQl5T6TVszcva9b4LqX6ctQfpblbv63az3r_KwBZoXo4D5KtiwZfSjeKazmhY0BgWaWoCu9Uz5Z8/s1600-h/clip_image012%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image012&quot; border=&quot;0&quot; height=&quot;66&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3uLUxgN4fAyR-dsX-b3z_qmgRVpXuU7h-xJnuaDMdP02pBMil9SNrOeuB1YMyLNnm9ZZXeZ2ihHqTPx38nMxGmd-HY09FExxju5bFjQBgxjnp99sX-JXxo2_sI73Sk-MGLQhMOguINy8/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image012&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
And here you can see your Hello World!!! &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVgyttFJO2GQNdog_7caxbkf7gmDzJ4oD8clBBau_rRWXP0u0q4YRH1cGHNHBE8vVc4qsq6wHe7PmofejJWVqDdO43dqqwHP2gcytSLWIMbSooD6m2pAHuf5vDXR9qRUXDi3e_M6ePJPM/s1600-h/clip_image014%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image014&quot; border=&quot;0&quot; height=&quot;121&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG08etTA7sLRaDkzU90Gc-3gS-eCGibGiViIRb0-YnfJ7gqKZ3hMPapVdjtEu6AE4-iSYKo7Dg7WKCKWgF_1BmX5ROFp3btwyn515TXs9LU17OHPjdgSOZZWo0decAsQRcjfRiCuyrC-o/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image014&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
If you select WebRole1 as your startup project and run the solution. It will run as a normal ASP.Net project and hosted locally on localhost. &lt;br /&gt;
If you click on the Azure Simulation and select “Show development Fabric UI” then it will show the azure services running on your machine. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi24jgQQN5NjSTJHG3ey5bCvpdWX06tYyJlk32rc_tOM88d2yEqOCw6aY5pMxsnOkM35U_B9M_wwgzB-3vd0vLV0utn1q0CAyMH3M41TNEzy7BdmI_ie0XLsLvuPZ1-B2XTQCBnTU6jsF0/s1600-h/clip_image016%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image016&quot; border=&quot;0&quot; height=&quot;120&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhpyq6SiOm_MsJuyAi6Vf9akVK6DUHMAmm1oUSCocXRhyxqQHg9MsJiwD58bDf_pCWCDEzKzRHSpCI2G8hn2IOYMVwc_NRM9k9zeponLqNmKuJf4NAzfOgSxEPrA2kKHxxZMJE1V1Ey44/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image016&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Here My CloudService1 is running having a single instance of WebRole. &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS1PbZxIN3WG1Slf067TMbGAxS-9DFen4tMEFw1D-VXWjidsJ3F3fJYWtDr7cp-aaciFzLp2h3Usd-g854oAKWq_YNjYnib05xGOuVmDLZDlBceth4GECC1RQhttWi7kr7xIpDyaw6iWo/s1600-h/clip_image018%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image018&quot; border=&quot;0&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW7pFEnERJgr5kts1ycfy97ixZO1oeQ7brxJQKRhMg8DPMqy1y7M1yoszWntxB6rajTclAxpo-yQTGvQ7_a7FuqIFzdRf_J9F-mwlWfRMDSG71CZswxCR8RJgj9gQ8EZvpIaLvAOHHBko/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image018&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;  &lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/03/creating-hello-world-application-in.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic35AxxBGkPySW1-j6X3lu4ag3SqIZuzrzVMGf_zVGG-kEiYet7pKV4LXQscF2mAsx1QghzJR3RQQa5p6pjHEIR21RG5a4-rGWIcepBpbpPRa_BHffjtFjYlXbk3iIhoIW2TB2QRRw26o/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-8925872022262336457</guid><pubDate>Thu, 24 Feb 2011 07:39:00 +0000</pubDate><atom:updated>2011-10-13T15:42:08.787+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Cloud computing</category><category domain="http://www.blogger.com/atom/ns#">Windows Azure</category><title>Overview of Windows Azure</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;color: #073763;&quot;&gt;Windows Azure&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows azure is Microsoft’s cloud platform. It includes Windows Azure operating system that serves as the Platform-as-a-Service (PAAS) and Infrastructure-as-a Service (IAAS). In order to understand AAS lets take an example-&lt;br /&gt;
&lt;br /&gt;
1) To deploy or use software we first need servers, firewalls, switches etc.&lt;br /&gt;
&lt;br /&gt;
2) Once server is setup then we need an OS then application server or database.&lt;br /&gt;
&lt;br /&gt;
3) Then we have to install the actual application.&lt;br /&gt;
&lt;br /&gt;
So we need some infrastructure, then platform and software. Windows Azure provides platform and infrastructure by providing a scalable and cost-effective computing, storage and networking resources on demand.&lt;br /&gt;
&lt;br /&gt;
Windows Azure has three main components in azure: Compute, Storage and Fabric.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1) Windows Azure Compute&lt;/strong&gt;:&lt;br /&gt;
&lt;br /&gt;
Windows azure provides hosting environment for managed code. It provides computation service through roles. Windows azure supports 3 types of roles:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;a) Web roles&lt;/em&gt; used for web application programming and supported by IIS7&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;b) Worker roles&lt;/em&gt; used for background processing of web roles.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;c) Virtual Machine (VM) roles&lt;/em&gt; used for migrating windows server applications to Windows azure in an easy way.&lt;br /&gt;
&lt;br /&gt;
Within a subscription one can have zero or more hosted service. Each hosted service can have deployment- either production or staging. And each deployment can have one or more roles of any types. Each role can have multiple instances.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;2) Windows Azure Storage:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Windows azure provides storage in cloud. It provides 4 types of storage services:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;a) Queues&lt;/em&gt; for messaging between web roles and worker roles.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;b) Tables&lt;/em&gt; for storing structural data.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;c) BLOBs&lt;/em&gt; (Binary Large Objects) to store text, files or large data.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;d) Windows Azure Drives (VHD)&lt;/em&gt; to mount a page blob. These can be uploaded and downloaded via blobs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3) Windows Azure AppFabric:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
AppFabric provides infrastructure services for developing, deploying and managing Windows azure application. It provides 5 services:&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;a) Service bus&lt;/em&gt; It provides secure connectivity between distributed and disconnected applications in cloud.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;b) Access control&lt;/em&gt; It grants access control to application and services based on the identity user. So the authorization decisions are pulled out from application into a set of rules that can transform incoming security claims into claims that applications understand.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;c) Caching&lt;/em&gt; It provides caching for high speed access, scaling, and high availability of data to application. It is available for developer preview only.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;d) Integration&lt;/em&gt; It provides integration between windows azure application and other SAAS. It will be available by CTP 2011.&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;e) Composite App&lt;/em&gt; It provides a hosting environment for WCF web services and workflows. It will be available by CTP 2011.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2011/02/overview-of-windows-azure.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-2701976952163316134</guid><pubDate>Mon, 28 Jun 2010 12:28:00 +0000</pubDate><atom:updated>2011-10-13T15:43:13.561+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Powershell</category><title>Creating commands in powerShell</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Learn how to create commands in few simple steps:&lt;br /&gt;
For creating commands in powerShell, I had installed templates for it, which I get from here: &lt;a href=&quot;http://channel9.msdn.com/ShowPost.aspx?PostID=256835&quot;&gt;http://channel9.msdn.com/ShowPost.aspx?PostID=256835&lt;/a&gt;. There are VB.NET and C# ones.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoPFcqkPflBB0AFlZSOq3OIKrOIxM6LVyhxgK0o6ipHZQEobNcnBb3vYhVyfuE993Nyw8S_XAARw8bH-671el0jUu9M-0r2diZphuv5gKVMVp6KKbNJ-Tn8K52locyYfdTCeucPabBXpU/s1600-h/clip_image002%5B5%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image002&quot; border=&quot;0&quot; height=&quot;366&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4_CoOhQinoPGyblFl2ED6cU2PWSmlbmQIG94-gkk7_cD29XYl2LZdJA2PEqWNBVbw2zw3Ichf1PUUxVARZdGxdT1oGTka8s-2TBF_i8a5W4mxnwSOWNbzWAj3Youa5qH3MTgZ_Y_ZlGE/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image002&quot; width=&quot;409&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK5zeYMkyaeOAfj3gKvojHM8Sr_f7492EGxVBXpB7xGfI1LuvP_plW0XawOccEz1L01tUxhPQqTqqxwB3FY5PadYiflCo6q_ElCGr2W5M2kIlBzEPzIbFBonp5IUIHGS357ohnHQE9Ngc/s1600-h/clip_image004%5B5%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image004&quot; border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhACeHIGMRieqnO5HrLCo5AU_d6xRGHUOBYk8kI_4RCD_HL9tJN-DDRwBO1TY2kYSd5JhJithgFCm0rEotyxXKS4N20GZ_MenwK-Ki8MjGu2Bst9NGEEb_SLOIHlx7SNVsk0RBCae-jGzE/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image004&quot; width=&quot;412&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
1) Now select a powerShell project as shown:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjr6DZqZhu1lG2BBY0eBjFCCdprlXllvSQRtUhX5fr5V5iz3iGzYcc7xcZvg-IkTW-eqmazKgVfqYfxEjLHJI7XayyJaDmRl7vbzqzrA1tQ94uVAgyIC2KsQbEWFQtT-aTJ3dxKD6SFib8/s1600-h/clip_image006%5B6%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image006&quot; border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIFQXT8NUlOW9GuPpCl3LYmOr0HCnEMP5cWZ96OAJGx9IQ0m7GyYacPIGfRbbnrtZHp5Rz2iEQBdZm9Ye6wLXwsWVZFyBkFMDTQPILN4_xrVD3GuSjIPnG6DCC8BMwJLsxFBeVb4dYx2I/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image006&quot; width=&quot;415&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
The project contains a PSSnapin file and a reference to the assembly System.Management.Automation&lt;br /&gt;
2) In the PSSnapIn.cs fill information as required.&lt;br /&gt;
[RunInstaller(true)]&lt;br /&gt;
public class WindowsPowerShell1SnapIn : PSSnapIn&lt;br /&gt;
{&lt;br /&gt;
public override string Name&lt;br /&gt;
{&lt;br /&gt;
get { return &quot;MyFirstSnapIn&quot;; }&lt;br /&gt;
}&lt;br /&gt;
public override string Vendor&lt;br /&gt;
{&lt;br /&gt;
get { return &quot;Reeta&quot;; }&lt;br /&gt;
}&lt;br /&gt;
public override string VendorResource&lt;br /&gt;
{&lt;br /&gt;
get { return &quot;WindowsPowerShell1,&quot;; }&lt;br /&gt;
}&lt;br /&gt;
public override string Description&lt;br /&gt;
{&lt;br /&gt;
get { return &quot;Registers the CmdLets and Providers in this assembly&quot;; }&lt;br /&gt;
}&lt;br /&gt;
public override string DescriptionResource&lt;br /&gt;
{&lt;br /&gt;
get { return &quot;WindowsPowerShell1,Registers the CmdLets and Providers in this assembly&quot;; }&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
3) Now add a new cmdlet class.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBC2PzCJvaDYdtSQhHuBXqOhf1-igQEvdrK3KCwjSi7Fe44JiOh9gKUUT1lc3T8XaxRvX-jO2uvu2AEdlqVCSxYWf9raeSLNLaiNUyebNrk_vNSK5D_0RpjR6q2zioBMIPMaUoFdAqtDU/s1600-h/clip_image008%5B5%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image008&quot; border=&quot;0&quot; height=&quot;301&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhHGTlJY8lpH1CH37zpa7anLw8zaWYT2sJBBeQEeyiO3Lr8KIM3GjYTrou5GjRm5Db7dF8RrHFCKAagaWf5UvGORU7TDfBRamoYLun3b3xv-CAVNza5-vou-7bPdBtnYBvu0TwtPizCMI/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image008&quot; width=&quot;424&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
4) In this cmdlet we simply add a value to a parameter and output it.&lt;br /&gt;
[Cmdlet(VerbsCommon.Get, &quot;Hello&quot;, SupportsShouldProcess = true)]&lt;br /&gt;
In this attribute “Get” is our verb and “Proc” is subject. Different verbs can be used. Read &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms714428(VS.85).aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms714428(VS.85).aspx&lt;/a&gt; for more information.&lt;br /&gt;
5) To add parameter write :&lt;br /&gt;
[Parameter(Position = 0,&lt;br /&gt;
Mandatory = true,&lt;br /&gt;
ValueFromPipelineByPropertyName = true,&lt;br /&gt;
HelpMessage = &quot;Enter a name&quot;)]&lt;br /&gt;
[ValidateNotNullOrEmpty]&lt;br /&gt;
public string Name&lt;br /&gt;
{&lt;br /&gt;
get;&lt;br /&gt;
set;&lt;br /&gt;
}&lt;br /&gt;
To validate a parameter we can add different attribute on a parameter. We can add help message for the parameter By “HelpMessage”. We can indicate that a parameter is mandatory by adding “Mandatory= true”. We can add position for a parameter.&lt;br /&gt;
6) Now add a code to write the parameter value in ProcessRecord(). When this command runs it execute code written in Processrecord().&lt;br /&gt;
WriteObject will write values on the commandlet.&lt;br /&gt;
7) For running the power shell we first need to install the dll.&lt;br /&gt;
On visual studio command prompt use - installUtil yourAssemblyPath.dll&lt;br /&gt;
8) Now add the SnapIn in the power shell using command:&lt;br /&gt;
Add-PSSnapin MyFirstSnapIn&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ-8S5GoMFC9d99XQuOVVkQ2Vq3qehDlK2kqQT6o-k3GhAKiNXSyMyIE4lV6X9ldQrb4B8x66SxpDAq2jYdxAPGN6uugD8wZ50Jr5MgXMwPY_NE_oOqVzjAHwrjEvgFdHq0FNe78pmSIk/s1600-h/clip_image010%5B5%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image010&quot; border=&quot;0&quot; height=&quot;146&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHJmRYlgL6y5-tJBAdfIbJBdWfrwXX0ar0JrMYpe87vZVgCeDS1oxIWnDzhrTGWlMQqxrSMXj4BcdmpkIcGVb7vmC5K_ub9t4MNsmZ4R57xyM_1mshxZdITDgXpumW9r8RB4OP33awaz4/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image010&quot; width=&quot;419&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
9) Now get the registered SnapIn list by command :&lt;br /&gt;
Get-PSSnapIn –registered&lt;br /&gt;
10) Now run the command using:&lt;br /&gt;
Get-Hello –Name Reeta&lt;br /&gt;
It will output – Hello Reeta&lt;br /&gt;
Since we had written position in the Parameter attribute we don’t need to specify –Name. if we write- Get-Hello Reeta, it gives same output.&lt;br /&gt;
If we don’t provide any parameter then it says that it is mandatory. &lt;br /&gt;
These are just simple steps for creating a command in powerShell. I get help from this blog http://blogs.msdn.com/b/daiken/archive/2007/02/07/creating-a-windows-powerShell-cmdlet-using-the-visual-studio-windows-powerShell-templates.aspx&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2010/06/creating-commands-in-powershell.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4_CoOhQinoPGyblFl2ED6cU2PWSmlbmQIG94-gkk7_cD29XYl2LZdJA2PEqWNBVbw2zw3Ichf1PUUxVARZdGxdT1oGTka8s-2TBF_i8a5W4mxnwSOWNbzWAj3Youa5qH3MTgZ_Y_ZlGE/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-6627980644853412299</guid><pubDate>Fri, 26 Feb 2010 11:26:00 +0000</pubDate><atom:updated>2011-12-30T10:49:48.328+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">Captcha</category><title>How to create a Captcha</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;Step 1:&lt;/strong&gt; Create a new website. In Default.aspx page put this code:&lt;br /&gt;
&amp;lt;table&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;img height=&quot;30&quot; alt=&quot;&quot; src=&quot;BuildCaptcha.aspx&quot; width=&quot;80&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:TextBox runat=&quot;Server&quot; ID=&quot;txtCaptcha&quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td&amp;gt;&lt;br /&gt;
&amp;lt;asp:Button runat=&quot;Server&quot; ID=&quot;btnSubmit&quot; OnClick=&quot;btnSubmit_Click&quot; Text=&quot;Submit&quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;strong&gt;Step 2:&lt;/strong&gt; In Default.aspx.cs page write this code for Submit button click:&lt;br /&gt;
protected void btnSubmit_Click(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
if (Page.IsValid &amp;amp;&amp;amp; (txtCaptcha.Text.ToString() == Session[&quot;RandomStr&quot;].ToString()))&lt;br /&gt;
{&lt;br /&gt;
Response.Write(&quot;Code verification Successful.&quot;);&lt;br /&gt;
txtCaptcha.Text = string.Empty;&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
Response.Write(&quot;Please enter code correctly.&quot;);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;strong&gt;Step 3:&lt;/strong&gt; Now add a new Page named BuildCaptcha.aspx. &lt;br /&gt;
On this page we choose random numbers and create a bitmap image from them. To do this write this code on the page load:&lt;br /&gt;
protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
{&lt;br /&gt;
//That is to create the random # and add it to our string&lt;br /&gt;
Bitmap objBMP = new Bitmap(60, 20);&lt;br /&gt;
Graphics objGraphics = Graphics.FromImage(objBMP);&lt;br /&gt;
objGraphics.Clear(Color.YellowGreen);&lt;br /&gt;
objGraphics.TextRenderingHint = TextRenderingHint.AntiAlias;&lt;br /&gt;
//&#39; Configure font to use for text&lt;br /&gt;
Font objFont = new Font(&quot;Arial&quot;, 8, FontStyle.Italic);&lt;br /&gt;
string randomStr = &quot;&quot;;&lt;br /&gt;
char[] myArray = new char[5];&lt;br /&gt;
int x;&lt;br /&gt;
Random autoRand = new Random();&lt;br /&gt;
for (x = 0; x &amp;lt; 5; x++)&lt;br /&gt;
{&lt;br /&gt;
myArray[x] = System.Convert.ToChar(autoRand.Next(65, 90));&lt;br /&gt;
randomStr += (myArray[x].ToString());&lt;br /&gt;
}&lt;br /&gt;
//This is to add the string to session, to be compared later&lt;br /&gt;
Session.Add(&quot;RandomStr&quot;, randomStr);&lt;br /&gt;
//&#39; Write out the text&lt;br /&gt;
objGraphics.DrawString(randomStr, objFont, Brushes.Blue, 3, 3);&lt;br /&gt;
//&#39; Set the content type and return the image&lt;br /&gt;
Response.ContentType = &quot;image/GIF&quot;;&lt;br /&gt;
objBMP.Save(Response.OutputStream, ImageFormat.Gif);&lt;br /&gt;
objFont.Dispose();&lt;br /&gt;
objGraphics.Dispose();&lt;br /&gt;
objBMP.Dispose();&lt;br /&gt;
}&lt;br /&gt;
Now you are done. When you run website it looks like this:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjn4J_mB253foy0L5xDjoPZdq5f26lwq8pVpksQ3B9QHvJHGff_LjuPgXLwUoxNy2mu8le2Pn308oZJLmJ4rI6A_Z-sGMMkET1R8uDCBkLykHkaasSHis3XoA2-G5v_Eqvk69CkJt9rYdU/s1600-h/clip_image002%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image002&quot; border=&quot;0&quot; height=&quot;235&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiozAaw2V8_bDZ4L2cB_GXRyvC0qxaLdB64z8n58ALKkwFHCOulbgHq8FREvGUxISK_bPftBt7_y1uIsacttO_PX9htbcP6TvxoxWpg7jLOw_JJXuvxeNHasBHWfP_57lcHAibwTd7wNg0/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image002&quot; width=&quot;244&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2010/02/how-to-create-captcha.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiozAaw2V8_bDZ4L2cB_GXRyvC0qxaLdB64z8n58ALKkwFHCOulbgHq8FREvGUxISK_bPftBt7_y1uIsacttO_PX9htbcP6TvxoxWpg7jLOw_JJXuvxeNHasBHWfP_57lcHAibwTd7wNg0/s72-c?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-694087193212819252</guid><pubDate>Fri, 20 Nov 2009 12:14:00 +0000</pubDate><atom:updated>2011-10-13T15:43:48.346+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">atom feed</category><category domain="http://www.blogger.com/atom/ns#">RSS</category><title>How to read RSS and atom feed</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Before .Net 3.5 we had to go for separate framework to read the feeds and parse it. In that case we need to refer the framework in our project and install that assembly in Bin or GAC. We need to parse &lt;i&gt;RSS&lt;/i&gt; and &lt;i&gt;atom feeds&lt;/i&gt; separately. But now, with .Net 3.5, life has become much easier.    &lt;br /&gt;With the namespace &#39;System.ServiceModel.Syndication&#39; it is just few lines of code to read and parse the feeds either RSS or Atom. Just have a look on the code:&lt;br /&gt;
string Link;&lt;br /&gt;
string Copyright;&lt;br /&gt;
StringBuilder rssFeed= new StringBuilder();&lt;br /&gt;
XmlReader reader = XmlReader.Create(url);&lt;br /&gt;
SyndicationFeed feed = SyndicationFeed.Load(reader);&lt;br /&gt;
String Title = feed.Title.Text;&lt;br /&gt;
if (feed.BaseUri != null)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Link = feed.BaseUri.ToString();&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Link = feed.Links[0].Uri.ToString();&lt;br /&gt;
}&lt;br /&gt;
if (feed.Copyright != null)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CopyRight = feed.Copyright.Text;&lt;br /&gt;
}&lt;br /&gt;
rssFeed.Append(“Title: ”+Title);&lt;br /&gt;
rssFeed.Append(“Link: “+Link);&lt;br /&gt;
rssFeed.Append(“\nCopyRight: “+CopyRight);&lt;br /&gt;
foreach (var item in feed.Items)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; string title = &quot;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; string description = &quot;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; string link = &quot;&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; DateTime PublishDate;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; String AuthorName;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; String AuthorUri;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if (item.Title != null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title = item.Title.Text;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; if (item.Content != null)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; description = ((System.ServiceModel.Syndication. TextSyndicationContent)(item.Content)).Text;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp; else&lt;br /&gt;
&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (item.Summary != null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; description = item.Summary.Text;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (item.Links != null &amp;amp;&amp;amp; item.Links.Count &amp;gt; 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; link = item.Links[0].Uri.ToString();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 1; i &amp;lt; item.Links.Count; i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; link += &quot;\n&quot; + item.Links[i].Uri.ToString();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (item.PublishDate != null)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PublishDate = item.PublishDate.DateTime;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (item.Authors != null &amp;amp;&amp;amp; item.Authors.Count &amp;gt; 0)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StringBuilder Authors = new StringBuilder(item.Authors[0].Name + &quot;,&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StringBuilder AuthorsUri = new StringBuilder(item.Authors[0].Uri + &quot;,&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 1; i &amp;lt; item.Authors.Count; i++)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Authors += &quot;\n&quot; + item.Authors[i].Name + &quot;,&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthorsUri += &quot;\n&quot; + item.Authors[i].Uri + &quot;,&quot;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthorName = Authors;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AuthorUri = AuthorsUri;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; rssFeed.Append(“\n\nLink: ”+link);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; rssFeed.Append(“\nTitle: ”+title);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; rssFeed.Append(“\nDescription: ”+ description); &lt;br /&gt;
&amp;nbsp;&amp;nbsp; rssFeed.Append(“\nPublishDate: ”+ PublishDate.ToString();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; rssFeed.Append(“\nAuthorName: ”+ AuthorName.ToString();&lt;br /&gt;
&amp;nbsp;&amp;nbsp; rssFeed.Append(“\nAuthorUri: ”+ AuthorUri.ToString();&lt;br /&gt;
}&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2009/11/how-to-read-rss-and-atom-feed.html</link><author>noreply@blogger.com (Anonymous)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-268397794729144337</guid><pubDate>Sat, 19 Sep 2009 08:42:00 +0000</pubDate><atom:updated>2011-12-30T10:51:08.756+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">C#</category><category domain="http://www.blogger.com/atom/ns#">Delegates</category><category domain="http://www.blogger.com/atom/ns#">Event Handling</category><category domain="http://www.blogger.com/atom/ns#">Events and Delegates</category><title>Asynchronous Event Handling</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Asynchronous Event handling&lt;br /&gt;
Why need Async Event Handling?&lt;br /&gt;
Let’s consider an example that you need some data in your application. So you call a method GetData(…) and it will give you the data. But untill you get the data your UI Thread is blocked. So you need something like that you call the method GetData(…) and return, and when data is done an event is raised to the UI that OK I am done and you process the data.&lt;br /&gt;
So here are the simple steps for Asynchronous event handling:&lt;br /&gt;
Suppose that I had a class “&lt;i&gt;Myclass”&lt;/i&gt; which contains a mehod “GetData&lt;i&gt;” &lt;/i&gt;which I want to call asynchronously, So that it raise an event when it get all the data without blocking main thread.&lt;br /&gt;
&lt;b&gt;Step 1:&lt;/b&gt; Create &lt;i&gt;MyEventArgs.cs&lt;/i&gt;&lt;br /&gt;
First decide what you parameters are needed after Get Data Return. These are the properties in MyEventArgs class. Suppose that we need a UserState, Result, and if any exception occurs then Error. So my class will look like this:&lt;br /&gt;
public class MyEventArgs&lt;br /&gt;
{&lt;br /&gt;
public object Result { get; set; }&lt;br /&gt;
public Exception Error { get; set; }&lt;br /&gt;
public object UserState { get; set; }&lt;br /&gt;
}&lt;br /&gt;
Above the class I define a delegate eventhandler like this:&lt;br /&gt;
public delegate void MyEventHandler(object sender, MyEventArgs e);&lt;br /&gt;
&lt;b&gt;Step 2:&lt;/b&gt; Create &lt;i&gt;MyEventController.cs&lt;/i&gt;&lt;br /&gt;
For asynchronous handling we create a delegate for the method. It has the same parameters as in Myclass’ s GetData method. If the GetData has some out parameters then we can also use them. If not then no need to define out parameter.:&lt;br /&gt;
public delegate object MyEventDelegate(string param1,out Exception Excep);&lt;br /&gt;
Now define a controller class like this:&lt;br /&gt;
public class MyEventController&lt;br /&gt;
{&lt;br /&gt;
public event MyEventHandler MyEventComplete;&lt;br /&gt;
MyEventDelegate _MyEventDelegate;&lt;br /&gt;
MyClass myClass;&lt;br /&gt;
public MyEventController()&lt;br /&gt;
{&lt;br /&gt;
myClass = new MyClass ();&lt;br /&gt;
_ MyEventDelegate = new MyEventDelegate(MyMethod);&lt;br /&gt;
}&lt;br /&gt;
private void OnMyEventComplete(MyEventArgs e)&lt;br /&gt;
{&lt;br /&gt;
if(MyEventComplete !=null)&lt;br /&gt;
{&lt;br /&gt;
MyEventComplete(this,e);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
public void GetData(string param1, object UserState)&lt;br /&gt;
{&lt;br /&gt;
Exception Excep = null;&lt;br /&gt;
object[] _AsyncUserStats = new object[1];&lt;br /&gt;
_AsyncUserStats[0] = UserState;&lt;br /&gt;
_MyEventDelegate.BeginInvoke(param1, out Excep, new AsyncCallback(MyMethodCallBack), _AsyncUserStats);&lt;br /&gt;
}&lt;br /&gt;
private object MyMethod(string param1, out Exception exception)&lt;br /&gt;
{&lt;br /&gt;
return myClass.GetData(param1,out exception);&lt;br /&gt;
}&lt;br /&gt;
private void MyMethodCallBack(IAsyncResult ar)&lt;br /&gt;
{&lt;br /&gt;
Exception Excep = null;&lt;br /&gt;
AsyncResult aresult = (AsyncResult)ar;&lt;br /&gt;
object Result = ((MyEventDelegate)aresult.AsyncDelegate ).EndInvoke(out Excep, ar);&lt;br /&gt;
object[] _AsyncUserState = ar.AsyncState as object[];&lt;br /&gt;
MyEventArgs result = new MyEventArgs()&lt;br /&gt;
{&lt;br /&gt;
Error=Excep,&lt;br /&gt;
Result =Result,&lt;br /&gt;
UserState = _AsyncUserState[0],&lt;br /&gt;
};&lt;br /&gt;
OnMyEventComplete(result);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
Let’s see what happens in the controller class. It define an event MyEventComplete which will be raised when GetData complete. For this we define a function “OnMyEventComplete” which raise the event when we get all the data. It also defines an object of the delgate we define above “MyEventDelegate”. In the constructer we register the method (MyMethod here) with the delegate which we want to call. In this method we actually call the GetData of MyClass.&lt;br /&gt;
Now look at the GetData of MyController class. This is the method which we call when we want to get the data. In this method we call the BeginInvoke of the delegate. In the BeginInvoke it accepts the same parametrs as in the GetData metod of MyClass and two extra parameters of type &lt;b&gt;AsyncCallback &lt;/b&gt;and &lt;b&gt;object &lt;/b&gt;or&lt;b&gt; object[]&lt;/b&gt;. The AsyncCallback contains the method which will be called when it gets the data. The syntax for implementation of this callback method is :&lt;br /&gt;
private void MyMethodCallBack(IAsyncResult ar)&lt;br /&gt;
And in the MyMethodCallBack we get the result and raise the event by calling OnMyEventComplete method.&lt;br /&gt;
So the flow is like this:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_58u_ZSKVRMHF4e5rmI_UZXOighRMdZSb3qqL2ZEpINmE3UUNrtu9z_GbFO3gLwbpgeQjoiCy-lTqqWa78Bn-dzjmevTt7BJdn6l_fBqeUrsPqv4P0LXZdrSZhrGFSndW46Fe2U-5m8Q/s1600-h/clip_image002%5B5%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image002&quot; border=&quot;0&quot; height=&quot;198&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFKZo5Wzj_mT6GH4m-F5WIDCuODCbc3r5f8iaR61to0v_sua5nBYleFVVyTMcUCMEs-NsGAMs5-mV0FAxxlZiobKKuG-ZX-EOevaB-QDwAjmAkEanHg8UpE7yPmleWxE7i1t1nE_exVfg/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image002&quot; width=&quot;407&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
In the UI we create a class of the controller and call the GetData of controller. Event “MyEventComplete” will be raised when get Data complete. Before calling the method you have to register the event like this :&lt;br /&gt;
MyEventController _myController= new MyEventController();&lt;br /&gt;
_myController.MyEventComplete += new MyEventHandler (myController_MyEventComplete);&lt;br /&gt;
void myController_MyEventComplete(object sender, MyEventArgs e)&lt;br /&gt;
{&lt;br /&gt;
this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, (Action)(() =&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
/////.. event is raised and we get the result in the e.Result&lt;br /&gt;
}));&lt;br /&gt;
}&lt;br /&gt;
Since this event complete is returned in another thread we neet to use Dispatcher like above. &lt;br /&gt;
And when we need the data we use _myController.GetData(….);&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2009/09/asynchronous-even-handling.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFKZo5Wzj_mT6GH4m-F5WIDCuODCbc3r5f8iaR61to0v_sua5nBYleFVVyTMcUCMEs-NsGAMs5-mV0FAxxlZiobKKuG-ZX-EOevaB-QDwAjmAkEanHg8UpE7yPmleWxE7i1t1nE_exVfg/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6210655303359621164.post-2950133010065950454</guid><pubDate>Fri, 28 Aug 2009 13:04:00 +0000</pubDate><atom:updated>2011-12-30T10:50:27.532+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">.Net</category><category domain="http://www.blogger.com/atom/ns#">.Net RIA Services</category><category domain="http://www.blogger.com/atom/ns#">Silverlight</category><title>.NET RIA Service</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
.Net RIA Services bring together the ASP.NET and Silverlight platforms. It provides a pattern to write application logic that runs on the mid-tier. It integrates with Silverlight components on the client and ASP.NET on the mid-tier. Get more information about RIA services from &lt;a href=&quot;http://www.nikhilk.net/NET-RIA-Services-Vision-Architecture.aspx&quot;&gt;http://www.nikhilk.net/NET-RIA-Services-Vision-Architecture.aspx&lt;/a&gt;. &lt;br /&gt;
In this blog we see how to create a simple .NET RIA Service enabled project. It only provides a brief overview of.Net RIA Services.&lt;br /&gt;
&lt;b&gt;Step 1:&lt;/b&gt; First Create a new Silverlight Project as:&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbkD3x_wuPtJ4L5IAHEH75P9qs1Fv5gzQ4xDoePtAnVgPyprTGiAsZXc-gEBTTmk4uTiCWFCFeOKkH8cG99f6lrRv_a0RVz7IhTNA7dzC1gNsnu59fLbeTlshZa62f7S4b9rw5WdCB4FM/s1600-h/pic1%5B8%5D.png&quot;&gt;&lt;img alt=&quot;pic1&quot; border=&quot;0&quot; height=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvRe_r877tNQIdJQz_fUn4Bdm_yVTbIcEfPxz3h_p94hTqK3ng8L3rt7DGG8moUJ9BM2VtnZnOCmXrfmY9iU7c752zfZU6rpvOn74Scu_2nbrJcAFxka4WK6OCp1u7PIl1tkxHl5ynLqU/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;pic1&quot; width=&quot;390&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
&lt;b&gt;Step 2: &lt;/b&gt;Then enable .Net Ria Services like this:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoRXD5SHwSo4vF6XetOqOfWVWAjJOZUyMmZp8Fm_JHsw9d35a8dthMu9Cr4JmG1GvECkbviWtT6xNz7Vu-RDjBxBJ6gEcKR_PRdVMnZA8r7V3qLtlRhhcmiC-wKBt6ErgBBIrfsXgpsPU/s1600-h/clip_image004%5B1%5D%5B3%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image004[1]&quot; border=&quot;0&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaCtUOcQXVoPziwT37vhfT0mir-7IdBpCIKO_QLwlYZUNqwTX-kNc0f184QPmPW6sONCduip93ZaajeO2HgYLaEOPmZVJ82ABQWwUhVN2t5c5NhFdEG_sFdvKP17RXyRe0CkYvv2gIeLE/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image004[1]&quot; width=&quot;349&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Step 3 : &lt;/b&gt;Now to mid-tier i.e., on RiaTest.Web project add a new item and select the Data category as follows:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiD3uDkDuI2_tDH3L1SYTqOzDln7Sztrm7lBwAYRp43DQxdg4O_fPUWYfuA1lroJ8nhcJ9E9HHqcn4P6y8UHaIWnbIeJ47aUZ_rNJMI99xKHRvIyJ7uUm_8KUHCnio6eMyD7pM0VSwpfhA/s1600-h/clip_image006%5B1%5D%5B5%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image006[1]&quot; border=&quot;0&quot; height=&quot;310&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGRogy_Jlss1bUWesIQhdzvHNIviiI1GGb3VEGw88ZIXVqBOv33wQY3xFyKRYlD0X3vzsnS0wf7LKeEkfvD_lQY_Fa6Z4hZnDb2zC9h58eNBZ2r9TJycPZUKGTYlIvnngaAcO-0kP_2Sk/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image006[1]&quot; width=&quot;493&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
we will access the Northwind database using the Entity Framework. We choose 2 tables from the northwind for this application.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmCruKCW0YX0DYlo-cnXUjJKA9bhVs3s7oMtCaKXXbYo2GoxT1oHUj4mmgKHcCIR3eRg63B6tWEaBsdMaOPd5OD_urR8lFgTtBNRvYclrxQct7t0ufNDoCkUjTtRZ2GU8PddZhSVkHGNQ/s1600-h/clip_image008%5B1%5D%5B2%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image008[1]&quot; border=&quot;0&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0BNwaGcUT6_ma26tFfzjX94-wwzryZWPIMBBs2gUJcrEeh4xxzQTkOGV8q6P9BSHnQTKJwMepyXGrQS7S0k0sX6SfW9as4Sag5KeiECWLvsKbV6NdEayTjPzeVunQpYW2b_HrUP6rbAg/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image008[1]&quot; width=&quot;225&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Step 4 : &lt;/b&gt;After building project create a DomainService on the mid-tier. A DomainService is a class that exposes entities and operations for a specific data domain. It is also where the developer adds application logic. To create a Domain Service Add new item to the mid-tier and in the Web category add DomainService class as follows: &lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjY3MJFLWs3LixiB4FobUTlNEsRV9HSv_g2mDpG1iBMBu4QQR4glo5wR0zi8Hf1IKBYToYFGS5tZfj8Ttzk46IAXfIBsuXOTRPZc2S7AsOr7wqnH_6At7ENY0DZXMpeuEf2qG5or41Go-U/s1600-h/clip_image010%5B7%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image010&quot; border=&quot;0&quot; height=&quot;313&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi19GYe26YVRQLr4M_A2Vi-rB0PT60WLd1IPnlPx_4n1PuarkON_D_DarEOZCOawHYmjgKflrjPd2JDhUO5C2YmTxzkXIVNG5fjKk6QugtTxMfsolLPK8c8WhwObOSQa1NjrBmDgtpflso/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image010&quot; width=&quot;459&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;Step 5 : &lt;/b&gt;Now we select only one table &lt;b&gt;Orders&lt;/b&gt; , we will not set Enable Editing for the table because we want only read only table. Generate metada will create metadata of table on client.&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhl_GvPL_QiFTaA9y-rL3C7dnTE9ZNy6XXf7c66xG3anloU_iTKtzFMSv1DOh-s6c4E0nu3nSHCkFp5VxyGOzUEMccm0mr-H8L2mJRz7NjJex_pzfER6IbfbdKLroa06xB6wMRKAoBp-2o/s1600-h/clip_image012%5B4%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image012&quot; border=&quot;0&quot; height=&quot;364&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisJzL0LsJR2af-Ry1SK0q-0rlN5LtX3nIJ8FGNY5jSDZm0Fmf9bvXv70_9cQCGn5XrfaB8oAjCZKbEx5d8RDWlBZpiXHvvVyVIu6_dnqLIeSI5m5Ud9bWtozStAwsj0uI4JZCuv-UVGrU/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image012&quot; width=&quot;278&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
It will generate a class as follows:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2luOiRAEG35sVtVtCsi1s6EdDDfAQhE6VLsQYf5J3GEv2tfVQyGpT_3vX485rS8Dxog5ePdQVMSJAFydOSugGZdn1vKOgdsMLszk7uhfH-xhtIVu53NdTWg0mwERDQie-bbnLWAZFpn4/s1600-h/clip_image014%5B8%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image014&quot; border=&quot;0&quot; height=&quot;448&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXS71j2FRQbnmgERXwUjq6XpCcsPURsxxqHMnQxz4KF4b3JtEd4d9iELhUqkERPWrLq9mhmiJMP3QJXNBJP7P9Te0HGNOl_0tUB46UrknkUWY4wPNQEZJbEU5fNV0PdlzvDXBwQ6pLeDQ/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;clip_image014&quot; width=&quot;448&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
It has following characteristics:&lt;br /&gt;
· It is derived from LinqToEntitiesDomainService, an abstract base class built into the .NET RIA service framework3.&lt;br /&gt;
· It is bound to NorthwindEntities1 class we created earlier&lt;br /&gt;
· A single GetOrders() query method is generated because we select only &lt;i&gt;Orders&lt;/i&gt; table&lt;br /&gt;
· This.Context.Orders in GetOrders() will give all the order in table.&lt;br /&gt;
· OrderService is marked with [EnableClientAccess] indicating it is visble on client tier&lt;br /&gt;
When we build project and click on Show all files on client tier we see some Gnerated code as:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjke1wc5m3_zQRZ89O1ta2qrMxr8vu4H9um3eR4VHmko738e-A2RsqIMV1JGM1kDMAS9BdOxb-D2pMJHGXtYGEkaijPLolZLnNzFSMnAOLRRsASl2LM7v6Xx-9jZGxEyOtc-S4pnow9fuQ/s1600-h/clip_image016%5B4%5D.jpg&quot;&gt;&lt;img alt=&quot;clip_image016&quot; border=&quot;0&quot; height=&quot;370&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjq58Drzl6j2_Zdz_OoGDFX_jxU5K5bRxE1EwbyEnSCEBirOvPfGRrTI1sVPZ8d4jtZIVz9baW1ID0yv2uOXhwYr1phFQz_y8GjSbsWBL7M6N5tSc4bkr07dqRky9FtMO3cFmTvwgvJiLY/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;clip_image016&quot; width=&quot;215&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
This is the client proxy class which is generated from the Domain service class which we create on mid-tier.&lt;br /&gt;
&lt;b&gt;Step 6 : &lt;/b&gt;Now in MainPage.xaml add a data Grid named “MyGrid” as follows:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBMauHL8siSfMHMMsVyX3NryEvZnD_LlcT4QQ1D5PQoimHAfK2P5Uq0KwLNZMraa5FkhyphenhyphennAc7bNCPyCe09IcHq_ocgjNyNWrdmYSxAvB6sOleDgYrrObm27bjk-WEnH8M3XVqIC0JUOGE/s1600-h/image%5B11%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdkKkbVhlWxMW6yHDSJ2H_Pi1m_pq6TmujgLMkujYS6_6BuEpDKppMBCI_rgu8LfGzGYbEjklMcPBBRoDc75bUusJhtF0BPzWCeTKaoZAAdoAWtB4V_qIDj7tTw3_Z7MfemkkwPGb00kA/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;489&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
Don’t forget to include System.Controls.Data.dll in references. &lt;br /&gt;
&lt;b&gt;Step 7 : &lt;/b&gt;Now in MainPage.xaml.cs add 2 references :&lt;br /&gt;
· System.Windows.Ria.Data&lt;br /&gt;
· RiaTest.Web&lt;br /&gt;
Now create an object of OrderContext and then load entities of Orders and set the itemsource of the datagrid.&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0g3Pmp9HcRj52KAHtkoUNBIUVI-cSIilMKgO0hqBazG1cZzM416KlHux2_XWbIa5ZM5kU2-cbsH20Rw9d2j1AdWUe4MTUnlls_MzIMEGYVUuhDL-JPLQKcSBF78yuSVds5QrzYYFWpDI/s1600-h/image%5B16%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;360&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrNSIRrQuzxSzizK-vqTqmtUHSNG7dT6IIleM2dPquG50AnUjzkkA8m10VYB4Ve0DXcel9U_MRV1JxQ0fAae9XRpuTmYPYsyybsZClW2wHxgm6CaFQZpdf4rSQOFz-Dg7VaaT46xuxMl8/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;424&quot; /&gt;&lt;/a&gt; &lt;br /&gt;
When you run the project you see all the orders in the data grid.&lt;/div&gt;</description><link>http://reeta-singh.blogspot.com/2009/08/net-ria-service.html</link><author>noreply@blogger.com (Anonymous)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvRe_r877tNQIdJQz_fUn4Bdm_yVTbIcEfPxz3h_p94hTqK3ng8L3rt7DGG8moUJ9BM2VtnZnOCmXrfmY9iU7c752zfZU6rpvOn74Scu_2nbrJcAFxka4WK6OCp1u7PIl1tkxHl5ynLqU/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></item></channel></rss>