Export (0) Print
Expand All

Convert an existing package to the new format

Updated: December 4, 2013

In order to deploy an application as a cloud service in Azure, you must first package the application in the appropriate format. You can use the CSPack Command-Line Tool (CSPack) to create the package file. Prior to version 1.7 of the Azure SDK, the package could only be generated in a single format. Beginning in version 1.7 of the Azure SDK, the CSPack tool can create the package file in OPC format as well as the existing format. The CSPack tool can now also convert an existing package from the previous format to the new format. For more information about the new package format, see Windows Azure Package Format.

  1. Click Start, point to All Programs, and then click Windows Azure. Click Windows Azure SDK for .NET, and then specify the SDK version.

  2. Right-click Windows Azure Command Prompt, and then click Run as administrator.

  3. In the Azure SDK Command Prompt window, change the directory to the location of your application files.

  4. The following example converts an existing application package to the new package format:

    cspack /convertToCtpPackage:<InputFileName>;<OutputFileName>
    
    

    The variables in the preceding example are defined as follows:

     

    Variable Value

    <InputFileName>

    The name of the package file to be converted.

    <OutputFileName>

    The name for the converted package file.

The following example converts an existing package to the new format:

C:\Samples\HelloWorld\C#>cspack /convertToCtpPackage:HelloWorld.cspkg;HelloWorldOPC.cspkg

Show:
© 2014 Microsoft