|
1 | 1 | --- |
2 | | -title: Soft stop individual SAP instances and HANA database |
3 | | -description: Learn how to soft stop SAP system and HANA database through the Virtual Instance for SAP solutions (VIS) resource in Azure Center for SAP solutions. |
| 2 | +title: Soft stop SAP instances and HANA database in Azure Center for SAP solutions |
| 3 | +description: Learn how to soft stop an SAP system and HANA database through the Virtual Instance for SAP solutions resource in Azure Center for SAP solutions. |
4 | 4 | ms.service: sap-on-azure |
5 | 5 | ms.subservice: center-sap-solutions |
6 | 6 | ms.topic: how-to |
7 | | -ms.date: 10/25/2023 |
| 7 | +ms.date: 04/15/2026 |
8 | 8 | ms.author: kanamudu |
9 | 9 | author: kalyaninamuduri |
10 | | -#Customer intent: As a developer, I want to stop SAP systems by draining existing connections gracefully when using Azure Center for SAP solutions. |
11 | 10 | # Customer intent: As an SAP administrator, I want to gracefully soft stop SAP systems and HANA databases through Azure resources, so that I can ensure all user connections and processes are properly managed before shutting down to maintain system integrity. |
12 | 11 | --- |
13 | | -# Soft stop SAP systems, application server instances and HANA database |
14 | 12 |
|
15 | | -In this how-to guide, you'll learn to soft stop your SAP systems, individual instances and HANA database through the Virtual Instance for SAP solutions (VIS) resource in Azure Center for SAP solutions. You can stop your system smoothly by making sure that existing user connections, batch processes, etc. are drained first. |
| 13 | +# Soft stop SAP instances and HANA database in Azure Center for SAP solutions |
16 | 14 |
|
17 | | -Using the [Azure PowerShell](/powershell/module/az.workloads), [CLI](/cli/azure/workloads/sap-virtual-instance) and [REST API](/rest/api/workloads) interfaces, you can: |
| 15 | +You can soft stop your SAP systems, individual instances, and HANA database through the Virtual Instance for SAP solutions (VIS) resource in Azure Center for SAP solutions. A soft stop drains existing user connections and batch processes before stopping the system. |
18 | 16 |
|
19 | | -- Soft stop the entire SAP system, that is the application server instances and central services instance. |
| 17 | +By using [Azure PowerShell](/powershell/module/az.workloads), [Azure CLI](/cli/azure/workloads/sap-virtual-instance), and [REST API](/rest/api/workloads) interfaces, you can: |
| 18 | + |
| 19 | +- Soft stop the entire SAP system, including the application server instances and central services instance. |
20 | 20 | - Soft stop specific SAP application server instances. |
21 | 21 | - Soft stop HANA database. |
22 | 22 |
|
23 | | - |
24 | 23 | ## Prerequisites |
25 | 24 |
|
26 | | -- An SAP system that you've [created in Azure Center for SAP solutions](prepare-network.md) or [registered with Azure Center for SAP solutions](register-existing-system.md). |
27 | | -- Check that your Azure account has **Azure Center for SAP solutions administrator** or equivalent role access on the Virtual Instance for SAP solutions resources. For more information, see [how to use granular permissions that govern start and stop actions on the VIS, individual SAP instances and HANA databases](manage-with-azure-rbac.md#start-sap-system). |
| 25 | +- An SAP system that you [deployed in Azure Center for SAP solutions](prepare-network.md) or [registered with Azure Center for SAP solutions](register-existing-system.md). |
| 26 | +- Make sure your Azure account has **Azure Center for SAP solutions administrator** or equivalent role access on the Virtual Instance for SAP solutions resources. For more information, see [Manage access with Azure RBAC](manage-with-azure-rbac.md#start-sap-system). |
28 | 27 | - For HA deployments, the HA interface cluster connector for SAP (`sap_vendor_cluster_connector`) must be installed on the ASCS instance. For more information, see the [SUSE connector specifications](https://www.suse.com/c/sap-netweaver-suse-cluster-integration-new-sap_suse_cluster_connector-version-3-0-0/) and [RHEL connector specifications](https://access.redhat.com/solutions/3606101). |
29 | | -- For HANA Database, Stop operation is initiated only when the cluster maintenance mode is in **Disabled** status. |
| 28 | +- For HANA database, the stop operation is initiated only when the cluster maintenance mode is **Disabled**. |
| 29 | + |
| 30 | +## Soft stop a resource |
30 | 31 |
|
| 32 | +You can initiate a soft stop operation from Azure PowerShell, Azure CLI, and REST API interfaces. You must use the stop operation along with a soft stop timeout value in seconds to initiate a soft stop. After you initiate the soft stop and the operation is successfully triggered, monitor the health and status of the resource to check if it stopped. |
31 | 33 |
|
32 | | -## Soft stop SAP system |
| 34 | +First, select the resource type you want to soft stop: |
33 | 35 |
|
34 | | -Currently, you can initiate a soft stop operation from the Azure PowerShell, Azure Command-Line Interface (Azure CLI) and REST API interfaces. You must use the stop operation along with a soft stop timeout value in seconds to initiate a soft stop. Once you initiate soft stop on VIS and the operation is successfully triggered on the SAP system, then monitor the Health and Status of the VIS to check if the system has stopped. |
| 36 | +# [SAP system](#tab/sap-system) |
35 | 37 |
|
36 | 38 | > [!NOTE] |
37 | | -> When attempting to soft stop an SAP system or application server instance using Azure Center for SAP solutions, soft stop timeout value must be greater than 0 and less than 82800 seconds. |
| 39 | +> When attempting to soft stop an SAP system or application server instance, the timeout value must be greater than `0` and less than `82,800` seconds. |
38 | 40 |
|
| 41 | +# [Application server](#tab/app-server) |
39 | 42 |
|
40 | | -### Soft stop system in PowerShell |
41 | | -Use the [Stop-AzWorkloadsSapVirtualInstance](/powershell/module/az.workloads/Stop-AzWorkloadsSapVirtualInstance) command: |
| 43 | +> [!NOTE] |
| 44 | +> When attempting to soft stop an SAP system or application server instance, the timeout value must be greater than `0` and less than `82,800` seconds. |
42 | 45 |
|
43 | | -```powershell |
44 | | - Stop-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Workloads/sapVirtualInstances/DB0 --SoftStopTimeoutSecond 300 ` |
45 | | -``` |
| 46 | +# [HANA database](#tab/hana-db) |
46 | 47 |
|
47 | | -### Soft stop system in CLI |
48 | | -Use the [az workloads sap-virtual-instance stop](/cli/azure/workloads/sap-virtual-instance#az-workloads-sap-virtual-instance-stop) command: |
| 48 | +> [!NOTE] |
| 49 | +> When attempting to soft stop a HANA database instance, the timeout value must be greater than `0` and less than `1,800` seconds. |
49 | 50 |
|
50 | | -```azurecli-interactive |
51 | | - az workloads sap-virtual-instance stop --id /subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Workloads/sapVirtualInstances/DB0 --soft-stop-timeout-seconds 300 |
52 | | -``` |
| 51 | +--- |
53 | 52 |
|
54 | | -### Soft stop system using REST API |
55 | | -Use this [sample payload](/rest/api/workloads/2023-04-01/sap-virtual-instances/stop?tabs=HTTP#sapvirtualinstances_stop) to soft stop an SAP system. You can specify the soft stop timeout value in seconds. |
| 53 | +Then, select the tool you want to use: |
56 | 54 |
|
57 | | -## Soft stop SAP Application server instance |
58 | | -You can soft stop a specific application server in Azure Center for SAP solutions using Azure PowerShell, CLI and REST API interfaces. Once you initiate soft stop on application server and the operation is successfully triggered, then monitor Health and Status of the application server instance to check if it has stopped. |
| 55 | +# [Azure PowerShell](#tab/azure-powershell/sap-system) |
59 | 56 |
|
60 | | -To soft stop an application server represented as an *App server instance for SAP solutions* resource: |
| 57 | +Use the [Stop-AzWorkloadsSapVirtualInstance](/powershell/module/az.workloads/Stop-AzWorkloadsSapVirtualInstance) command: |
| 58 | + |
| 59 | +```azurepowershell |
| 60 | +Stop-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Workloads/sapVirtualInstances/DB0 -SoftStopTimeoutSecond 300 |
| 61 | +``` |
61 | 62 |
|
| 63 | +# [Azure PowerShell](#tab/azure-powershell/app-server) |
62 | 64 |
|
63 | | -### Using PowerShell |
64 | 65 | Use the [Stop-AzWorkloadsSapApplicationInstance](/powershell/module/az.workloads/stop-azworkloadssapapplicationinstance) command: |
65 | 66 |
|
66 | | -```powershell |
67 | | - Stop-AzWorkloadsSapApplicationInstance -InputObject /subscriptions/Sub1/resourceGroups/RG1/providers/Microsoft.Workloads/sapVirtualInstances/DB0/applicationInstances/app0 --SoftStopTimeoutSecond 300 ` |
| 67 | +```azurepowershell |
| 68 | +Stop-AzWorkloadsSapApplicationInstance -InputObject /subscriptions/Sub1/resourceGroups/RG1/providers/Microsoft.Workloads/sapVirtualInstances/DB0/applicationInstances/app0 -SoftStopTimeoutSecond 300 |
68 | 69 | ``` |
69 | 70 |
|
70 | | -### Using CLI |
71 | | -Use the [az workloads sap-application-server-instance stop](/cli/azure/workloads/sap-application-server-instance#az-workloads-sap-application-server-instance-stop) command: |
| 71 | +# [Azure PowerShell](#tab/azure-powershell/hana-db) |
72 | 72 |
|
73 | | -```azurecli-interactive |
74 | | - az workloads sap-application-server-instance stop --id /subscriptions/Sub1/resourceGroups/RG1/providers/Microsoft.Workloads/sapVirtualInstances/DB0/applicationInstances/app0 --soft-stop-timeout-seconds 300 |
| 73 | +Use the [Stop-AzWorkloadsSapDatabaseInstance](/powershell/module/az.workloads/stop-azworkloadssapdatabaseinstance) command: |
| 74 | + |
| 75 | +```azurepowershell |
| 76 | +Stop-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/Sub1/resourceGroups/RG1/providers/Microsoft.Workloads/sapVirtualInstances/DB0/databaseInstances/ab0 -SoftStopTimeoutSecond 300 |
75 | 77 | ``` |
76 | 78 |
|
77 | | -### Using REST API |
78 | | -Use this [sample payload](/rest/api/workloads/2023-04-01/sap-application-server-instances/stop-instance?tabs=HTTP#stop-the-sap-application-server-instance) to soft stop an application server instance. You can specify the soft stop timeout value in seconds. |
| 79 | +# [Azure CLI](#tab/azure-cli/sap-system) |
79 | 80 |
|
80 | | -## Soft stop HANA database |
81 | | -You can soft stop the HANA database so that the database stops gracefully after all running statements have finished. You can use the Azure PowerShell, CLI and REST API interfaces to soft stop database. Once you initiate soft stop on HANA database and the operation is successfully triggered on the database instance, then monitor the status of the database instance on the VIS to check if it has stopped. |
| 81 | +Use the [az workloads sap-virtual-instance stop](/cli/azure/workloads/sap-virtual-instance#az-workloads-sap-virtual-instance-stop) command: |
82 | 82 |
|
83 | | -> [!NOTE] |
84 | | -> When attempting to soft stop HANA database instance using Azure Center for SAP solutions, soft stop timeout value must be greater than 0 and less than 1800 seconds. |
| 83 | +```azurecli-interactive |
| 84 | +az workloads sap-virtual-instance stop --id /subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Workloads/sapVirtualInstances/DB0 --soft-stop-timeout-seconds 300 |
| 85 | +``` |
85 | 86 |
|
| 87 | +# [Azure CLI](#tab/azure-cli/app-server) |
86 | 88 |
|
87 | | -### Using PowerShell |
88 | | -Use the [Stop-AzWorkloadsSapDatabaseInstance](/powershell/module/az.workloads/stop-azworkloadssapdatabaseinstance) command: |
| 89 | +Use the [az workloads sap-application-server-instance stop](/cli/azure/workloads/sap-application-server-instance#az-workloads-sap-application-server-instance-stop) command: |
89 | 90 |
|
90 | | -```powershell |
91 | | - Stop-AzWorkloadsSapDatabaseInstance -InputObject /subscriptions/Sub1/resourceGroups/RG1/providers/Microsoft.Workloads/sapVirtualInstances/DB0/databaseInstances/ab0 --SoftStopTimeoutSecond 300 ` |
| 91 | +```azurecli-interactive |
| 92 | +az workloads sap-application-server-instance stop --id /subscriptions/Sub1/resourceGroups/RG1/providers/Microsoft.Workloads/sapVirtualInstances/DB0/applicationInstances/app0 --soft-stop-timeout-seconds 300 |
92 | 93 | ``` |
93 | 94 |
|
94 | | -### Using CLI |
| 95 | +# [Azure CLI](#tab/azure-cli/hana-db) |
| 96 | + |
95 | 97 | Use the [az workloads sap-database-instance stop](/cli/azure/workloads/sap-database-instance#az-workloads-sap-database-instance-stop) command: |
96 | 98 |
|
97 | 99 | ```azurecli-interactive |
98 | | - az workloads sap-database-instance stop --id /subscriptions/Sub1/resourceGroups/RG1/providers/Microsoft.Workloads/sapVirtualInstances/DB0/databaseInstances/ab0 --soft-stop-timeout-seconds 300 |
| 100 | +az workloads sap-database-instance stop --id /subscriptions/Sub1/resourceGroups/RG1/providers/Microsoft.Workloads/sapVirtualInstances/DB0/databaseInstances/ab0 --soft-stop-timeout-seconds 300 |
99 | 101 | ``` |
100 | 102 |
|
101 | | -### Using REST API |
102 | | -Use this [sample payload](/rest/api/workloads/2023-04-01/sap-database-instances/stop-instance?tabs=HTTP#stop-the-database-instance-of-the-sap-system.) to soft stop HANA database. You can specify the soft stop timeout value in seconds. |
| 103 | +# [REST API](#tab/rest-api/sap-system) |
| 104 | + |
| 105 | +Use this [sample payload](/rest/api/workloads/2023-04-01/sap-virtual-instances/stop?tabs=HTTP#sapvirtualinstances_stop). You can specify the soft stop timeout value in seconds. |
| 106 | + |
| 107 | +# [REST API](#tab/rest-api/app-server) |
| 108 | + |
| 109 | +Use this [sample payload](/rest/api/workloads/2023-04-01/sap-application-server-instances/stop-instance?tabs=HTTP#stop-the-sap-application-server-instance). You can specify the soft stop timeout value in seconds. |
| 110 | + |
| 111 | +# [REST API](#tab/rest-api/hana-db) |
| 112 | + |
| 113 | +Use this [sample payload](/rest/api/workloads/2023-04-01/sap-database-instances/stop-instance?tabs=HTTP#stop-the-database-instance-of-the-sap-system). You can specify the soft stop timeout value in seconds. |
| 114 | + |
| 115 | +--- |
| 116 | + |
| 117 | +## Related content |
| 118 | + |
| 119 | +- [Start and stop SAP systems](start-stop-sap-systems.md) |
| 120 | +- [Stop and start SAP systems and underlying VMs](stop-start-sap-and-underlying-vm.md) |
| 121 | +- [Manage access with Azure RBAC](manage-with-azure-rbac.md) |
0 commit comments