Skip to main content

Create a solution

For easy setup and maintenance of a Taskurai resource, a solution file is created. This file can be maintained in source control and can be reapplied to update an existing resource or setup new resources.

Create your first solution file

When the Taskurai CLI is first started, an empty solution file is created in the current directory.

mkdir taskurai-tasks-sample
cd taskurai-tasks-sample
taskurai

Sample solution file:

taskurai-tasks-sample/Taskurai.yaml
options:
taskurai:
subscriptionId:
resourceGroupName:
location:
taskuraiName:
deployment:
deploySecrets: false

Next copy the installation information from your Taskurai setup in the solution file:

taskurai-tasks-sample/Taskurai.yaml
options:
taskurai:
subscriptionId: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
resourceGroupName: rg-taskurai
location: westeurope
taskuraiName: TaskuraiSample
deployment:
deploySecrets: false

Testing your setup

To test if the setup of the solution is successful, try listing the current workers:

taskurai worker list
info

If you are not signed in to Azure yet, you will need to log in using your Azure credentials. You can use one of the following methods:

  1. Azure Tools extension for VS Code
  2. Azure CLI: az login
  3. Azure PowerShell: Connect-AzAccount
  4. If you are not logged in using any of the above methods, an interactive browser login will be used.

When the test is successful, you should see output similar to the following:

# Signed into Azure account
# Retrieved subscription XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
# Retrieved resource group rg-taskurai

Taskurai TaskuraiSample workers
└── Worker information
└── ╭────────┬──────────┬─────────────────╮
│ Worker │ Commands │ Container image │
╰────────┴──────────┴─────────────────╯

Getting to know the CLI

To explore the usage of the Taskurai CLI and view the available commands and options, you can run the following statement:

taskurai --help

This will provide you with an overview of the CLI's capabilities and help you get started with using Taskurai effectively.