HowTo


Let us know if you have any questions. We can help integrade or provide custom solution to connect with your systems.

Find Out More

HowTo


Integration with cloud service

On this page we present some commands and a demonstration. The main purpose is to get a general idea of the workflow. Our git repository will contain the most up-to-date manual and examples. The commandline utility that we use in this demo is just a wrapper around CURL. So anything the utility does can also be accomplished with other languages like .NET, Python etc.

Azure ServiceBus Queue

Do you want to tryout this configuration then we provide a seperate Azure Account for you to test the solution without impacting your current Azure environment.

1. Information Azure environment

Assuming you are working on a Linux environment, otherwise use the appropriate method to install the Azure CLI tool.

# 1. Install the Azure CLI tools
apt-get install azure-cli

# 2. Use the credentials we provided.
az login

# 3. You might want information about the ServiceBus Queue
az servicebus queue show --name queue01 --namespace-name customer-customer01-namespace01

# 4. Or more information about the ServiceBus Queue endpoints:
az servicebus namespace authorization-rule list --namespace-name customer-customer01-namespace01
az servicebus namespace authorization-rule keys list --namespace-name customer-customer01-namespace01 --name RootManageSharedAccessKey
                  

2. Run Azure Function Runtime on the Cloud Unit

# 1. Create environment eg.: customer1
./ocapi -p -t customer1 -a init -g 34.245.31.199 -u tokens/default_user.txt -l ~/.ssh/id_rsa.pub -f artifacts/bootstrap_python3_azure_function_app.sh

# 2. Start new Instances (containers) in the Cloud Unit
./ocapi -p -t customer1 -a run -f data_templates/run_azure_function_app.json -s payloads/azure_service_bus_queue.py -j 'app.servicebus_connection_str=""'

# 3. Access Cloud Unit storage                  
./ocapi -t customer1 -a list_files
./ocapi -t customer1 -a get_file -o - -i FILE_ID
                  

3. Sending to the Azure ServiceBus Queue

# 1. Install Python3 Azure module                  
apt-get install python3-azure

# 2. Use Python script to send item to Azure ServiceBus Queue
cd snippets/azure
python3 send_queue.py https://outdoorcompute.nl
                  

4. Demo