icon-zcspm.svg
ZCSPM

Estimating Assets Count

You can determine the number of assets which are protected by ZCSPM for all the cloud service providers.

Microsoft Azure

To determine the total number of assets on a Microsoft Azure subscription:

  1. Log in to the Azure Portal
  2. Go to Subscriptions, then click the subscription for which you want to estimate the assets.
  3. Click Resources to view all the resources in the subscription.

Alternatively, you can run a script on the Azure CloudShell to get the total number of assets and their listed categories.

  1. Open CloudShell.
  2. Download the script using the following command:
wget https://raw.githubusercontent.com/Cloudneeti/docs_cloudneeti/master/scripts/Get-AzureResourceCount.ps1 -O Get-AzureResourceCount.ps1
  1. Get the total number of assets and their categories for a subscription ID using the following command:
./Get-AzureResourceCount.ps1 -SubscriptionId <subscription ID>

Amazon Web Services

To determine the total number of assets on an AWS subscription:

  1. Open AWS CloudShell.
  2. Download the script using the following command:
wget https://raw.githubusercontent.com/Cloudneeti/docs_cloudneeti/master/scripts/count_aws_resources.py
  1. Get the total number of assets and their categories for an AWS account using the following command:
python3 count_aws_resources.py --accessKey <aws_access_key> --secretKey <aws_secret_key>

Google Cloud Platform Organization

To determine the total number of

You need the Organization Viewer and Security Center Admin Viewer permission.

  1. Log in to the GCP Cloud Console.
  2. Select your organization from the drop-down menu.
  3. Go to Security > Security Command Center.
  4. Select the ASSETS tab, then click RESOURCE TYPE to view the organization's assets aggregated by resource type.
  5. Click PROJECT, to view the organization's assets and their counts aggregated by projects.

Alternatively, you can run a script on the GCP CloudShell to get the total number of assets and their listed categories.

  1. Open the GCP CloudShell.
  2. Set your project by running the following command:
gcloud config set project <project_id>
  1. Download the script using the following command:
wget https://raw.githubusercontent.com/Cloudneeti/docs_cloudneeti/master/scripts/gcp-resource-count.sh
  1. Update the scripts permission by running the following command:
chmod +x gcp-resource-count.sh
  1. Get the total number of assets and their categories for an organization using the following command:
./gcp-resource-count.sh -o <gcp_organization_id>
Related Articles
Accessing ZCSPMAbout Supported BrowsersEstimating Assets CountAccepting the EUSAAbout Features and Quotas