Skip to content

Commit 8529a14

Browse files
Merge pull request #314792 from Xelu86/softstopsap
[Update] Soft stop SAP systems, application server instances and HANA database
2 parents e8c0863 + 19a5630 commit 8529a14

1 file changed

Lines changed: 70 additions & 51 deletions

File tree

Lines changed: 70 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,121 @@
11
---
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.
44
ms.service: sap-on-azure
55
ms.subservice: center-sap-solutions
66
ms.topic: how-to
7-
ms.date: 10/25/2023
7+
ms.date: 04/15/2026
88
ms.author: kanamudu
99
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.
1110
# 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.
1211
---
13-
# Soft stop SAP systems, application server instances and HANA database
1412

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
1614

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.
1816

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.
2020
- Soft stop specific SAP application server instances.
2121
- Soft stop HANA database.
2222

23-
2423
## Prerequisites
2524

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).
2827
- 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
3031

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.
3133

32-
## Soft stop SAP system
34+
First, select the resource type you want to soft stop:
3335

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)
3537

3638
> [!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.
3840
41+
# [Application server](#tab/app-server)
3942

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.
4245
43-
```powershell
44-
Stop-AzWorkloadsSapVirtualInstance -InputObject /subscriptions/sub1/resourceGroups/rg1/providers/Microsoft.Workloads/sapVirtualInstances/DB0 --SoftStopTimeoutSecond 300 `
45-
```
46+
# [HANA database](#tab/hana-db)
4647

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.
4950
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+
---
5352

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:
5654

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)
5956

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+
```
6162

63+
# [Azure PowerShell](#tab/azure-powershell/app-server)
6264

63-
### Using PowerShell
6465
Use the [Stop-AzWorkloadsSapApplicationInstance](/powershell/module/az.workloads/stop-azworkloadssapapplicationinstance) command:
6566

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
6869
```
6970

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)
7272

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
7577
```
7678

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)
7980

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:
8282

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+
```
8586

87+
# [Azure CLI](#tab/azure-cli/app-server)
8688

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:
8990

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
9293
```
9394

94-
### Using CLI
95+
# [Azure CLI](#tab/azure-cli/hana-db)
96+
9597
Use the [az workloads sap-database-instance stop](/cli/azure/workloads/sap-database-instance#az-workloads-sap-database-instance-stop) command:
9698

9799
```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
99101
```
100102

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

Comments
 (0)