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

Working in a DevOps team is the best thing that happened to me. 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 )

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.