Alpha Cloud - Alpha Anywhere Developer's Guide

Managing Applications


Managing Applications
Managing Application Properties

Managing Applications


Applications are fairly simple objects. They have a status and primary contact, and any users you authorize to make changes to them or deploy.

Application names must be unique within an account.

To manage your applications from within Alpha Anywhere:

  1. Click on the Alpha Cloud toolbar icon in the web control panel and select "Advanced" and then "Applications" from the drop down menu.



  2. To add a new application, click in the empty row at the bottom of the grid.
    • Enter a name for your new application>
    • The default status is "Active", but you can choose to create the application with a "Disabled" status.
    • The default primary contact is the account primary contact, but you can change it.
  3. To change the status or primary contact of an existing user, make the changes right in the grid.
  4. When you have finished making changes, click "Apply Changes" to update the cloud.
  5. Once you have saved a new application, you can authorize additional users to manage and publish the application by clicking on the button entitled "Manage Authorized Maintainers". For more information on authorized maintainers see Delegating Access.


Managing Application Properties


Web projects you create in the Alpha Anywhere development environment generally include one or more connection strings for ADO, Alpha DAO, or Storage. The connection strings you define in the Alpha Anywhere development environment are automatically published to Alpha Cloud along with your web project. After your application is published, you can view and edit connection strings and add constants you would like to be available to your running application.

Important Note: Connection strings are set in the Alpha Anywhere publish profile. You can override constants and connection strings for an application on each deployment. Those overrides will take precedence over any value set when the application is published. See Managing Deployment Properties for more on deployment properties

Managing Application Constants
Managing ADO Connection Strings
Managing Alpha DAO Connection Strings
Managing Storage Connection Strings
Managing Log Custom Storage


Managing Application Constants

Alpha Cloud maintains application constants in the deployed configuration file. Each constant has a name and a string value. You can access the values of those constants using the following Xbasic syntax in A5W pages and server side event scripts:


  • Constants You Define

    Context.ApplicationConfiguration.GetConstant("<My Application Constant Name>")


  • Alpha Defined Constants

    Context.ApplicationConfiguration.<Predefined Alpha Constant Name>

    For Example: Context.ApplicationConfiguration.ServerProduct

    Alpha Cloud automatically populates the following Alpha constants for applications deployed on Alpha Cloud:

    • ServerProduct - The Alpha Anywhere Application Server product your application is deployed on

      • AlphaCloud - if your are deployed on Alpha Cloud
      • ApplicationServerIIS - if you are deployed under Alpha Anywhere Application Server for IIS
      • ApplicationServerClassic - if you are deployed on Alpha Anywhere Application Server Classic.
    • Subscription - The name of your subscription
    • Account - The name of the account (defaults to "Primary")
    • Application - The name you assigned your application when you published
    • Deployment - The name you assigned your deployment (defaults to "Primary")
    • WebSite - The name you assigned to your web site (defaults to "Primary")
    • ApplicationVersion - The publication number; automatically sequenced from one each time you publish
    • ApplicationPublicationDate - The date and time this version of your application was published
    • ApplicationDeploymentDate - The date and time this version of your application was deployed

To maintain constants you define:

  1. Open the Managing Applications Dialog discussed above.

  2. Click on the row of the application you want to manage properties for.

  3. Click on the button labeled "Manage Properties".

  4. The Manage Application Properties dialog will display.



  5. Select "Application Constant" from the properties drop down.

  6. To add a new constant:

    • Click the name field of the new row (the row that has a * to the left) and enter a name for your constant.

    • Tab into or click the value field of the same row and enter the value you want to set.

  7. To edit an existing value:

    • Click the value field of the same row and enter the value you want to set.

      Note: Constants can not be deleted, but can be disabled. Check the Show Disabled Properties check box to show the status column and update properties to "Active" or "Disabled".

  8. When you have finished making changes, click "Apply Changes" to update the cloud.

  9. To undo your changes instead of saving them, click "Discard Changes" to reset the data.


