Calculadora Azure

Azure Cost Estimator

This calculator provides a simplified estimate of monthly costs for common Azure services, including Virtual Machines, Blob Storage, and Outbound Data Transfer. Please note that actual Azure pricing can vary based on region, specific service tiers, discounts, and other factors not covered in this basic estimator. This tool is for illustrative purposes only.

Virtual Machine Configuration

B2ms (2 vCPU, 8GB RAM) D2s_v3 (2 vCPU, 8GB RAM) E4s_v3 (4 vCPU, 32GB RAM)
Linux Windows
US East (Base) Europe West (+10%) Asia Southeast (+15%)
(e.g., 730 for 24/7)

Blob Storage Configuration (Standard GPv2)

Locally-Redundant Storage (LRS) Geo-Redundant Storage (GRS)
(data read from storage)

Outbound Data Transfer (General)

(data leaving Azure region)

Estimated Monthly Costs:

Virtual Machine Cost: $0.00

Blob Storage Cost: $0.00

Outbound Data Transfer Cost: $0.00

Total Estimated Monthly Cost: $0.00

Understanding Azure Pricing

Azure pricing is a pay-as-you-go model, meaning you only pay for the resources you consume. However, understanding the various factors that influence costs is crucial for effective budget management. Key factors include:

  • Service Type: Different services (e.g., Virtual Machines, Databases, Storage, Networking) have distinct pricing models.
  • Resource Configuration: For VMs, this includes CPU, RAM, OS, and disk type. For storage, it's capacity, redundancy, and access tiers.
  • Region: Prices can vary significantly between Azure regions due to local market conditions, energy costs, and infrastructure expenses.
  • Data Transfer: Inbound data transfer (into Azure) is generally free. Outbound data transfer (out of Azure) is typically charged per GB, often with tiered pricing.
  • Usage Duration/Volume: Many services are billed hourly or per transaction/GB.
  • Reserved Instances/Savings Plans: For predictable workloads, committing to a 1-year or 3-year term can offer substantial discounts compared to pay-as-you-go rates.
  • Support Plans: Azure offers various support plans, which add to your overall monthly bill.

Virtual Machine Pricing

Azure VMs are typically priced per hour or per minute, depending on the VM series and operating system. The cost includes the compute resources (vCPUs, RAM) and, for Windows VMs, the Windows Server licensing. Linux VMs are generally cheaper as they don't incur OS licensing fees. Different VM series are optimized for various workloads (e.g., B-series for burstable, D-series for general purpose, E-series for memory-optimized).

Blob Storage Pricing

Blob storage costs are primarily driven by the amount of data stored (per GB per month) and the data redundancy option chosen. Common redundancy options include:

  • LRS (Locally-Redundant Storage): Data is replicated three times within a single data center. Lowest cost, but vulnerable to data center outages.
  • GRS (Geo-Redundant Storage): Data is replicated to a secondary Azure region hundreds of miles away, providing protection against regional outages. Higher cost.
  • ZRS (Zone-Redundant Storage): Data is replicated across three Azure availability zones within a single region. Offers higher availability than LRS within a region. (Not included in this simplified calculator).

Additionally, costs are incurred for data operations (read/write transactions) and data egress (data transferred out of the storage account).

Data Transfer Pricing

Data transfer within an Azure region is generally free. Inbound data transfer to Azure from the internet is also free. However, outbound data transfer (data moving from Azure to the internet or across regions) is charged per GB. The first few GBs per month are often free, with tiered pricing applied thereafter, where the cost per GB decreases as the volume of data transferred increases.

For precise and up-to-date pricing, always refer to the official Azure Pricing Calculator.

