---
title: Enabling 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. [Integrations](https://support.hyperglance.com/knowledge/integrations?hsLang=en)
3. [Automations Setup](https://support.hyperglance.com/knowledge/integrations?hsLang=en#automations-setup)

# Enabling 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)

### 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

#### 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.

#### Quick Start

1. 1
   
   Follow the pre-requisite steps above.
2. 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. 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. 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. 5
   
   Deploy the stack:
   
   > Terraform will prompt for the region you wish to deploy to and for final confirmation.
   
   ```
    terraform init terraform apply
   ```
6. 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*
   
   In Hyperglance, go to **Settings › Automations** and expand **Automations for Azure**. Enter the **storage\_account\_resource\_id** as the **Storage account Resource ID**, and the **Application ID** and **Key** (client secret) of an App Registration that can read the storage account, such as the one Hyperglance uses for your [Azure connection](https://support.hyperglance.com/knowledge/azure-collector-setup?hsLang=en). Click **Save**.
7. 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. Done: That's it - automations are now enabled against this subscription!

Next steps

- Within Hyperglance click on any rule or visit the Advanced Search page to start exploring automations features.

- [Getting Started](https://support.hyperglance.com/knowledge/getting-started?hsLang=en#main-content)

    - [Start Here](https://support.hyperglance.com/knowledge/getting-started?hsLang=en#start-here)
    - [Installation & Deployment Guides](https://support.hyperglance.com/knowledge/getting-started?hsLang=en#installation-deployment-guides)
    - [Cloud Marketplaces](https://support.hyperglance.com/knowledge/getting-started?hsLang=en#cloud-marketplaces)
- [Using Hyperglance](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#main-content)

    - [Dashboards & Reports](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#dashboards-reports)
    - [Cost Analysis](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#cost-analysis)
    - [Cost Optimization](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#cost-optimization)
    - [Cost Allocation & Budgets](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#cost-allocation-budgets)
    - [Infrastructure Diagrams](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#infrastructure-diagrams)
    - [Search & Rules](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#search-rules)
    - [AI & Agents](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#ai-agents)
    - [Automations](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#automations)
    - [Security & Compliance](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#security-compliance)
- [Integrations](https://support.hyperglance.com/knowledge/integrations?hsLang=en#main-content)

    - [AWS](https://support.hyperglance.com/knowledge/integrations?hsLang=en#aws)
    - [Azure](https://support.hyperglance.com/knowledge/integrations?hsLang=en#azure)
    - [GCP](https://support.hyperglance.com/knowledge/integrations?hsLang=en#gcp)
    - [Kubernetes](https://support.hyperglance.com/knowledge/integrations?hsLang=en#kubernetes)
    - [AI Providers](https://support.hyperglance.com/knowledge/integrations?hsLang=en#ai-providers)
    - [Notifications & Ticketing](https://support.hyperglance.com/knowledge/integrations?hsLang=en#notifications-ticketing)
    - [Automations Setup](https://support.hyperglance.com/knowledge/integrations?hsLang=en#automations-setup)
- [System Administration](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#main-content)

    - [Users, Roles & SSO](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#users-roles-sso)
    - [Security & Networking](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#security-networking)
    - [Updates & Maintenance](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#updates-maintenance)
    - [API Keys](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#api-keys)
    - [Legacy Docker-based deployments](https://support.hyperglance.com/knowledge/system-administration?hsLang=en#legacy-docker-based-deployments)
- [Reference](https://support.hyperglance.com/knowledge/reference?hsLang=en#main-content)

    - [Release Notes](https://support.hyperglance.com/knowledge/reference?hsLang=en#release-notes)
    - [Architecture](https://support.hyperglance.com/knowledge/reference?hsLang=en#architecture)
    - [Supported Services](https://support.hyperglance.com/knowledge/reference?hsLang=en#supported-services)
    - [Rule Catalog](https://support.hyperglance.com/knowledge/reference?hsLang=en#rule-catalog)
    - [API Reference](https://support.hyperglance.com/knowledge/reference?hsLang=en#api-reference)
    - [Conformance & Trust](https://support.hyperglance.com/knowledge/reference?hsLang=en#conformance-trust)
- [Pricing & Licensing](https://support.hyperglance.com/knowledge/pricing-licensing?hsLang=en#main-content)

    - [Pricing & Purchasing](https://support.hyperglance.com/knowledge/pricing-licensing?hsLang=en#pricing-purchasing)
    - [Managing Your License](https://support.hyperglance.com/knowledge/pricing-licensing?hsLang=en#managing-your-license)

[![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.