Change vmsize of package

I’m enrolled into the Extra Small vm beta program. Now I want to use it to test my old packages for performance differences. How to change the vmsize of packages?

There is a post about this here on the Microsoft Azure forum. I tried to hack te package by disabling the encryption like described here. Then I opened the cspkg file with 7Zip and the cssx inside. Both files turn out to be zip archives. The cssx file contains RoleModel.xml which could be the csdef file from your Visual Studio project, because it has the same xmlns.

Adding the vmsize=”ExtraSmall” results in an errormessage while uploading in the portal.

For now I change the vmsize in the csdef and repackage the files with the CSPack util in the Azure SDK. The properties.txt file contains the line “TargetFrameWorkVersion=v4.0”.

cspack [projectfolder]\ServiceDefinition.csdef /role:[webrolename];[webrolename] /out:Repackaged.cspkg /rolePropertiesFile:properties.txt

The package that comes from cspack doesn’t contain the vmsize=”extrasmall” entry in the RoleModel.xml, so my statement that it is the csdef file is wrong. Conclusion for now is: repackage your project to change the vmsize.

About erictummers

My work as a recruited developer changes almost every month. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Development. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s