.azure-calculator-container { font-family: 'Segoe UI', Arial, sans-serif; max-width: 800px; margin: 20px auto; padding: 25px; border: 1px solid #e0e0e0; border-radius: 8px; background-color: #ffffff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .azure-calculator-container h2, .azure-calculator-container h3, .azure-calculator-container h4 { color: #0056b3; margin-top: 20px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 5px; } .azure-calculator-container p { line-height: 1.6; margin-bottom: 10px; color: #333; } .calculator-input-group { margin-bottom: 15px; display: flex; flex-direction: column; } .calculator-input-group label { margin-bottom: 5px; font-weight: bold; color: #555; } .calculator-input-group input[type="number"], .calculator-input-group select { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; width: 100%; box-sizing: border-box; background-color: #f9f9f9; } .calculator-input-group input[type="number"]:focus, .calculator-input-group select:focus { border-color: #0078d4; outline: none; box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2); } .calculator-input-group small { color: #777; margin-top: 5px; font-size: 0.85em; } .azure-calculator-container button { background-color: #0078d4; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 18px; margin-top: 20px; transition: background-color 0.3s ease; width: 100%; box-sizing: border-box; } .azure-calculator-container button:hover { background-color: #005ea6; } .calculator-result { margin-top: 30px; padding: 20px; border: 1px solid #d4edda; background-color: #eaf7ee; border-radius: 8px; color: #155724; } .calculator-result h4 { color: #155724; margin-top: 0; border-bottom: 1px solid #c3e6cb; padding-bottom: 10px; } .calculator-result p { margin-bottom: 8px; font-size: 1.1em; } .calculator-result p strong { color: #0a3614; } .azure-calculator-container ul { list-style-type: disc; margin-left: 20px; margin-bottom: 15px; color: #333; } .azure-calculator-container ul li { margin-bottom: 5px; } .azure-calculator-container a { color: #0078d4; text-decoration: none; } .azure-calculator-container a:hover { text-decoration: underline; } function calculateAzureCost() { // VM Pricing (simplified per hour, Linux/Windows, base for US East) var vmPrices = { "B2ms": { "Linux": 0.05, "Windows": 0.08 }, "D2s_v3": { "Linux": 0.08, "Windows": 0.11 }, "E4s_v3": { "Linux": 0.15, "Windows": 0.20 } }; // Region Multipliers var regionMultipliers = { "USEast": 1.0, "EuropeWest": 1.10, // 10% more "AsiaSoutheast": 1.15 // 15% more }; // Storage Pricing (per GB per month) var storagePrices = { "LRS": 0.02, "GRS": 0.04 }; // Storage Data Egress Pricing (per GB) var storageEgressTiers = [ { limit: 5, price: 0.00 }, // First 5 GB free { limit: 50, price: 0.09 }, // Next 45 GB (5 to 50) { limit: Infinity, price: 0.08 } // Over 50 GB ]; // Outbound Data Transfer Pricing (per GB) var outboundTransferTiers = [ { limit: 5, price: 0.00 }, // First 5 GB free { limit: 100, price: 0.087 }, // Next 95 GB (5 to 100) { limit: 500, price: 0.083 }, // Next 400 GB (100 to 500) { limit: Infinity, price: 0.05 } // Over 500 GB ]; // Get input values var vmSeries = document.getElementById("vmSeries").value; var vmOS = document.getElementById("vmOS").value; var vmRegion = document.getElementById("vmRegion").value; var vmHours = parseFloat(document.getElementById("vmHours").value); var storageCapacity = parseFloat(document.getElementById("storageCapacity").value); var storageRedundancy = document.getElementById("storageRedundancy").value; var storageEgress = parseFloat(document.getElementById("storageEgress").value); var outboundTransfer = parseFloat(document.getElementById("outboundTransfer").value); // Validate inputs if (isNaN(vmHours) || vmHours < 0) vmHours = 0; if (isNaN(storageCapacity) || storageCapacity < 0) storageCapacity = 0; if (isNaN(storageEgress) || storageEgress < 0) storageEgress = 0; if (isNaN(outboundTransfer) || outboundTransfer < 0) outboundTransfer = 0; var totalVmCost = 0; var totalStorageCost = 0; var totalTransferCost = 0; var overallTotalCost = 0; // 1. Calculate VM Cost if (vmPrices[vmSeries] && vmPrices[vmSeries][vmOS]) { var baseVmHourlyCost = vmPrices[vmSeries][vmOS]; var regionFactor = regionMultipliers[vmRegion] || 1.0; totalVmCost = baseVmHourlyCost * vmHours * regionFactor; } // 2. Calculate Blob Storage Cost if (storagePrices[storageRedundancy]) { var storagePerGbMonthCost = storagePrices[storageRedundancy]; var capacityCost = storageCapacity * storagePerGbMonthCost; var egressCost = 0; var remainingEgress = storageEgress; for (var i = 0; i 0 ? storageEgressTiers[i-1].limit : 0)); if (tierAmount > 0) { egressCost += tierAmount * tier.price; remainingEgress -= tierAmount; } if (remainingEgress <= 0) break; } totalStorageCost = capacityCost + egressCost; } // 3. Calculate Outbound Data Transfer Cost var transferCost = 0; var remainingTransfer = outboundTransfer; for (var j = 0; j 0 ? outboundTransferTiers[j-1].limit : 0); var tierVolume = Math.min(remainingTransfer, tier.limit – lowerBound); if (tierVolume > 0) { transferCost += tierVolume * tier.price; remainingTransfer -= tierVolume; } if (remainingTransfer <= 0) break; } totalTransferCost = transferCost; // Calculate overall total overallTotalCost = totalVmCost + totalStorageCost + totalTransferCost; // Display results document.getElementById("vmCostResult").innerHTML = "$" + totalVmCost.toFixed(2); document.getElementById("storageCostResult").innerHTML = "$" + totalStorageCost.toFixed(2); document.getElementById("transferCostResult").innerHTML = "$" + totalTransferCost.toFixed(2); document.getElementById("totalCostResult").innerHTML = "$" + overallTotalCost.toFixed(2); } // Run calculation on page load to show initial values window.onload = calculateAzureCost;

Leave a Reply

Your email address will not be published. Required fields are marked *