Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use the Azure CLI to create and manage Azure resources from the command line or in scripts.
In this guide, you learn to start and stop your SAP systems through the Virtual Instance for SAP solutions (VIS) resource in Azure Center for SAP solutions. You can start and stop SAP systems by using the Azure CLI or by using Azure PowerShell. This article shows you the steps to use the Azure CLI.
Through the Azure CLI, you can start and stop:
- The entire SAP application tier, which includes Advanced Business Application Programming SAP Central Services (ASCS) and application server instances.
- Individual SAP instances, which include Central Services and application server instances.
- A HANA database.
- Instances in the following types of deployments:
- Single-server.
- High availability (HA).
- Distributed non-HA.
- SAP systems that run on Windows.
- SAP systems that run on RHEL and SUSE Linux operating systems.
- SAP HA systems that use RHEL and SUSE Pacemaker clustering software and Windows Server Failover Clustering. Other certified cluster software isn't currently supported.
Prerequisites
To start and stop on the VIS solutions resource, you must:
Use an SAP system that you created in Azure Center for SAP solutions or registered with Azure Center for SAP solutions as a VIS resource.
Confirm that your Azure account has the following role, or equivalent role access on the VIS resource: Azure Center for SAP solutions administrator. For more information about the granular permissions that govern start and stop actions on the VIS, individual SAP instances, and HANA database, see Start SAP system.
Confirm that the underlying virtual machines (VMs) of the SAP instances are running. This capability starts or stops the SAP application instances, not the VMs that make up the SAP system resources.
Confirm that the
sapstartsrvservice is running on all VMs related to the SAP system.For HA deployments, install the HA interface cluster connector for SAP (
sap_vendor_cluster_connector) on the ASCS instance. For more information, see the SUSE connector specifications and RHEL connector specifications.For start operations, ensure that the cluster maintenance mode is in the Enabled status. The start operation function for the HANA database can only be initiated when the cluster maintenance mode is enabled.
For stop operations, ensure that the cluster maintenance mode is in the Disabled status. The stop operation function for the HANA database can only be initiated when the cluster maintenance mode is disabled.
Start an SAP system
To start an SAP system represented as a Virtual Instance for SAP solutions resource, use the az workloads sap-virtual-instance start command. Choose one of the following options:
Use the Virtual Instance for SAP solutions resource
ResourceNameandResourceGroupNameto identify the system that you want to start.az workloads sap-virtual-instance start -g <Resource-group-name> -n <ResourceName>Use the
idparameter and pass the resource ID of the Virtual Instance for SAP solutions resource that you want to start.az workloads sap-virtual-instance start --id <ResourceID>
Stop an SAP system
To stop an SAP system represented as a Virtual Instance for SAP solutions resource, use the az workloads sap-virtual-instance stop command. Choose one of the following options:
Use the Virtual Instance for SAP solutions
ResourceNameandResourceGroupNameto identify the system that you want to stop.az workloads sap-virtual-instance stop -g <Resource-group-name> -n <ResourceName>Use the
idparameter and pass the resource ID of the Virtual Instance for SAP solutions resource that you want to stop.az workloads sap-virtual-instance stop --id <ResourceID>