|
1 | 1 | --- |
2 | | -title: Quickstart - Create a distributed non-HA SAP system with Azure Center for SAP solutions with PowerShell |
3 | | -description: Learn how to create a distributed non-HA SAP system in Azure Center for SAP solutions through Azure PowerShell module. |
| 2 | +title: Quickstart - Deploy distributed non-HA SAP system with PowerShell |
| 3 | +description: Learn how to create a distributed non-HA SAP system in Azure Center for SAP solutions by using the Azure PowerShell module. |
4 | 4 | ms.service: sap-on-azure |
5 | 5 | ms.subservice: center-sap-solutions |
6 | 6 | ms.custom: devx-track-azurepowershell |
7 | 7 | ms.topic: quickstart |
8 | | -ms.date: 05/04/2023 |
9 | | -ms.author: |
10 | | -author: |
11 | | -#Customer intent: As a developer, I want to create a distributed non-HA SAP system so that I can use the system with Azure Center for SAP solutions. |
12 | | -# Customer intent: As a developer, I want to deploy a distributed non-high-availability SAP system in Azure using PowerShell, so that I can leverage Azure's infrastructure for my SAP applications. |
| 8 | +ms.date: 04/08/2026 |
| 9 | +ms.author: sagarkeswani |
| 10 | +author: sagarkeswani |
| 11 | +#customer intent: As a developer, I want to deploy a distributed non-high-availability SAP system in Azure by using PowerShell so that I can use the system with Azure Center for SAP solutions. |
13 | 12 | --- |
14 | 13 |
|
15 | | -# Quickstart: Create infrastructure for a distributed non-high-availability SAP system with *Azure Center for SAP solutions* |
| 14 | +# Quickstart: Deploy infrastructure for a distributed non-high-availability SAP system with Azure Center for SAP solutions |
16 | 15 |
|
17 | | -The [Azure PowerShell AZ](/powershell/azure/new-azureps-module-az) module is used to create and manage Azure resources from the command line or in scripts. |
| 16 | +In this quickstart, you deploy infrastructure for an SAP system with a non-high-availability (non-HA) distributed architecture on Azure. You use the Azure PowerShell module to create a Virtual Instance for SAP solutions (VIS) resource through Azure Center for SAP solutions. |
18 | 17 |
|
19 | | -[Azure Center for SAP solutions](overview.md) enables you to deploy and manage SAP systems on Azure. This article shows you how to deploy infrastructure for an SAP system with non highly available (HA) Distributed architecture on Azure with *Azure Center for SAP solutions* using Az PowerShell module. Alternatively, you can deploy SAP systems using the Azure CLI, or in the Azure portal. |
| 18 | +After you deploy infrastructure and [install SAP software](install-software.md), you can use visualization, management, and monitoring capabilities through the Azure portal. For example, you can: |
20 | 19 |
|
21 | | -After you deploy infrastructure and [install SAP software](install-software.md) with *Azure Center for SAP solutions*, you can use its visualization, management and monitoring capabilities through the Azure portal. For example, you can: |
22 | | - |
23 | | -- View and track the SAP system as an Azure resource, called the *Virtual Instance for SAP solutions (VIS)*. |
24 | | -- Get recommendations for your SAP infrastructure, Operating System configurations etc. based on quality checks that evaluate best practices for SAP on Azure. |
| 20 | +- View and track the SAP system as an Azure resource using VIS. |
| 21 | +- Get recommendations for your SAP infrastructure, operating system configurations, and more based on quality checks that evaluate best practices for SAP on Azure. |
25 | 22 | - Get health and status information about your SAP system. |
26 | | -- Start and Stop SAP application tier. |
27 | | -- Start and Stop individual instances of ASCS, App server and HANA Database. |
| 23 | +- Start and stop the SAP application tier. |
| 24 | +- Start and stop individual instances of Advanced Business Application Programming Central Services (ASCS), Application server, and HANA database. |
28 | 25 | - Monitor the Azure infrastructure metrics for the SAP system resources. |
29 | | -- View Cost Analysis for the SAP system. |
| 26 | +- View cost analysis for the SAP system. |
30 | 27 |
|
31 | 28 | ## Prerequisites |
32 | | -- An Azure subscription. |
33 | | -- If you are using Azure Center for SAP solutions for the first time, Register the **Microsoft.Workloads** Resource Provider on the subscription in which you are deploying the SAP system. Use [Register-AzResourceProvider](/powershell/module/az.Resources/Register-azResourceProvider), as follows: |
34 | | - ```powershell |
35 | | - Register-AzResourceProvider -ProviderNamespace "Microsoft.Workloads" |
36 | | - ``` |
37 | | -- An Azure account with **Azure Center for SAP solutions administrator** and **Managed Identity Operator** role access to the subscriptions and resource groups in which you'll create the Virtual Instance for SAP solutions (VIS) resource. |
38 | | -- A **User-assigned managed identity** which has **Azure Center for SAP solutions service role** access on the Subscription or at least all resource groups (Compute, Network,Storage). If you wish to install SAP Software through the Azure Center for SAP solutions, also provide **Reader and Data Access** role to the identity on SAP bits storage account where you would store the SAP Media. |
| 29 | + |
| 30 | +- An Azure subscription. If you don't have an Azure account, create a [free account](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn) before you begin. |
| 31 | +- If you're using Azure Center for SAP solutions for the first time, the **Microsoft.Workloads** resource provider registered on your subscription. Use [Register-AzResourceProvider](/powershell/module/az.Resources/Register-azResourceProvider): |
| 32 | + |
| 33 | + ```azurepowershell |
| 34 | + Register-AzResourceProvider -ProviderNamespace "Microsoft.Workloads" |
| 35 | + ``` |
| 36 | + |
| 37 | +- An Azure account with **Azure Center for SAP solutions administrator** and **Managed Identity Operator** role access to the subscriptions and resource groups in which you create the VIS resource. |
| 38 | +- A **User-assigned managed identity** that has **Azure Center for SAP solutions service role** access on the subscription or at least all resource groups (Compute, Network, Storage). If you want to install SAP software through Azure Center for SAP solutions, also provide **Reader and Data Access** role to the identity on the SAP bits storage account where you store the SAP media. |
39 | 39 | - A [network set up for your infrastructure deployment](prepare-network.md). |
40 | | -- Availability of minimum 4 cores of either Standard_D4ds_v4 or Standard_E4s_v3 SKUS which will be used during Infrastructure deployment and Software Installation |
41 | | -- [Review the quotas for your Azure subscription](/azure/quotas/view-quotas). If the quotas are low, you might need to create a support request before creating your infrastructure deployment. Otherwise, you might experience deployment failures or an **Insufficient quota** error. |
42 | | -- Note the SAP Application Performance Standard (SAPS) and database memory size that you need to allow Azure Center for SAP solutions to size your SAP system. If you're not sure, you can also select the VMs. There are: |
43 | | - - A single or cluster of ASCS VMs, which make up a single ASCS instance in the VIS. |
44 | | - - A single or cluster of Database VMs, which make up a single Database instance in the VIS. |
45 | | - - A single Application Server VM, which makes up a single Application instance in the VIS. Depending on the number of Application Servers being deployed or registered, there can be multiple application instances. |
| 40 | +- A minimum of four cores of either `Standard_D4ds_v4` or `Standard_E4s_v3` SKUs, which are used during infrastructure deployment and software installation. |
| 41 | +- Sufficient [Azure subscription quotas](/azure/quotas/view-quotas). If the quotas are low, you might need to create a support request before creating your infrastructure deployment. Otherwise, you might experience deployment failures or an **Insufficient quota** error. |
| 42 | +- The SAP Application Performance Standard (SAPS) and database memory size that you need to allow Azure Center for SAP solutions to size your SAP system. If you're not sure, you can also select the virtual machines (VMs). The VMs include: |
| 43 | + - A single or cluster of ASCS VMs, which make up a single ASCS instance in the VIS. |
| 44 | + - A single or cluster of Database VMs, which make up a single Database instance in the VIS. |
| 45 | + - A single Application Server VM, which makes up a single Application instance in the VIS. Depending on the number of Application Servers being deployed or registered, there can be multiple application instances. |
| 46 | + |
46 | 47 | - Azure Cloud Shell or Azure PowerShell. |
47 | 48 |
|
48 | | - The steps in this quickstart run the Azure PowerShell cmdlets interactively in [Azure Cloud Shell](/azure/cloud-shell/overview). To run the commands in the Cloud Shell, select **Open Cloudshell** at the upper-right corner of a code block. Select **Copy** to copy the code and then paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal. |
| 49 | + The steps in this quickstart run the Azure PowerShell cmdlets interactively in [Azure Cloud Shell](/azure/cloud-shell/overview). To run the commands in the Cloud Shell, select **Open Cloud Shell** at the upper-right corner of a code block. Select **Copy** to copy the code and then paste it into Cloud Shell to run it. You can also run the Cloud Shell from within the Azure portal. |
49 | 50 |
|
50 | 51 | You can also [install Azure PowerShell locally](/powershell/azure/install-Az-ps) to run the cmdlets. The steps in this article require Azure PowerShell module version 5.4.1 or later. Run `Get-Module -ListAvailable Az` to find your installed version. If you need to upgrade, see [Update the Azure PowerShell module](/powershell/azure/install-Az-ps#update-the-azure-powershell-module). |
51 | 52 |
|
52 | 53 | If you run PowerShell locally, run `Connect-AzAccount` to connect to Azure. |
53 | 54 |
|
54 | | -## Right Size the SAP system you want to deploy |
55 | | -Use [Invoke-AzWorkloadsSapSizingRecommendation](/powershell/module/az.workloads/invoke-azworkloadssapsizingrecommendation) to get SAP system sizing recommendations by providing SAPS input for application tier and memory required for database tier |
| 55 | +## Get SAP system sizing recommendations |
| 56 | + |
| 57 | +Get SAP system sizing recommendations by providing SAPS input for the application tier and memory required for the database tier. |
| 58 | + |
| 59 | +1. Run [Invoke-AzWorkloadsSapSizingRecommendation](/powershell/module/az.workloads/invoke-azworkloadssapsizingrecommendation) to get sizing recommendations: |
| 60 | + |
| 61 | + ```azurepowershell |
| 62 | + Invoke-AzWorkloadsSapSizingRecommendation -Location eastus ` |
| 63 | + -AppLocation eastus ` |
| 64 | + -DatabaseType HANA ` |
| 65 | + -DbMemory 256 ` |
| 66 | + -DeploymentType ThreeTier ` |
| 67 | + -Environment NonProd ` |
| 68 | + -SapProduct S4HANA ` |
| 69 | + -Sap 10000 ` |
| 70 | + -DbScaleMethod ScaleUp |
| 71 | + ``` |
| 72 | + |
| 73 | +1. Review the output to determine the recommended VM SKUs for your SAP system. |
56 | 74 |
|
57 | | -```powershell |
58 | | -Invoke-AzWorkloadsSapSizingRecommendation -Location eastus -AppLocation eastus -DatabaseType HANA -DbMemory 256 -DeploymentType ThreeTier -Environment NonProd -SapProduct S4HANA -Sap 10000 -DbScaleMethod ScaleUp |
59 | | -``` |
| 75 | +## Create a JSON configuration file |
60 | 76 |
|
61 | | -## Create *json* configuration file |
62 | | -Prepare a *json* file with the payload that will be used for the deployment of SAP system infrastructure. You can make edits in this [sample payload](https://github.com/Azure/Azure-Center-for-SAP-solutions-preview/blob/main/Payload_Samples/CreatePayloadDistributedNon-HA.json) or use the examples listed in the [Rest API documentation](/rest/api/workloads) for Azure Center for SAP solutions |
| 77 | +To deploy SAP system infrastructure, prepare a JSON file with the payload. |
| 78 | + |
| 79 | +1. Download or create a JSON payload file. You can use the [sample payload](https://github.com/Azure/Azure-Center-for-SAP-solutions-preview/blob/main/Payload_Samples/CreatePayloadDistributedNon-HA.json) as a starting point, or see the examples in the [REST API documentation](/rest/api/workloads) for Azure Center for SAP solutions. |
| 80 | + |
| 81 | +1. Edit the payload file to match your environment settings, such as resource group names, locations, and VM sizes. |
| 82 | + |
| 83 | +1. Save the file as `CreatePayload.json` in your working directory. |
63 | 84 |
|
64 | 85 | ## Deploy infrastructure for your SAP system |
65 | | -Use [New-AzWorkloadsSapVirtualInstance](/powershell/module/az.workloads/new-azworkloadssapvirtualinstance) to deploy infrastructure for your SAP system with Three tier non-HA architecture |
66 | 86 |
|
67 | | -```powershell |
68 | | -New-AzWorkloadsSapVirtualInstance -ResourceGroupName 'PowerShell-CLI-TestRG' -Name L46 -Location eastus -Environment 'NonProd' -SapProduct 'S4HANA' -Configuration .\CreatePayload.json -Tag @{k1 = "v1"; k2 = "v2"} -IdentityType 'UserAssigned' -ManagedResourceGroupName "L46-rg" -UserAssignedIdentity @{'/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/SAP-E2ETest-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/E2E-RBAC-MSI'= @{}} |
69 | | -``` |
| 87 | +Deploy infrastructure for your SAP system with a three-tier non-HA architecture by using the JSON configuration file you created. |
| 88 | + |
| 89 | +1. Run [New-AzWorkloadsSapVirtualInstance](/powershell/module/az.workloads/new-azworkloadssapvirtualinstance) to deploy the infrastructure: |
| 90 | + |
| 91 | + ```azurepowershell |
| 92 | + New-AzWorkloadsSapVirtualInstance ` |
| 93 | + -ResourceGroupName 'PowerShell-CLI-TestRG' ` |
| 94 | + -Name L46 ` |
| 95 | + -Location eastus ` |
| 96 | + -Environment 'NonProd' ` |
| 97 | + -SapProduct 'S4HANA' ` |
| 98 | + -Configuration .\CreatePayload.json ` |
| 99 | + -Tag @{k1 = "v1"; k2 = "v2"} ` |
| 100 | + -IdentityType 'UserAssigned' ` |
| 101 | + -ManagedResourceGroupName "L46-rg" ` |
| 102 | + -UserAssignedIdentity @{'/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourcegroups/SAP-E2ETest-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/E2E-RBAC-MSI'= @{}} |
| 103 | + ``` |
| 104 | + |
| 105 | +1. Wait for the deployment to complete. The command creates all the required Azure infrastructure resources for your SAP system. |
| 106 | + |
| 107 | +## Next step |
| 108 | + |
| 109 | +In this quickstart, you deployed infrastructure in Azure for an SAP system by using Azure Center for SAP solutions. Continue to the next article to learn how to install SAP software on the infrastructure you deployed. |
| 110 | + |
| 111 | +> [!div class="nextstepaction"] |
| 112 | +> [Install SAP software](install-software.md) |
0 commit comments