Managing ADO Connection Strings

  1. Open the Managing Applications Dialog discussed above.

  2. Click on the row of the application you want to manage properties for.

  3. Click on the button labeled "Manage Properties".

  4. The Manage Application Properties dialog will display.



  5. Select "ADO Connection String" from the properties drop down.

  6. To add a connection string:

    • Click the name field of the new row (the row that has a * to the left) and enter a name for your constant.

    • Tab into or click the value field of the same row and enter the value you want to set.

  7. To edit an existing value:

    • Click the value field of the same row and enter the value you want to set.

      Note: Connection strings can not be deleted, but can be disabled. Check the Show Disabled Properties check box to show the status column and update properties to "Active" or "Disabled".

    • You can also click the button in the row labeled "Build..." to open the ADO connection string dialog.



  8. When you have finished making changes, click "Apply Changes" to update the cloud.

  9. To undo your changes instead of saving them, click "Discard Changes" to reset the data.



Managing Alpha DAO Connection Strings

  1. Open the Managing Applications Dialog discussed above.

  2. Click on the row of the application you want to manage properties for.

  3. Click on the button labeled "Manage Properties".

  4. The Manage Application Properties dialog will display.



  5. Select "Alpha DAO Connection String" from the properties drop down.

  6. To add a connection string:

    • Click the name field of the new row (the row that has a * to the left) and enter a name for your constant.

    • Tab into or click the value field of the same row and enter the value you want to set.

  7. To edit an existing value:

    • Click the value field of the same row and enter the value you want to set.

      Note: Connection strings can not be deleted, but can be disabled. Check the Show Disabled Properties check box to show the status column and update properties to "Active" or "Disabled".

    • You can also click the button in the row labeled "Build..." to open the Alpha DAO connection string dialog.



  8. When you have finished making changes, click "Apply Changes" to update the cloud.

  9. To undo your changes instead of saving them, click "Discard Changes" to reset the data.


Managing Storage Connection Strings

  1. Open the Managing Applications Dialog discussed above.

  2. Click on the row of the application you want to manage properties for.

  3. Click on the button labeled "Manage Properties".

  4. The Manage Application Properties dialog will display.



  5. Select "Storage Connection String" from the properties drop down.

  6. To add a connection string:

    • Click the name field of the new row (the row that has a * to the left) and enter a name for your constant.

    • Tab into or click the value field of the same row and enter the value you want to set.

  7. To edit an existing value:

    • Click the value field of the same row and enter the value you want to set.

      Note: Connection strings can not be deleted, but can be disabled. Check the Show Disabled Properties check box to show the status column and update properties to "Active" or "Disabled".

    • You can also click the button in the row labeled "Build..." to open the storage connection string dialog.



  8. When you have finished making changes, click "Apply Changes" to update the cloud.

  9. To undo your changes instead of saving them, click "Discard Changes" to reset the data.


Managing Log Custom Storage

Alpha Cloud encrypts and copies log files from running servers to private storage so you can retrieve them from within Alpha Anywhere even when the instances have shut down.

You can request that the log files also be copied to your own cloud storage (currently S3 or Azure) as well. This is useful if you have a log analysis tool that is capable of pulling in files automatically and running analytics against them.

Note: Alpha Cloud copies partially complete log files to private storage so you have access to them in Alpha Anywhere sooner. Because some log analyzers require a complete file, log files are not copied to custom log storage until they are complete. As a result you will see a delay in logs moving to log custom storage.

  1. Open the Managing Applications Dialog discussed above.

  2. Click on the row of the application you want to manage properties for.

  3. Click on the button labeled "Manage Properties".

  4. The Manage Application Properties dialog will display.



  5. Select "Log Custom Storage Connection String" from the properties drop down.

  6. To add a connection string:

    • Click the value field beside one of the following names.

      • IIS - The standard Microsoft Internet Information Services logs.
      • IISFailedRequest - The failed request log files.
      • XBasic - The XBasic log file in common log format. This file contains CSV formatted entries for log files generated by Alpha Anywhere Application Server for IIS including timings, traces and errors.
    • Enter a connection string for the log custom storage or click the button in the row labeled "Build..." to open th storage connection string dialog.

  7. To edit an existing value:

    • Click the value field of the same row and enter or build the value you want to set.

    • You can also click the button in the row labeled "Build..." to open the storage connection string dialog.



  8. When you have finished making changes, click "Apply Changes" to update the cloud.

  9. To undo your changes instead of saving them, click "Discard Changes" to reset the data.