tag:help.appveyor.com,2012-11-13:/discussions/questions/1128-how-do-you-change-the-size-of-webworker-roles-by-environmentAppVeyor: Discussion 2018-10-19T08:17:06Ztag:help.appveyor.com,2012-11-13:Comment/364078552015-03-28T14:40:38Z2015-03-28T14:40:41ZHow do you change the size of web/worker roles by environment?<div><p>This is what I do: I run a pre-build powershell script on my
development branch that will change the ServiceDefinition file to
another size:<br>
So for development, where I only want a small instance, I use this
to change the definition to use a small one:<br></p>
<pre>
<code>$xml = <a href="Get-Content" title="C:\projects\gitreponame\cloudserviceprojectname\ServiceDefinition.csdef">xml</a>
$xml.ServiceDefinition.WebRole.SetAttribute("vmsize","small")
$xml.Save('C:\projects\gitreponame\cloudserviceprojectname\ServiceDefinition.csdef')</code>
</pre></div>Malyngotag:help.appveyor.com,2012-11-13:Comment/364078552015-03-28T15:13:27Z2015-03-28T15:13:28ZHow do you change the size of web/worker roles by environment?<div><p>Markup has messed up my code, the first line should look like
this:</p>
<p>$xml = <a title="C:\projects\gitreponame\cloudserviceprojectname\ServiceDefinition.csdef" href="Get-Content">
xml</a></p></div>Malyngo