Skip to main content
Azure

Learn to integrate Azure with Torq: Tenant/Client IDs & secret setup to execute Azure CLI commands in workflows.

Updated over 2 weeks ago

Use the Azure integration to run Azure CLI commands as steps in workflows.

Torq enables quick and easy integration with Microsoft Azure, so you can automate anything and everything within moments. Torq's public Azure and Azure Blob steps include:

  • Run Commands on Azure CLI.

  • Delete File

  • Write File

  • Check if File Exists

  • Read File

If you don't see a step you need, you can create your own in various ways, such as using the Send an HTTP Request step or Torq’s Step Builder, and share it across your organization.

Azure AD steps use the Microsoft 365 steps integration.

To use Azure steps in Torq workflows, look here.

Use Azure Steps in Torq

Step One: Find or Create an Application

  1. In Azure Portal: Go to the Azure portal and go to App Registrations.

  2. App Registrations: Under Manage, click App Registrations.

    1. If you already have an application you would like to integrate with Torq, select it and make sure it is assigned to an Azure resource (e.g., a Resource Group, Subscription, Virtual Machine, etc.).

    2. If you do not already have an application, click New Registration.

      1. Give the integration a meaningful name.

      2. Select Accounts in this organizational directory only

      3. No redirect URI is necessary.

      4. Click Register.

  3. Assign to IAM Role: Within the app you just created, go to Access Control (IAM) and click Add > Add role assignment.

    1. Click Privileged administrator roles.

    2. Click on the appropriate role for the functionality you desire to automate. We recommend the Contributor role.

    3. Click Members and search for the application you just created.

    4. Click Select.

    5. Go to Review + Assign and ensure you have selected the appropriate application. Click Review + Assign to finalize.

  4. Get App Details:

    1. Go to the application's Overview page.

    2. Copy the tenant ID. In Azure, the field is Directory (tenant) ID.

    3. Copy the client ID. In Azur,e the field is Application (tenant) ID.

Screenshot showing how to get client id and tenant id in Azure Active Directory.

Step Two: Create a Client Secret

  1. Go to App Registrations: From App registrations, select the application from earlier.

  2. Go to Certificates & Secrets: Under Manage, click Certificates & secrets.

  3. Create a New Secret: Click New client secret.

    1. Give the secret a meaningful description/name.

    2. Set the expiration time according to your organization's best practices.

    3. Click Add.

    Screenshot showing how to create or copy a client secret in Azure AD.

Step Three: Create an Azure Steps Integration in Torq

  1. Navigate to the Integration: In Torq, go to Build > Integrations > Steps > Azure and click Add.

  2. Enter the Details:

    1. Give the integration a meaningful name. This cannot be changed later.

    2. Enter the Tenant ID you copied earlier.

    3. Enter the Client ID you copied earlier.

    4. Enter the Client Secret you created earlier.

  3. Finalize: Click Add.


FAQs


Templates

Now that you've added your integration, check out these templates specially crafted by Torq's security experts. Visit Torq's template library for more.

Did this answer your question?