---
title: How to enable Azure Automations & Actions
description: Find out how to deploy Automations from our Github repository, and connect them to your Hyperglance VM
---

[Skip to content](https://support.hyperglance.com/knowledge/how-to-enable-azure-automations-actions-in-hyperglance#main-content)

English

Show submenu for translations

[More support](https://support.hyperglance.com/knowledge/kb-tickets/new?hsLang=en)

![](https://support.hyperglance.com/hs-fs/hubfs/hyperglance.png?width=100&height=75&name=hyperglance.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [More support](https://support.hyperglance.com/knowledge/kb-tickets/new)
- [Contact Us](https://www.hyperglance.com/contact/)

[Contact Us](https://www.hyperglance.com/contact/)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Hyperglance Support](https://support.hyperglance.com/knowledge?hsLang=en)
2. [Setup & Configuration](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en)
3. [Azure](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#azure)

# How to enable Azure Automations & Actions

## Find out how to deploy Automations from our Github repository, and connect them to your Hyperglance VM

#### Pre-Requisites

Before you can deploy automations you will need:

1. Terraform CLI - [Install instructions](https://learn.hashicorp.com/tutorials/terraform/install-cli)
2. Azure CLI - [Install instructions](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
3. Func CLI - [Install instructions](https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local)

### <https://github.com/hyperglance/azure-rule-automations#azure-role-assignments>Azure role assignments

This deployment utilizes system assigned managed identities to limit the scope of the Azure function to the subscription it is deployed in.

To [assign Azure roles to a managed identity](https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal-managed-identity), you must have:

- Microsoft.Authorization/roleAssignments/write permissions

#### <https://github.com/hyperglance/azure-rule-automations#storage-account-permissions>Storage account permissions

The account under which Hyperglance run needs to be able to write to the Storage Account used by the automations. This may be achieved by granting Hyperglance the **Storage Account Contributor** built-in role.

#### <https://github.com/hyperglance/azure-rule-automations#quick-start>Quick Start

1. Follow the pre-requisite steps above.
2. Connect the Azure CLI to the Azure account that you wish to deploy the function in and set the subscription to use: az login
   
   **Note:** Guidance on authenticating to Azure can be found [here](https://docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli)
   
   Example:
   
   ```
    az login az account set --subscription <subscription name>
   ```
3. Clone our repo or [download the zip](https://github.com/hyperglance/azure-rule-automations/archive/refs/heads/master.zip)
   
   ```
    git clone https://github.com/hyperglance/azure-rule-automations.git
   ```
4. Navigate to the terraform deployment directory
   
   ```
   cd azure-rule-automations/deployment/terraform/automations
   ```

   Create a a file subscriptions.csv with the subscriptions you want to act on separated by a comma.
   
   ```
   MySubscription, AnotherSubscriptionOfMine, ...
   ```
5. Deploy the stack:
   
   > Terraform will prompt for the region you wish to deploy to and for final confirmation.
   
   ```
    terraform init terraform apply
   ```
6. Once complete, the storage account ID and will be returned:
   
   ```
   Apply complete! Resources: 11 added, 0 changed, 0 destroyed.Outputs:func_command = "func azure functionapp publish hyperglance-automations-legible-buffalo"storage_account_resource_id = "/subscriptions/<subscription ID>/resourceGroups/hyperglance-automations-legible-buffalo/providers/Microsoft.Storage/storageAccounts/rii5it09y343"
   ```

   *The storage account ID is required to configure automations in Hyperglance* *The func command is required to deploy the function code to the Azure function*
   
   Copy the storage account ID into the Hyperglance UI: **Settings ➔ Automations ➔ Azure ➔ Storage Account Resource ID** or visit this URL: [https://your-hyperglance-ip/#/admin/automations](https://your-hyperglance-ip/#/admin/automations)
7. Deploy the function code to the function
   
   **Note:** We're working on integrating this step into the Terraform deployment...
   
   Change directory to the root of the repo and execute the func command generated by Terraform:
   
   ```
    cd azure-rule-automations func azure functionapp publish hyperglance-automations-legible-buffalo
   ```
8. **That's it - Automations are now enabled against this subscription!**
   
     - Within Hyperglance click on any rule or visit the Advanced Search page to start exploring automations features.

- [Before You Start](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#main-content)

    - [Kubernetes](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#kubernetes)
    - [GCP](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#gcp)
    - [AWS](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#aws)
    - [Azure](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#azure)
- [Using Hyperglance](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#main-content)

    - [Automations](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#automations)
    - [Inventory & Diagrams](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#inventory-diagrams)
    - [Rules](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#rules)
    - [Cost Management](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#cost-management)
    - [Dashboards](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#dashboards)
    - [Security & Compliance](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#security-compliance)
- [Setup & Configuration](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#main-content)

    - [Updating & Migrating](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#updating-migrating)
    - [General](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#general)
    - [RBAC & Users](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#rbac-users)
    - [STIGS & FIPS](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#stigs-fips)
    - [AWS](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#aws)
    - [Azure](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#azure)
    - [Kubernetes](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#kubernetes)
    - [GCP](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#gcp)
    - [API](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#api)
    - [Legacy Docker-based deployments](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#legacy-docker-based-deployments)
    - [AI](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#ai)

[![Chill listening crop-3](https://support.hyperglance.com/hs-fs/hubfs/hyperglance.png?width=134&height=24&name=hyperglance.png "Chill listening crop-3")](https://www.hyperglance.com/)

2880 Zanker Road, Suite 203, San Jose, CA 95134

<https://www.linkedin.com/company/hyperglance/>

Copyright © 2025 Hyperglance. All rights reserved.