Skip to main content

Azure Integration Guide

Vega requires access to your Azure subscriptions to query the Cost and Usage Metric APIs. When you use a 3rd-party software application with your Azure Subscription, you need to create an application registration. This registration is the first step of the process in allowing an Azure Subscription to be imported into the Vega Platform.

NOTE: The following can be applied at Management Group levels to simplify deployment across large numbers of subscriptions.

New App Registration: Add Vega to Subscription

  • Log into your Azure Portal (https://portal.azure.com/).
  • Select "Azure Entra ID".
  • Once you're on the Entra ID Screen, select “App Registrations” from the left navigation menu.
  • On the App Registration Screen, click the “+ New registration” on the far left of the top navigation bar. You will have to enter a Name, we suggest “VegaAzureApp”.
  • Select the supported account type of “Accounts in the organizational directory only” – single tenant.
  • Next, select your Redirect URI. This should be “Single-page application (SPA)” with a URL = "https://portal.vegacloud.io/azureauth".
  • Once all these values are provided, select “Register” and you've finished creating the Vega Azure App.
  • Navigate to the "Certificates and secrets" section of the new app registration. Under "Client secrets" click "+ New client secret".
  • Create a secret with adequate expiry, and then note the secret VALUE (Not the ID) for later steps.

Assign Read Only Role

NOTE: It is recommended that you use Management Groups to avoid creating Vega resources for each subscription. Perform the steps below within your Azure Management Group(s), or repeat for each subscription if Management Groups are not available.

Now that we have an application registration, we need to control the amount of access we grant to the application. We will apply the built in Monitoring and Billing Reader role to the Management Group, or per subscription if required.

  • Search "Management groups" and find your group, otherwise select “Subscriptions”, then select the specific subscription being imported. Select “Access control (IAM)" from the left side navigation menu.
  • Within Management Group or Subscription, Select “Access control (IAM)" from the left side navigation menu.
  • Select “+ Add” from the top navigation menu and select “Add Role Assignment
  • Once the modal opens, search for “Monitoring Reader” and select “Next
  • Add a Description that will help identify what the role is used for, “Vega Platform Access Role”.
  • In the Members section, click "+ Select members" and search "Vega" or the name you used. Click the name of the App you created in step 1 and click "Select".
  • Click "Review + assign" to complete the role assignment step.
  • Repeat the above steps for adding “Billing reader

Assign Operate Role (for Operate SKU customers)

NOTE: This step is only required for customers with the Operate SKU.

  • Follow the steps above to create an app registration and assign the same roles as above.
  • In addition to the above roles you will need to create a custom role for the Operate SKU. This role will need to be created at either the management group level or subscription level based on your use case.
  • To create a custom role, navigate to the “Access control (IAM)” section of the management group or subscription.
  • Select “+ Add” from the top navigation menu and select “Add Custom Role
  • Once the modal opens, provide a name for the role, “VegaOperateRole”.
  • In the "JSON" section, add the permissions under 'actions' section: Azure Custom Role Creation A helpful hotkey to format the JSON is ctrl+k+f (format) after doing ctrl+a (select all text) to format.
  • Click "Save" to save your changes.
  • Click "Review + Create" to complete the role creation step.
  • Now that the Role is created, you can assign it to the Vega App Registration
  • Back in "IAM", click "+ Add" and select "Add Role Assignment"
  • Search for the custom role you created, “VegaOperateRole” and select “Next
  • In the Members section, click "+ Select members" and search "Vega" or the name you used. Click the name of the App you created in step 1 and click "Select".
  • Click "Review + assign" to complete the role assignment step.

We will start ingesting your Azure data once you provide Vega the following information:

  • App Registration Name
  • Tenant ID
  • App/Client ID
  • Subscription associated with App Registration
  • Secret Value associated with App Registration
  • List of Azure subscription Names and ID's for all subscriptions

Alternatively, you can use the Vega Platform to add your Azure subscriptions yourself by following the steps below.

Adding Azure Subscriptions to the Vega Platform

Azure Account Create

Step 2: Fill in the required fields

  • Vega account alias: A friendly name for the account
  • Subscription ID: The Azure Subscription ID
  • Tenant ID: The Azure Tenant ID
  • Client ID: The Azure App/Client ID
  • Client Secret Value: The Azure Secret Value

If you aren't ready for your accounts to be ingested by Vega yet, you can toggle the 'Enabled' switch to 'Disabled' to prevent data ingestion.

NOTE: If you have multiple subscriptions, repeat the above steps for each subscription or alternatively use the 'Bulk Import' feature to add multiple subscriptions at once.