---
agentTools:
  projectIndex: https://help.logichub.com/llms.txt
---

# Azure Compute

Version: 2.0.0

Whether you are building new applications or deploying existing ones, Azure compute provides the infrastructure you need to run your apps

# Connect Azure Compute with LogicHub

1. Navigate to **Automations** > **Integrations**.
2. Search for **Azure Compute**.
3. Click **Details**, then the **+** icon. Enter the required information in the following fields.
   * **Label**: Enter a connection name.
   * **Reference Values**: Define variables here to templatize integration connections and actions. For example, you can use <https://www.{{hostname}}.com> where, hostname is a variable defined in this input. For more information on how to add data, see ['Add Data' Input Type for Integrations](add-an-integration-connection#add-data-input-type-for-integrations).
   * **Verify SSL**: Select option to verify connecting server's SSL certificate (Default is Verify SSL Certificate).
   * **Remote Agent**: Run this integration using the LogicHub Remote Agent.
   * **Cloud \_environment**: Environment to which connection has to be made.
     * There are four cloud environments (AZURE\_PUBLIC\_CLOUD, AZURE\_CHINA\_CLOUD, AZURE\_US\_GOV\_CLOUD, AZURE\_GERMAN\_CLOUD). AZURE\_PUBLIC\_CLOUD is the default cloud environment.
   * **Client\_id**: Application Client ID.
   * **Password**: Service principal password.
   * **Azure Tenant\_id**: Directory ID of the application.
4. After you've entered all the details, click **Connect**.

# Actions for Azure Compute

## Launch Virtual Machine

Launch the VM with the passed configuration.

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "1-0": "Resource Group Column Name",
    "1-1": "Column name from parent table to lookup value for resource group.",
    "2-0": "VM Name Column Name",
    "2-1": "Column name from parent table to lookup value for VM name.",
    "3-0": "Configuration Column Name",
    "3-1": "Column name from parent table to lookup value for configuration JSON string of the VM.",
    "0-0": "Subscriber Id Column Name",
    "0-1": "Column name from parent table to lookup value for subscriber ID.",
    "0-2": "Required",
    "1-2": "Required",
    "2-2": "Required",
    "3-2": "Required"
  },
  "cols": 3,
  "rows": 4
}
[/block]

### Output

A JSON object containing Success/Failure message.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/4edf62e-Screenshot_2019-11-22_at_5.00.38_PM.png",
        "Screenshot 2019-11-22 at 5.00.38 PM.png",
        1026,
        222,
        "#c3cbd0"
      ]
    }
  ]
}
[/block]

## Create Resource Group

Create the resource group on which resource can be launched.

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "0-0": "Subscriber Id Column Name",
    "0-1": "Column name from parent table to lookup value for subscriber ID.",
    "1-0": "Resource Group Column Name",
    "1-1": "Column name from parent table to lookup value for resource group.",
    "2-0": "Resource Group Region Column Name",
    "2-1": "Column name from parent table to lookup value for resource group region.",
    "0-2": "Required",
    "1-2": "Required",
    "2-2": "Required"
  },
  "cols": 3,
  "rows": 3
}
[/block]

### Output

A JSON object containing Success/Failure message.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/8bc3cde-Screenshot_2019-11-22_at_4.55.27_PM.png",
        "Screenshot 2019-11-22 at 4.55.27 PM.png",
        1016,
        208,
        "#bdc4c9"
      ]
    }
  ]
}
[/block]

## Start Virtual Machine

Start the VM.

### Input Field

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "0-0": "Subscriber Id Column Name",
    "0-1": "Column name from parent table to lookup value for subscriber ID.",
    "1-0": "Resource Group Column Name",
    "1-1": "Column name from parent table to lookup value for resource group.",
    "2-0": "VM Name Column Name",
    "2-1": "Column name from parent table to lookup value for VM name.",
    "0-2": "Required",
    "1-2": "Required",
    "2-2": "Required"
  },
  "cols": 3,
  "rows": 3
}
[/block]

### Output

A JSON object containing Success/Failure message.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/820a765-Screenshot_2019-11-22_at_5.00.52_PM.png",
        "Screenshot 2019-11-22 at 5.00.52 PM.png",
        1010,
        206,
        "#c7c7c9"
      ]
    }
  ]
}
[/block]

## Stop Virtual Machine

Stop the VM.

### Input

Choose a connection that you have previously created and then fill in the necessary information in the following input fields to complete the connection.

[block:parameters]
{
  "data": {
    "h-0": "Input Name",
    "h-1": "Description",
    "h-2": "Required",
    "0-0": "Subscriber Id Column Name",
    "0-1": "Column name from parent table to lookup value for subscriber ID.",
    "1-0": "Resource Group Column Name",
    "1-1": "Column name from parent table to lookup value for resource group.",
    "2-1": "Column name from parent table to lookup value for vm name.",
    "2-0": "VM Name Column Name",
    "0-2": "Required",
    "1-2": "Required",
    "2-2": "Required"
  },
  "cols": 3,
  "rows": 3
}
[/block]

### Output

A JSON object containing Success/Failure message.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/0d1869a-Screenshot_2019-11-22_at_5.01.01_PM.png",
        "Screenshot 2019-11-22 at 5.01.01 PM.png",
        1002,
        204,
        "#bfc6cc"
      ]
    }
  ]
}
[/block]

# Release Notes

* `v2.0.0` - Updated architecture to support IO via filesystem