# Estimating usage

## Introduction

This knowledge base article describes how to collect a summary of Azure resources grouped by resource type using the current Azure portal experience. Vectra requires a count of Azure resources by resource type across one or more subscriptions in order to estimate pricing. The steps below explain how to generate this information and export it as a CSV file using Azure Resource Graph. The exported CSV will contain one row per Azure resource type with a corresponding count. This file can be provided directly to the Vectra sales or support team.

## Requirements

* Access to the Azure Portal
* Permissions to view resources across the relevant subscriptions

## Steps to Follow

* Log into the [Azure portal](https://portal.azure.com/).
* In the top search bar, search for and the select **All Resources**.
* Ensure the **Subscription** filter includes all relevant subscriptions.
  * Leave **Resource Group**, **Type**, and **Location** set to **All**.

![](https://content.gitbook.com/content/HJ1ltuWFvsArFWtevnRn/blobs/qYrOJm50CxnrKgMdBWpD/rtaImage)

* From the top command bar, select **Open query**. This will open the Azure Resource Graph Explorer.
* Click **New query** to clear any existing query.
* Paste in the following to generate a summary of resource types, ordered by count.

```markup
Resources
| summarize count() by type
| order by count_ desc
```

![](https://content.gitbook.com/content/HJ1ltuWFvsArFWtevnRn/blobs/KDrtr5HVffWQKCKA5tg7/rtaImage)

* Next click **Run query** to run the query.

![](https://content.gitbook.com/content/HJ1ltuWFvsArFWtevnRn/blobs/lIw5ipRorTTP7fsGi0gS/rtaImage)

* Finally, click **Download formatted results as CSV**.
* Provide the .csv file to your Vectra account team so they can produce a pricing estimate for you.
