;

How to install VCL on Microsoft Azure Cloud via CLI /command line interface

Modified on Wed, 11 May 2022 at 09:06 AM

Virtual Central Lock System requirements

General information for Azure on Microsoft Web-Portal: https://portal.azure.com/#home


To install Tosibox VCL via CLI you have to install CLI to your computer and perform 3 steps:


1. Install CLI

2. Log in to Azure via CLI

3. Run VCL installer script


Important: VCL WAN and LAN interfaces have to be in different subnets! It is not allowed to use same subnet!


1. Azure CLI install

Azure CLI general information: https://docs.microsoft.com/de-de/cli/azure/install-azure-cli?view=azure-cli-latest


Windows user install cli software package


MAC user install Homebrew: https://brew.sh/

brew update

brew install azure-cli

brew upgrade azure-cli


Ubuntu user install CLI:
sudo apt-get install azure-cli
login available now


Check current cli version on your machine:

Terminal command: $ az --version

azure-cli 2.7.0 *

command-modules-nspkg 2.0.3

core   2.7.0 *

nspkg 3.0.4

telemetry 1.0.4 *

 


2. Log in to Azure via CLI

Log in with az login command in terminal, full automatic process by re-directing you to Webbrowser for further credential input, etc


LOG:

user:~ user$ az login

Note, we have launched a browser for you to login.

You have logged in. Now let us find all the subscriptions to which you have access...



3. Run VCL installer script tosibox-virtual-central-lock.sh


You can download script from;

https://downloads.tosibox.com/VCL/TOSIBOX_Virtual_Central_Lock_Cloud_Install.zip


user$ ./tosibox-virtual-central-lock.sh install

 

Here is the full LOG:

=======================================================

STEP 1: TOSIBOX(R) Virtual Central Lock deployment

In order to install VCL, you need to enter the

activation code that can be ordered from

sales@tosibox.com

 

Notice, that you need TOSIBOX(R) Key in order to start

using TOSIBOX(R) Ecosystem.

 

You may purchase TOSIBOX(R) Key from our Sales Team!

=======================================================

 

Enter a unique name for your deployment in lowercase (empty to cancel): newdep1

Using name: newdep1 for deployment..

 

If you want to get your IP automatically from ipinfo.io, use switch -i auto

Enter your source IP address (default 0.0.0.0/0 to allow all)

Allowed IP-address is: 0.0.0.0/0

 

Select the cloud service (number) to be used.

1) aws

2) az

#? 2


Enter the location (number) for your instance:

 1) eastasia                   15) australiasoutheast           29) australiacentral

 2) southeastasia        16) southindia                            30) australiacentral2

 3) centralus                 17) centralindia           31) uaecentral

 4) eastus                      18) westindia                32) uaenorth

 5) eastus2                    19) canadacentral      33) southafricanorth

 6) westus                     20) canadaeast                          34) southafricawest

 7) northcentralus      21) uksouth                   35) switzerlandnorth

 8) southcentralus      22) ukwest                    36) switzerlandwest

 9) northeurope                         23) westcentralus      37) germanynorth

10) westeurope                         24) westus2                  38) germanywestcentral

11) japanwest                            25) koreacentral         39) norwaywest

12) japaneast               26) koreasouth                          40) norwayeast

13) brazilsouth                          27) francecentral

14) australiaeast        28) francesouth

#? 9

Using location: northeurope

 

   

Creating an Azure deployment for TOSIBOX(R) Virtual Central Lock

Name                CloudName    SubscriptionId                        State    IsDefault

------------------  -----------   ------------------------------------   -------  -----------

Azure-Abonnement 1  AzureCloud    xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx   Enabled  True

Pay-As-You-Go       AzureCloud   xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx  Enabled   False

Enter subscription ID to use (default: xxxxx-xxxx-xxxx-xxxx-xxxxxxxxx): 

Creating deployment template...


[**Upcoming breaking change**]: a new parameter "scope-type" will be introduced to commands in this group and will be mandatory. Scope type will be an enum with four values: ResourceGroup, Subscription, ManagementGroup, Tenant. Adding this parameter allows us to use one command for all Azure Resource Manager template deployments but still determine the intended level of scope.


Creating storage account for VHD...


CreationTime                       EnableHttpsTrafficOnly     Kind     Location     Name            PrimaryLocation    ProvisioningState    ResourceGroup    StatusOfPrimary

--------------------------------  ------------------------  -------   -----------  --------------  -----------------  -------------------  ---------------  -----------------

2020-04-01T14:43:42.197791+00:00  True                      Storage  northeurope   newdep1storage  northeurope        Succeeded            newdep1          available

Creating blob container for VHD...

Created

---------

True

Copying blob to the VHD container from URL...

Status

--------

pending

 

Copying blob to storage container. This step may take up to 15-30 minutes...............................................................................................................................................................

Blob copy finished.

Creating VCL OS disk...

Deploying VCL...

rm: az_*.json: No such file or directory

 

=======================================================

STEP 2: Activation

Next we start activation of the Virtual Central Lock

This will phase take about 10 minutes and as it will

Download the latest software packages from TOSIBOX

software repository.

=======================================================

 

Name: newdep1 given..

Using name: newdep1 for deployment..

 

Using az for deployment..

Enter activation code (empty to cancel): --- you get activiation code from support team---

 

The activation url is: http://x.x.x.x/cgi-bin/vcl-activation

Activating license..

  % Total    % Received % Xferd  Average Speed   Time     Time     Time  Current

                                 Dload  Upload    Total   Spent    Left   Speed

100     11    0    11     0     0      30      0 --:--:-- --:--:-- --:--:--    30

 

 

 

 

Waiting until VCL installs.

Activation in progress.

Installing license..

Downloading software.......................

Installing software..................................

Waiting until the VCL restarts.

 

=======================================================

STEP 3: Remote matching

In order to start using the Virtual Central Lock,

start your TOSIBOX(R) Key and select:

 

 Devices -> Remote Matching

 

After that enter the remote maching code, and

access your TOSIBOX(R) Virtual Central Lock by

connecting your TOSIBOX(R) Key and accessing the

admin user interface.

=======================================================

 

Please wait until the VCL system restarts (may take 5-10 minutes).

Waiting for the remote matching code....................................

 

Use remote matching code to serialize : ---code is shown in your installation---

Finished.

If you are waiting for the remote matching code in azure, just ctrl-c and  run the following command

az vm boot-diagnostics get-boot-log --name vcl --resource-group [YOUR RESOURCE GROUP NAME] 2>/dev/null | strings | grep "remote matching code" | tail -1

 

user:cloud_templates user


Finished!

 

A screenshot of a computer

Description automatically generated