You can package and deploy K2 Cloud solutions using the Package and Deployment tool available for K2 Cloud. Use the steps in this article to download, log in, and use the tool.

Prerequisites

The following items must be in place before you can use the K2 Cloud Package and Deployment (P&D) tool:

  • K2 Operations must add your public IP addresses to the Azure Network Access Control List (ACL)
  • Open the port range 25683 – 26707 in your firewall
  • You are a member of the Package and Deployment role. See K2 Cloud User Guide - Roles for more information.

Steps

Use the following three high-level steps to download, install and run the Package and Deployment tool.

Step 1: Grant Consent

If you do not grant consent using a Global/Tenant Administrator account you may see a "Primary Credential Not Authenticated" error. To do this, follow these steps:

  1. Go to K2 Management and click Integration > API
  2. Click the Setup AAD Consent button as shown in the following figure:
Image
  1. You are redirected to login to AAD. Provide your admin username and password.
  2. Click Accept on the consent page which then redirects you to the Authorization Successful message. Close this page.

Step 2: Download Package and Deployment Tool

Use the following steps to download the P&D tool.

  1. Browse to your Management site and then append 'remote' to the end of the management URL. For example, https://{YourK2CloudID}.onk2.com/Management/remote or https://{YourK2CloudID}.appit.com/Management/remote
  2. Click Save File to save the K2DeploymentUtility.exe file

Image

  1. Run the K2DeploymentUtility.exe file and extract its contents

This file is preconfigured for your K2 Cloud environment and should not be used for other environments you may have.

  1. Once extracted, run the SourceCode.Deployment.Standalone.exe file

Image

Step 3: Log in to AAD and Create or Deploy a Package

Log in using a member of the Package and Deployment role, and then create or deploy a package.

If you do not see this login prompt, Windows auto-login is using your current account to automatically log in. You can try disconnecting or signing out of this account using the Start > Settings > Accounts > Email & app accounts or by managing your profile at https://account.activedirectory.windowsazure.com/r/#/profile.

  1. Depending on your current version, you may see one of the following prompts to log in.

Image

Image

  1. Choose your environment and then either create or deploy a package. For more information about creating and deploying packages, see K2 Package and Deployment.

Image