Estimate costs with the Microsoft Defender for Cloud cost calculator
In brief
The documentation now recommends adding assets from onboarded Azure environments, using scripts for environments not yet onboarded such as AWS or GCP, and uploading the CSV generated by the script. It also adds guidance for manually adding a custom environment and clarifies the permissions overview.
What Defender admins need to know
Administrators can use the updated instructions to select the appropriate workflow and prepare the required CSV and permissions.
Summaries are generated from the documentation change itself.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Add assets from onboarded environments
- In Azure environments, select the onboarded environment that you want to include in the cost calculation.
Add assets with a script
In Environment type, choose Azure, AWS, or GCP, and then copy the script to a new *.ps1 file.
The script only collects information that the user running it has access to.
Run the script in your PowerShell 7.X environment by using a privileged user account. The script collects information about your billable assets and creates a CSV file. It gathers information in two steps. First, it collects the current number of billable assets that usually stay constant. Second, it collects information about billable assets that can change a lot during the month. For these assets, it checks usage over the last 30 days to evaluate the cost. You can stop the script after the first step, which takes a few seconds. Or you can continue to collect the last 30 days of usage for dynamic assets, which might take longer for large accounts.
Upload the CSV file generated by the script into the wizard where you downloaded the script.
Select Defender for Cloud plans. The calculator estimates costs based on your selection and any existing discounts.
Required permissions for scripts
The following permissions overview describes the permissions required to run the scripts for each cloud provider.
Azure
Assign custom assets
To add a custom environment manually, complete the following steps:
- Choose a name for the custom environment.
- Specify the plans and the number of billable assets for each plan.
- Select Asset types that you want to include in the cost calculation.
@@ -2,8 +2,9 @@ title: Estimate costs with the Microsoft Defender for Cloud cost calculator description: Discover how to use the Microsoft Defender for Cloud Cost Calculator to estimate your cloud security expenses. ms.topic: how-to-ms.date: 05/24/2026+ms.date: 07/03/2026 ai-usage: ai-assisted+ms.custom: msecd-doc-authoring-1013 #customer intent: Customers will use this document to learn how to effectively estimate and manage their Microsoft Defender for Cloud costs. They will understand how to access and use the cost calculator, configure different plans and environments, add assets, and can adjust their cost estimates to optimize their cloud security expenses. --- @@ -33,7 +34,7 @@ On the first page of the calculator, select **Add Assets** to start adding asset ### Add assets from onboarded environments > [!TIP]-> This method is recommended for Azure environments because it covers all plans and provides faster results than using scripts.+> Adding assets from onboarded environments is recommended for Azure environments because it covers all plans and provides faster results than using scripts. 1. In **Azure environments**, select the onboarded environment that you want to include in the cost calculation. @@ -47,7 +48,7 @@ On the first page of the calculator, select **Add Assets** to start adding asset ### Add assets with a script > [!NOTE]-> This method is recommended for environments that aren't yet onboarded to Azure, such as AWS or GCP projects.+> Adding assets with a script is recommended for environments that aren't yet onboarded to Azure, such as AWS or GCP projects. 1. In **Environment type**, choose Azure, AWS, or GCP, and then copy the script to a new *.ps1 file. @@ -55,7 +56,7 @@ On the first page of the calculator, select **Add Assets** to start adding asset > The script only collects information that the user running it has access to. 1. Run the script in your PowerShell 7.X environment by using a privileged user account. The script collects information about your billable assets and creates a CSV file. It gathers information in two steps. First, it collects the current number of billable assets that usually stay constant. Second, it collects information about billable assets that can change a lot during the month. For these assets, it checks usage over the last 30 days to evaluate the cost. You can stop the script after the first step, which takes a few seconds. Or you can continue to collect the last 30 days of usage for dynamic assets, which might take longer for large accounts.-1. Upload this CSV file into the wizard where you downloaded the script. +1. Upload the CSV file generated by the script into the wizard where you downloaded the script. 1. Select **Defender for Cloud plans**. The calculator estimates costs based on your selection and any existing discounts. > [!NOTE]@@ -67,7 +68,7 @@ On the first page of the calculator, select **Add Assets** to start adding asset #### Required permissions for scripts -This section provides an overview of the permissions required to run the scripts for each cloud provider.+The following permissions overview describes the permissions required to run the scripts for each cloud provider. ##### Azure @@ -250,6 +251,8 @@ This read-level access lets you enumerate resource counts and gather metadata wi ### Assign custom assets +To add a custom environment manually, complete the following steps:+ 1. Choose a name for the custom environment. 1. Specify the plans and the number of billable assets for each plan. 1. Select **Asset types** that you want to include in the cost calculation. 