# Installation

{% embed url="<https://developer.hashicorp.com/terraform/tutorials/azure-get-started/install-cli>" %}

{% hint style="info" %}
Azure Cli should be installed in local system to use Azure resources via API&#x20;
{% endhint %}

{% tabs %}
{% tab title="Debain based Linux Installation " %}

```bash
sudo apt update && sudo apt install -y gnupg software-properties-common
```

{% endtab %}

{% tab title="Second Tab" %}

```
// Some code
```

{% endtab %}
{% endtabs %}

{% code title="Install  HashiCorp GPG key" fullWidth="false" %}

```bash
wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg

```

{% endcode %}

{% code title="Verify the key's fingerprint." %}

```bash
gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint

```

{% endcode %}

{% code title="Add the official HashiCorp repository to your system." %}

```bash
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list

```

{% endcode %}

{% code title="Download the package from HashiCorp." %}

```bash
sudo apt update
```

{% endcode %}

{% code title="Install Terraform " %}

```bash
sudo apt install terraform
```

{% endcode %}

{% code title="Verify Installation " %}

```bash
terraform -help
```

{% endcode %}

<figure><img src="/files/EfW9BmanrdzmqulHHQwf" alt=""><figcaption><p>Installation Verification </p></figcaption></figure>

## <mark style="background-color:purple;">VS Code Extension Installation</mark>&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://azsec.troubleshooterclub.in/iaac/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
