---
title: Azure extensions for infrastructure
source: https://docs.newrelic.com/docs/infrastructure/infrastructure-agent/linux-installation/azure-extensions-infrastructure
---

You can install our [infrastructure](https://docs.newrelic.com/docs/welcome-new-relic-infrastructure) agent using [Microsoft Azure extensions](https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/overview).

**What is an Azure extension?**

Azure virtual machine (VM) extensions are small applications that provide post-deployment configuration and automation tasks on Azure VMs. For example, if a virtual machine requires software installation, anti-virus protection, or a script to be run, a VM extension can be used. Azure CLI, PowerShell, Azure Resource Manager templates, and the Azure portal can all run Azure VM extensions. Extensions can be bundled with a new VM deployment, or run against any existing system.

New Relic uses these extensions to facilitate the installation of the infrastructure agent. This removes the need for manually updating our agent and, more importantly, automatically scales the agent with your [Azure scale sets](https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/overview).

## Install infrastructure using Azure extensions [#install-infra-azure-extensions]

To install the agent using the Azure extension on supported [operating systems](https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/get-started/requirements-infrastructure-agent/).

1.  Go to any Azure VM, Azure scale set, or Azure Service Fabric using scale sets, and select the **Extensions** tab.

    ![azure_ext01.png](https://docs.newrelic.com/images/infrastructure_screenshot-crop_azure-extensions-tab.webp "azure_ext01.png")
2.  Select the **New Relic infrastructure** extension.

    ![azure_ext02.png](https://docs.newrelic.com/images/infrastructure_screenshot-crop_azure-nr-infrastructure-extension.webp "azure_ext02.png")
3.  Follow the instructions, and add your license key.

    ![azure_ext03.png](https://docs.newrelic.com/images/infrastructure_screenshot-crop_azure-nr-license-key.webp "azure_ext03.png")

    > #### 💡 TIP
    >
    > If you automate the installation, remember to pass your license key with the `NR_LICENSE_KEY` variable.
    > You can use [configurations via environment variables](https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/configuration/configure-infrastructure-agent/#precedence) (`NRIA_` format) to customize any agent configuration.
