1. Microsoft Learn
"Start/Stop VMs v2 overview": This document describes a feature built on Azure Automation specifically for cost optimization. It states
"The Start/Stop VMs v2 feature starts or stops enabled Azure VMs on a schedule. It helps optimize costs for users who want to stop VMs when not in use and then start them when they're needed." This directly supports using automation for the described scenario.
2. Microsoft Docs
"Azure Virtual Machines planning and implementation for SAP NetWeaver"
Section: "General Azure VM deployment": This guide
while not explicitly detailing automation
establishes the foundation that SAP landscapes run on IaaS VMs. The principle of deallocating IaaS VMs to save costs is a fundamental Azure best practice. The document notes
"For non-production systems
you can reduce costs by shutting down the SAP systems and deallocating the VMs." Azure Automation is the primary tool to schedule this deallocation.
3. Microsoft Docs
"Virtual machine states and billing status": This document clarifies that billing for compute resources stops only when a VM is in the Stopped (deallocated) state. This confirms why simply running stopsap (Option B)
which leaves the VM in a Running state
does not save on compute costs
whereas using an automation runbook to deallocate the VM (Option A) does.