I want to find the devices in my azure environment that are using the most resources. I then want to find out how much these devices are costing us a month. What is the best way to do this?

Tim A 20 Reputation points
2024-12-08T13:31:55.39+00:00

I'm new to azure. I have hundreds of devices on my work network and want to find the devices that are the most active and using the most resources. I want to use the most active device as a baseline so that I know the maximum amount that I can expect to pay a month for one device. What is the best and most efficient way to do this. Basically, I want to find out:

  1. Most resource heavy and active devices.
  2. How much these devices are costing us.

Thanks!

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,835 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,365 questions
Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
1,195 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,646 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 29,885 Reputation points MVP
    2024-12-08T15:14:06.8166667+00:00

    You can use the following approach:


    Step 1: Enable Monitoring and Logging

    1. Integrate Azure Monitor:
      • Use Azure Monitor to collect and analyze performance data from your devices. Azure Monitor can ingest logs from various sources, including devices running Azure Arc or Azure Virtual Desktop.
    2. Set Up Log Analytics Workspace:
      • Create a Log Analytics Workspace in Azure to store and query the data collected by Azure Monitor. This will help you analyze device activity and identify resource-heavy devices.

    Step 2: Collect and Analyze Data

    1. Install Agents on Devices:
      • Install the Azure Monitor agent or Diagnostic extensions on devices to collect performance metrics such as CPU, memory, disk, and network usage.
    2. Enable Resource-Specific Monitoring:
      • For virtualized environments (e.g., Azure Virtual Machines or Virtual Desktops), enable diagnostic settings to monitor individual resource consumption.
    3. Analyze Logs and Metrics:
      • Use the Kusto Query Language (KQL) in Log Analytics to query device activity data. For example:
             Perf
             | where CounterName in ("% Processor Time", "Available MBytes")
             | summarize AvgValue = avg(CounterValue) by Computer, CounterName
             | order by AvgValue desc
        
      • This query identifies devices with high CPU or memory usage.

    Step 3: Calculate Costs

    1. Export Usage Data:
      • Use Azure Cost Management and Billing to view and export the usage and cost data associated with Azure resources.
    2. Break Down Costs Per Device:
      • If devices are onboarded to Azure Arc, use resource tags or logs to associate costs with specific devices.
    3. Estimate Monthly Cost for High-Usage Devices:
      • Use Azure Pricing Calculator or historical cost data to extrapolate monthly costs for the most active devices.

    Step 4: Use Results as Baseline

    1. Identify Baseline Devices:
      • Based on the analysis, select the most resource-heavy device as a baseline. Use its metrics to estimate the maximum expected cost.
    2. Plan for Optimization:
      • Implement policies for autoscaling, resource quotas, or optimization based on insights. For example:
        • Restrict background tasks on high-usage devices.
        • Optimize workloads using Azure’s cost-saving features, such as Reserved Instances.

    Tools and Services Summary | Tool/Service | Purpose | |--------------------------------|-----------------------------------------------------------------------------------------------| | Azure Monitor | Monitor performance and activity of devices. | | Log Analytics Workspace | Analyze resource usage using KQL queries. | | Azure Arc | Extend Azure management and monitoring to non-Azure devices. | | Azure Cost Management | Analyze and predict costs associated with active devices. | | Azure Pricing Calculator | Estimate monthly costs for specific device workloads. |


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.