> For the complete documentation index, see [llms.txt](https://docs.prismacloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prismacloud.io/content-collections/data-security-posture-management/how-to-articles/calculate-the-amount-of-assets.md).

# Calculate the Amount of Assets

This article describes how to calculate the amount of classifiable data assets you have in the following cloud platforms:

* AWS
* Azure
* GCP

### AWS

There are two options for calculating the amount of managed assets in your AWS environment:

* Calculate the amount of assets via the AWS console
* Calculate the amount of assets via the AWS CloudShell

#### Calculate the amount of assets via the AWS console

**NOTE**: This process needs to be performed separately on each of your AWS accounts.

1. Login to your AWS Account.
2. In the search bar, type Tag Editor and select Resource Groups & Tag Editor. ![](/files/ePhGAlyO0KFWbTMduwH5)
3. In the side menu, select **Tag Editor**.\
   ![](/files/6i40RgZ5RRTjIzuzs64t)
4. In the **Regions** section, select **All Regions**. ![](/files/aryV43XNYtBJ9jiOIyf4)
5. In the **Resources Types**, add the following services:

```
AWS::S3::Bucket
AWS::DynamoDB::Table
AWS::RDS::DBCluster
AWS::RDS::DBInstance
AWS::EFS::FileSystem
AWS::OpenSearchService::Serverless
AWS::Redshift::Cluster
```

![](/files/j1vEFhbfC4tUMwAYWIkh)

1. Go to **Search Resources**.\
   The number next to  **Resource search results**  indicates the number of managed assets in your AWS environment.\
   ![](/files/9OqomPKH5e3goK0N8DYg)
2. Optional: Export the resource list as a .CSV file. ![](/files/AKz1SALnO8ER5MFVPQvv)

#### Calculate the amount of assets via the AWS CloudShell

**NOTE**: This process needs to be performed separately on each of your AWS accounts.

1. Login to your AWS Account.
2. Open the [CloudShell terminal](https://console.aws.amazon.com/cloudshell/home).
3. Run the following command:

   ```
   curl -s https://onboarding.dig.security/aws/dig-aws-asset-
   counter/single-profile-cloudshell/AACDig-single-profile-
   cloudshell.sh | bash
   ```
4. View the results to determine the number of assets there are in the current account. ![](/files/Za0jjsrMCR3MstjYz5oE)

### Azure

Calculate the amount of managed assets in your Azure environment:

1. From the relevant tenant in the Azure portal, go to the [Resource Graph Explorer](https://portal.azure.com/#view/HubsExtension/ArgQueryBlade).
2. In the Scope drop down, located at the top left of the screen, select the relevant scope for the query (Directory \ Management group \ Subscription). ![](/files/5B9XJ5IvUHgiY0kchZ8z)
3. Select New Query.
4. Copy the following query and click Run Query.

```
Resources | where type in~ ("microsoft.storage/storageaccounts", "microsoft.documentdb/databaseaccounts",
"microsoft.sql/servers",
“microsoft.sql/managedinstances”, 
"microsoft.dbformysql/servers", "microsoft.dbformysql/flexibleservers", "microsoft.dbforpostgresql/servergroupsv2"
"microsoft.dbforpostgresql/flexibleservers", "microsoft.dbforpostgresql/servers", "microsoft.dbformariadb/servers") | summarize count()
```

When the query finishes running, the number of data assets is displayed under count\_\
![](/files/3VQ4dlUC2K0GdD62dfAm)

### GCP

Calculate the amount of managed assets in your GCP environment.

1. In your GCP account, go to the [Cloud Asset Inventory](https://console.cloud.google.com/iam-admin/asset-inventory/resources?pageState=\(%22assetTypeFacets%22:\(%22f%22:%22storage.googleapis.com/Bucket,sqladmin.googleapis.com/Instance,file.googleapis.com/Instance,bigquery.googleapis.com/Dataset,bigtableadmin.googleapis.com/Table,spanner.googleapis.com/Database,redis.googleapis.com/Instance,memcache.googleapis.com/Instance,firestore.googleapis.com/Database%22\)\)).
2. Select the required organization (recommended) or specific project, depending on your requirements.\
   ![](/files/Kp92qrlVlvRtnSZ7dKHM)
3. Go to the Resource tab.\
   ![](/files/F1LkiSoLt645xv4HAfmy)
4. In the **Filter results** section, located next to **Resource type**, click **View more** (see above image).
5. In the  **Select resource type**  area, click **By Count**.
6. Select the following resources from the list, and click **Apply**.
   * storage.Bucket
   * sqladmin.Instance
   * file.Instance
   * bigquery.Dataset
   * bigtableadmin.Table

**NOTE**: If any of the above resources does not appear in the list, it indicates the count is Alternatively, use [this link](https://console.cloud.google.com/iam-admin/asset-inventory/resources?pageState=\(%22assetTypeFacets%22:\(%22f%22:%22storage.googleapis.com/Bucket,sqladmin.googleapis.com/Instance,file.googleapis.com/Instance,bigquery.googleapis.com/Dataset,bigtableadmin.googleapis.com/Table,spanner.googleapis.com/Database,redis.googleapis.com/Instance,memcache.googleapis.com/Instance,firestore.googleapis.com/Database%22\)\)) which already includes the above filters (you will need to re-select the required organization/project). Several results are displayed.

To export the results, click **Download CSV**.

![](/files/XIp311d1SAV34nHT9TPn)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prismacloud.io/content-collections/data-security-posture-management/how-to-articles/calculate-the-amount-of-assets.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
