Quick Clean-ups: Disks, Schedules and Public IPs
1. Review unattached managed disks
Disks can remain after a VM is deleted. Review the owner, recovery needs and backups before deleting an unattached disk. Check current charges in your account rather than assuming a fixed rate per GB.
# Read-only: list unattached managed disks
az disk list \
--query "[?diskState=='Unattached'].{Name:name, Size:diskSizeGb, SKU:sku.name, RG:resourceGroup}" \
--output table
2. Schedule dev/test VMs around actual use
For example, running a VM for 55 rather than 168 hours per week reduces its running hours by about 67%. This is an arithmetic example, not a predicted bill reduction. Review shutdown and startup schedules against the team's working hours and availability needs; disks and other resources can still incur charges while a VM is deallocated.
3. Review unused public IP addresses
Basic SKU public IPs were retired on 30 September 2025. Standard SKU public IPs use static allocation. Identify addresses that are no longer needed and check their associated resources before removing them. Refer to Azure for current IP charges.
Microsoft sources: budgets, public ip.
Azure Advisor: Read the Recommendation Type
Advisor's VM recommendations distinguish shutting down an idle instance from resizing an underutilized one. The measurements differ: shutdown recommendations use CPU and outbound network utilization, while resize recommendations also use memory.
The default analysis period is seven days. Microsoft lists lookback choices of 7, 14, 21, 30, 60 and 90 days; a change can take up to 48 hours to appear in recommendations. Choose a period that includes the workload's peaks instead of treating a quiet week as normal.
Microsoft sources: advisor.
Reservations and Compute Savings Plans
A VM reservation matches a specific eligible configuration; a compute savings plan is an hourly spending commitment for eligible compute usage within its benefit scope. Both offer one-year and three-year terms, but they handle changes differently.
| Decision | Reserved VM Instance | Compute savings plan |
|---|---|---|
| What you commit to | A matching VM configuration, including region and instance attributes. Instance size flexibility can cover other sizes in the same flexibility group. | A fixed hourly amount for eligible compute usage within the selected scope. |
| Benefit application | Azure applies a matching reservation before a savings plan. | Applies to remaining eligible usage until the hourly commitment is consumed; excess usage is billed at the applicable pay-as-you-go rate. |
| Unused benefit | A reservation only helps when matching eligible usage is present. | Unused hourly commitment expires; it does not roll into another hour. |
| Changes after purchase | Exchange, refund and savings-plan trade-in have separate conditions. Read the dated policy below. | Cannot be canceled, exchanged or refunded. Hourly commitment, term and billing frequency cannot be changed after purchase; scope and autorenewal can be managed. |
| Payment and eligibility | Check the offer and account conditions for the reservation you intend to buy. | Upfront or monthly payment is available. Benefits apply to eligible resources associated with EA, MCA or MPA agreements. |
Reservation exchange policy, checked 23 November 2026: Microsoft's current page says that from 1 February 2027, new reservations for services supported by savings plans will not be exchangeable. Reservations purchased before that date retain one final exchange after the change. The policy lists exclusions for deprecated products approaching end of life, services not covered by savings plans such as Azure VMware Solution, and cloud environments without savings-plan support. Eligible reservations can still be traded in for a savings plan. Check the current policy before purchase; this is not an unconditional refund or exchange promise.
Microsoft sources: savings overview, savings application, savings manage, reservation flexibility, reservation exchange.
Spot VMs: Eviction, Disks and Recovery
Azure Spot VMs have no SLA or high-availability guarantee. Azure can evict them when capacity is needed or the Spot price exceeds your maximum price. Scheduled Events eviction notifications are best effort, up to 30 seconds before eviction. B-series VMs are not supported for Spot.
| Eviction policy | What remains | Recovery and cost implications |
|---|---|---|
| Deallocate (default) | The stopped-deallocated VM and its managed disks remain. | Underlying disks still incur storage charges and the VM counts against quota. Restart or redeployment requires available capacity; allocation is not guaranteed. |
| Delete | The VM and underlying disks are deleted. | For Spot scale sets using autoscale, Microsoft recommends Delete to avoid retained-disk costs and quota problems. Autoscale can try to replace instances, but capacity is not guaranteed. |
The following Linux example uses an existing resource group. It creates a VM and may incur charges. Replace the resource group and choose a Spot-supported size available in your region. The maximum-price setting -1 avoids price-based eviction, but capacity-based eviction remains possible.
# Illustrative create command; not executed for this guide.
# -1 avoids price-based eviction; capacity eviction can still occur.
az vm create \
--resource-group myRG \
--name mySpotVM \
--image Ubuntu2204 \
--admin-username azureuser \
--generate-ssh-keys \
--priority Spot \
--eviction-policy Deallocate \
--max-price -1 \
--size Standard_D4s_v5
For AKS workloads, evaluate Spot node pools separately against disruption, scheduling and fallback requirements. Do not apply the standalone-VM policy as a universal rule for every workload.
Microsoft sources: spot, spot cli, spot scale sets.
Right-Sizing Azure VMs
Compare Advisor's proposed SKU or instance count with the workload's CPU, memory and outbound-network demand over the selected lookback period. Include peak traffic, planned growth and any constraints that the recommendation does not capture.
For scale sets, distinguish reducing the number of instances from changing the VM size. Validate application performance and recovery behavior before changing production capacity. An underutilization signal is not a universal CPU cutoff or a guaranteed saving.
Microsoft sources: advisor.
Blob Storage Tiers: Access and Early Deletion
For block blobs, choose the tier using access frequency, required retrieval time and expected retention. This table describes the standard Hot, Cool, Cold and Archive tiers; it is not a price list.
| Tier | Minimum retention before early-deletion charges | Access latency |
|---|---|---|
| Hot | No minimum retention period | Milliseconds |
| Cool | 30 days on general-purpose v2 accounts | Milliseconds |
| Cold | 90 days on general-purpose v2 accounts | Milliseconds |
| Archive | 180 days | Offline; rehydration takes hours |
Legacy Blob Storage accounts have no minimum retention period for Cool or Cold. On accounts where minimum retention applies, deleting, overwriting or moving a blob too early can incur a prorated charge. For example, an archived blob deleted or moved to an online tier after 45 days incurs an early-deletion charge equivalent to the remaining 135 days. Soft-delete retention can affect when the deletion is counted.
Archive requirements: Archive supports LRS, GRS and RA-GRS redundancy, not every redundancy configuration.
Archive retrieval: for objects under 10 GB, Microsoft says standard-priority rehydration might take up to 15 hours. High priority might complete in under an hour, costs more, and can take longer depending on size and demand. Microsoft documents a 10 GiB per hour limit at storage-account level, shared across blobs rather than available per blob. Individual-object timings do not scale linearly to bulk retrieval and are not guaranteed restoration deadlines.
A lifecycle rule could move eligible blobs to Cool after 30 days and Archive after 90 days. Those ages are an example policy, not the minimum time required in each tier. Account type, access patterns and early-deletion charges still matter. See Azure Blob Storage pricing for current charges.
Microsoft sources: storage tiers, storage rehydration.
Azure Hybrid Benefit: Check the License Type
Hybrid Benefit rules differ by product and edition. Ownership of a Windows or SQL Server license alone is not enough to assume eligibility.
| License or subscription | Eligibility and use limits |
|---|---|
| Windows Server | Eligible core licenses need active Software Assurance or a qualifying subscription, with a minimum of 8 core licenses per VM, even for a smaller VM. Benefit-backed workloads can run only during that coverage term. Standard edition normally allows use on-premises or in Azure, with a one-time allowance of up to 180 days for migrating the same workloads. Datacenter VM licensing allows indefinite simultaneous use; Dedicated Host licensing has a 180-day migration allowance. |
| SQL Server for Azure SQL Database or Managed Instance | Microsoft documents Software Assurance-enabled SQL Server licenses and product/edition-specific core conversions. For Azure SQL Database, the benefit requires the provisioned compute tier of the vCore purchasing model; DTU and serverless do not qualify. The documented SQL migration allowance permits dual use for 180 days; afterward the allocated license is used only in Azure. |
| RHEL or SLES | Eligible active subscriptions and the Linux-specific Hybrid Benefit process are required. Red Hat VMs require registration with Red Hat Cloud Access. For PAYG-to-BYOS conversion, only Red Hat-published RHEL images or SUSE-published SLES images qualify; this restriction must not be generalized to the separate BYOS and custom-image paths. |
Use Microsoft's product-specific documentation and applicable Product Terms to confirm eligibility before enabling the benefit. No saving percentage is assumed here.
Microsoft sources: hybrid windows, hybrid sql, hybrid linux.
Cost Governance with Azure Policy
Enforce cost hygiene with Azure Policy: require tags on all resources (deny creation without required tags), restrict VM SKUs to an approved list, enforce auto-shutdown on dev/test VMs, and alert on resource creation in non-standard regions. Combine with Management Groups for consistent policy across subscriptions.