SAP-méretezési javaslatok lekérése az alkalmazásszinthez szükséges bemeneti SAPS-sel és az adatbázisszinthez szükséges memóriával
POST https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSizingRecommendations?api-version=2023-04-01
URI-paraméterek
Name |
In |
Kötelező |
Típus |
Description |
location
|
path |
True
|
string
minLength: 1
|
Az Azure-régió neve.
|
subscriptionId
|
path |
True
|
string
minLength: 1
|
A cél-előfizetés azonosítója.
|
api-version
|
query |
True
|
string
minLength: 1
|
A művelethez használni kívánt API-verzió.
|
Kérelem törzse
Name |
Kötelező |
Típus |
Description |
appLocation
|
True
|
string
|
Az a földrajzi hely, ahol az erőforrást létre kell hozni.
|
databaseType
|
True
|
SAPDatabaseType
|
Az adatbázis típusa.
|
dbMemory
|
True
|
integer
(int64)
|
Az adatbázis memóriakonfigurációja.
|
deploymentType
|
True
|
SAPDeploymentType
|
Az üzembe helyezés típusa. Pl.: SingleServer/ThreeTier
|
environment
|
True
|
SAPEnvironmentType
|
Meghatározza a környezet típusát – Éles/Nem éles.
|
sapProduct
|
True
|
SAPProductType
|
Az SAP-termék típusát határozza meg.
|
saps
|
True
|
integer
(int64)
|
Az SAP Application Performance Standard mérése.
|
dbScaleMethod
|
|
SAPDatabaseScaleMethod
|
A DB skálázási módszere.
|
highAvailabilityType
|
|
SAPHighAvailabilityType
|
A magas rendelkezésre állás típusa.
|
Válaszok
Name |
Típus |
Description |
200 OK
|
SAPSizingRecommendationResult:
|
SAP méretezési javaslat eredménye.
|
Other Status Codes
|
ErrorResponse
|
Hibaválasz, amely leírja, hogy miért nem sikerült a művelet.
|
Biztonság
azure_auth
Azure Active Directory OAuth2 Flow
Típus:
oauth2
Folyamat:
implicit
Engedélyezési URL:
https://login.microsoftonline.com/common/oauth2/authorize
Hatókörök
Name |
Description |
user_impersonation
|
a felhasználói fiók megszemélyesítése
|
Példák
SAPSizingRecommendations_S4HANA_Distributed
Mintakérelem
POST https://management.azure.com/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/providers/Microsoft.Workloads/locations/centralus/sapVirtualInstanceMetadata/default/getSizingRecommendations?api-version=2023-04-01
import com.azure.resourcemanager.workloads.models.SapDatabaseScaleMethod;
import com.azure.resourcemanager.workloads.models.SapDatabaseType;
import com.azure.resourcemanager.workloads.models.SapDeploymentType;
import com.azure.resourcemanager.workloads.models.SapEnvironmentType;
import com.azure.resourcemanager.workloads.models.SapProductType;
import com.azure.resourcemanager.workloads.models.SapSizingRecommendationRequest;
/**
* Samples for ResourceProvider SapSizingRecommendations.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/
* SAPSizingRecommendations_S4HANA_Distributed.json
*/
/**
* Sample code: SAPSizingRecommendations_S4HANA_Distributed.
*
* @param manager Entry point to WorkloadsManager.
*/
public static void
sAPSizingRecommendationsS4HANADistributed(com.azure.resourcemanager.workloads.WorkloadsManager manager) {
manager.resourceProviders().sapSizingRecommendationsWithResponse("centralus",
new SapSizingRecommendationRequest().withAppLocation("eastus").withEnvironment(SapEnvironmentType.PROD)
.withSapProduct(SapProductType.S4HANA).withDeploymentType(SapDeploymentType.THREE_TIER).withSaps(20000L)
.withDbMemory(1024L).withDatabaseType(SapDatabaseType.HANA)
.withDbScaleMethod(SapDatabaseScaleMethod.SCALE_UP),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.workloads import WorkloadsMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-workloads
# USAGE
python sap_sizing_recommendations_s4_hana_distributed.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = WorkloadsMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="8e17e36c-42e9-4cd5-a078-7b44883414e0",
)
response = client.sap_sizing_recommendations(
location="centralus",
)
print(response)
# x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_Distributed.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armworkloads_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_Distributed.json
func ExampleClient_SAPSizingRecommendations_sapSizingRecommendationsS4HanaDistributed() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armworkloads.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewClient().SAPSizingRecommendations(ctx, "centralus", &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armworkloads.ClientSAPSizingRecommendationsResponse{
// SAPSizingRecommendationResultClassification: &armworkloads.ThreeTierRecommendationResult{
// DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier),
// ApplicationServerInstanceCount: to.Ptr[int64](2),
// ApplicationServerVMSKU: to.Ptr("Standard_E8ds_v4"),
// CentralServerInstanceCount: to.Ptr[int64](1),
// CentralServerVMSKU: to.Ptr("Standard_E4ds_v4"),
// DatabaseInstanceCount: to.Ptr[int64](1),
// DbVMSKU: to.Ptr("Standard_M64s"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { WorkloadsClient } = require("@azure/arm-workloads");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
*
* @summary Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
* x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_Distributed.json
*/
async function sapSizingRecommendationsS4HanaDistributed() {
const subscriptionId =
process.env["WORKLOADS_SUBSCRIPTION_ID"] || "8e17e36c-42e9-4cd5-a078-7b44883414e0";
const location = "centralus";
const credential = new DefaultAzureCredential();
const client = new WorkloadsClient(credential, subscriptionId);
const result = await client.sAPSizingRecommendations(location);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Workloads.Models;
using Azure.ResourceManager.Workloads;
// Generated from example definition: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_Distributed.json
// this example is just showing the usage of "SapSizingRecommendations" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation
AzureLocation location = new AzureLocation("centralus");
SapSizingRecommendationResult result = await subscriptionResource.SapSizingRecommendationsAsync(location);
Console.WriteLine($"Succeeded: {result}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Mintaválasz
{
"deploymentType": "ThreeTier",
"applicationServerVmSku": "Standard_E8ds_v4",
"applicationServerInstanceCount": 2,
"centralServerVmSku": "Standard_E4ds_v4",
"centralServerInstanceCount": 1,
"dbVmSku": "Standard_M64s",
"databaseInstanceCount": 1
}
SAPSizingRecommendations_S4HANA_DistributedHA_AvSet
Mintakérelem
POST https://management.azure.com/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/providers/Microsoft.Workloads/locations/centralus/sapVirtualInstanceMetadata/default/getSizingRecommendations?api-version=2023-04-01
import com.azure.resourcemanager.workloads.models.SapDatabaseScaleMethod;
import com.azure.resourcemanager.workloads.models.SapDatabaseType;
import com.azure.resourcemanager.workloads.models.SapDeploymentType;
import com.azure.resourcemanager.workloads.models.SapEnvironmentType;
import com.azure.resourcemanager.workloads.models.SapHighAvailabilityType;
import com.azure.resourcemanager.workloads.models.SapProductType;
import com.azure.resourcemanager.workloads.models.SapSizingRecommendationRequest;
/**
* Samples for ResourceProvider SapSizingRecommendations.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/
* SAPSizingRecommendations_S4HANA_HA_AvSet.json
*/
/**
* Sample code: SAPSizingRecommendations_S4HANA_DistributedHA_AvSet.
*
* @param manager Entry point to WorkloadsManager.
*/
public static void
sAPSizingRecommendationsS4HANADistributedHAAvSet(com.azure.resourcemanager.workloads.WorkloadsManager manager) {
manager.resourceProviders().sapSizingRecommendationsWithResponse("centralus",
new SapSizingRecommendationRequest().withAppLocation("eastus").withEnvironment(SapEnvironmentType.PROD)
.withSapProduct(SapProductType.S4HANA).withDeploymentType(SapDeploymentType.THREE_TIER).withSaps(75000L)
.withDbMemory(1024L).withDatabaseType(SapDatabaseType.HANA)
.withDbScaleMethod(SapDatabaseScaleMethod.SCALE_UP)
.withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_SET),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.workloads import WorkloadsMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-workloads
# USAGE
python sap_sizing_recommendations_s4_hana_ha_av_set.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = WorkloadsMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="8e17e36c-42e9-4cd5-a078-7b44883414e0",
)
response = client.sap_sizing_recommendations(
location="centralus",
)
print(response)
# x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvSet.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armworkloads_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvSet.json
func ExampleClient_SAPSizingRecommendations_sapSizingRecommendationsS4HanaDistributedHaAvSet() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armworkloads.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewClient().SAPSizingRecommendations(ctx, "centralus", &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armworkloads.ClientSAPSizingRecommendationsResponse{
// SAPSizingRecommendationResultClassification: &armworkloads.ThreeTierRecommendationResult{
// DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier),
// ApplicationServerInstanceCount: to.Ptr[int64](3),
// ApplicationServerVMSKU: to.Ptr("Standard_E16ds_v4"),
// CentralServerInstanceCount: to.Ptr[int64](2),
// CentralServerVMSKU: to.Ptr("Standard_E8ds_v4"),
// DatabaseInstanceCount: to.Ptr[int64](2),
// DbVMSKU: to.Ptr("Standard_M64s"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { WorkloadsClient } = require("@azure/arm-workloads");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
*
* @summary Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
* x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvSet.json
*/
async function sapSizingRecommendationsS4HanaDistributedHaAvSet() {
const subscriptionId =
process.env["WORKLOADS_SUBSCRIPTION_ID"] || "8e17e36c-42e9-4cd5-a078-7b44883414e0";
const location = "centralus";
const credential = new DefaultAzureCredential();
const client = new WorkloadsClient(credential, subscriptionId);
const result = await client.sAPSizingRecommendations(location);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Workloads.Models;
using Azure.ResourceManager.Workloads;
// Generated from example definition: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvSet.json
// this example is just showing the usage of "SapSizingRecommendations" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation
AzureLocation location = new AzureLocation("centralus");
SapSizingRecommendationResult result = await subscriptionResource.SapSizingRecommendationsAsync(location);
Console.WriteLine($"Succeeded: {result}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Mintaválasz
{
"deploymentType": "ThreeTier",
"applicationServerVmSku": "Standard_E16ds_v4",
"applicationServerInstanceCount": 3,
"centralServerVmSku": "Standard_E8ds_v4",
"centralServerInstanceCount": 2,
"dbVmSku": "Standard_M64s",
"databaseInstanceCount": 2
}
SAPSizingRecommendations_S4HANA_DistributedHA_AvZone
Mintakérelem
POST https://management.azure.com/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/providers/Microsoft.Workloads/locations/centralus/sapVirtualInstanceMetadata/default/getSizingRecommendations?api-version=2023-04-01
import com.azure.resourcemanager.workloads.models.SapDatabaseScaleMethod;
import com.azure.resourcemanager.workloads.models.SapDatabaseType;
import com.azure.resourcemanager.workloads.models.SapDeploymentType;
import com.azure.resourcemanager.workloads.models.SapEnvironmentType;
import com.azure.resourcemanager.workloads.models.SapHighAvailabilityType;
import com.azure.resourcemanager.workloads.models.SapProductType;
import com.azure.resourcemanager.workloads.models.SapSizingRecommendationRequest;
/**
* Samples for ResourceProvider SapSizingRecommendations.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/
* SAPSizingRecommendations_S4HANA_HA_AvZone.json
*/
/**
* Sample code: SAPSizingRecommendations_S4HANA_DistributedHA_AvZone.
*
* @param manager Entry point to WorkloadsManager.
*/
public static void sAPSizingRecommendationsS4HANADistributedHAAvZone(
com.azure.resourcemanager.workloads.WorkloadsManager manager) {
manager.resourceProviders().sapSizingRecommendationsWithResponse("centralus",
new SapSizingRecommendationRequest().withAppLocation("eastus").withEnvironment(SapEnvironmentType.PROD)
.withSapProduct(SapProductType.S4HANA).withDeploymentType(SapDeploymentType.THREE_TIER).withSaps(75000L)
.withDbMemory(1024L).withDatabaseType(SapDatabaseType.HANA)
.withDbScaleMethod(SapDatabaseScaleMethod.SCALE_UP)
.withHighAvailabilityType(SapHighAvailabilityType.AVAILABILITY_ZONE),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.workloads import WorkloadsMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-workloads
# USAGE
python sap_sizing_recommendations_s4_hana_ha_av_zone.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = WorkloadsMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="8e17e36c-42e9-4cd5-a078-7b44883414e0",
)
response = client.sap_sizing_recommendations(
location="centralus",
)
print(response)
# x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvZone.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armworkloads_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvZone.json
func ExampleClient_SAPSizingRecommendations_sapSizingRecommendationsS4HanaDistributedHaAvZone() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armworkloads.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewClient().SAPSizingRecommendations(ctx, "centralus", &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armworkloads.ClientSAPSizingRecommendationsResponse{
// SAPSizingRecommendationResultClassification: &armworkloads.ThreeTierRecommendationResult{
// DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier),
// ApplicationServerInstanceCount: to.Ptr[int64](6),
// ApplicationServerVMSKU: to.Ptr("Standard_E8ds_v4"),
// CentralServerInstanceCount: to.Ptr[int64](2),
// CentralServerVMSKU: to.Ptr("Standard_E4ds_v4"),
// DatabaseInstanceCount: to.Ptr[int64](2),
// DbVMSKU: to.Ptr("Standard_M64s"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { WorkloadsClient } = require("@azure/arm-workloads");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
*
* @summary Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
* x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvZone.json
*/
async function sapSizingRecommendationsS4HanaDistributedHaAvZone() {
const subscriptionId =
process.env["WORKLOADS_SUBSCRIPTION_ID"] || "8e17e36c-42e9-4cd5-a078-7b44883414e0";
const location = "centralus";
const credential = new DefaultAzureCredential();
const client = new WorkloadsClient(credential, subscriptionId);
const result = await client.sAPSizingRecommendations(location);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Workloads.Models;
using Azure.ResourceManager.Workloads;
// Generated from example definition: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvZone.json
// this example is just showing the usage of "SapSizingRecommendations" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation
AzureLocation location = new AzureLocation("centralus");
SapSizingRecommendationResult result = await subscriptionResource.SapSizingRecommendationsAsync(location);
Console.WriteLine($"Succeeded: {result}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Mintaválasz
{
"deploymentType": "ThreeTier",
"applicationServerVmSku": "Standard_E8ds_v4",
"applicationServerInstanceCount": 6,
"centralServerVmSku": "Standard_E4ds_v4",
"centralServerInstanceCount": 2,
"dbVmSku": "Standard_M64s",
"databaseInstanceCount": 2
}
SAPSizingRecommendations_S4HANA_SingleServer
Mintakérelem
POST https://management.azure.com/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/providers/Microsoft.Workloads/locations/centralus/sapVirtualInstanceMetadata/default/getSizingRecommendations?api-version=2023-04-01
import com.azure.resourcemanager.workloads.models.SapDatabaseScaleMethod;
import com.azure.resourcemanager.workloads.models.SapDatabaseType;
import com.azure.resourcemanager.workloads.models.SapDeploymentType;
import com.azure.resourcemanager.workloads.models.SapEnvironmentType;
import com.azure.resourcemanager.workloads.models.SapProductType;
import com.azure.resourcemanager.workloads.models.SapSizingRecommendationRequest;
/**
* Samples for ResourceProvider SapSizingRecommendations.
*/
public final class Main {
/*
* x-ms-original-file:
* specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/
* SAPSizingRecommendations_S4HANA_SingleServer.json
*/
/**
* Sample code: SAPSizingRecommendations_S4HANA_SingleServer.
*
* @param manager Entry point to WorkloadsManager.
*/
public static void
sAPSizingRecommendationsS4HANASingleServer(com.azure.resourcemanager.workloads.WorkloadsManager manager) {
manager.resourceProviders().sapSizingRecommendationsWithResponse("centralus",
new SapSizingRecommendationRequest().withAppLocation("eastus").withEnvironment(SapEnvironmentType.NON_PROD)
.withSapProduct(SapProductType.S4HANA).withDeploymentType(SapDeploymentType.SINGLE_SERVER)
.withSaps(60000L).withDbMemory(2000L).withDatabaseType(SapDatabaseType.HANA)
.withDbScaleMethod(SapDatabaseScaleMethod.SCALE_UP),
com.azure.core.util.Context.NONE);
}
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
from azure.identity import DefaultAzureCredential
from azure.mgmt.workloads import WorkloadsMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-workloads
# USAGE
python sap_sizing_recommendations_s4_hana_single_server.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = WorkloadsMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="8e17e36c-42e9-4cd5-a078-7b44883414e0",
)
response = client.sap_sizing_recommendations(
location="centralus",
)
print(response)
# x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_SingleServer.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
package armworkloads_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/1e7b408f3323e7f5424745718fe62c7a043a2337/specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_SingleServer.json
func ExampleClient_SAPSizingRecommendations_sapSizingRecommendationsS4HanaSingleServer() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armworkloads.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
res, err := clientFactory.NewClient().SAPSizingRecommendations(ctx, "centralus", &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil})
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
// You could use response here. We use blank identifier for just demo purposes.
_ = res
// If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
// res = armworkloads.ClientSAPSizingRecommendationsResponse{
// SAPSizingRecommendationResultClassification: &armworkloads.SingleServerRecommendationResult{
// DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer),
// VMSKU: to.Ptr("Standard_M128s"),
// },
// }
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
const { WorkloadsClient } = require("@azure/arm-workloads");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
*
* @summary Get SAP sizing recommendations by providing input SAPS for application tier and memory required for database tier
* x-ms-original-file: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_SingleServer.json
*/
async function sapSizingRecommendationsS4HanaSingleServer() {
const subscriptionId =
process.env["WORKLOADS_SUBSCRIPTION_ID"] || "8e17e36c-42e9-4cd5-a078-7b44883414e0";
const location = "centralus";
const credential = new DefaultAzureCredential();
const client = new WorkloadsClient(credential, subscriptionId);
const result = await client.sAPSizingRecommendations(location);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
using Azure;
using Azure.ResourceManager;
using System;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.Resources;
using Azure.ResourceManager.Workloads.Models;
using Azure.ResourceManager.Workloads;
// Generated from example definition: specification/workloads/resource-manager/Microsoft.Workloads/stable/2023-04-01/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_SingleServer.json
// this example is just showing the usage of "SapSizingRecommendations" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
// authenticate your client
ArmClient client = new ArmClient(cred);
// this example assumes you already have this SubscriptionResource created on azure
// for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
// invoke the operation
AzureLocation location = new AzureLocation("centralus");
SapSizingRecommendationResult result = await subscriptionResource.SapSizingRecommendationsAsync(location);
Console.WriteLine($"Succeeded: {result}");
To use the Azure SDK library in your project, see this documentation. To provide feedback on this code sample, open a GitHub issue
Mintaválasz
{
"vmSku": "Standard_M128s",
"deploymentType": "SingleServer"
}
Definíciók
ErrorAdditionalInfo
Objektum
Az erőforrás-kezelési hiba további információi.
Name |
Típus |
Description |
info
|
object
|
A további információk.
|
type
|
string
|
A további információtípus.
|
ErrorDetail
Objektum
A hiba részletei.
Name |
Típus |
Description |
additionalInfo
|
ErrorAdditionalInfo[]
|
A hiba további információi.
|
code
|
string
|
A hibakód.
|
details
|
ErrorDetail[]
|
A hiba részletei.
|
message
|
string
|
A hibaüzenet.
|
target
|
string
|
A hibacél.
|
ErrorResponse
Objektum
Hibaválasz
Name |
Típus |
Description |
error
|
ErrorDetail
|
A hibaobjektum.
|
SAPDatabaseScaleMethod
Enumerálás
A DB skálázási módszere.
Érték |
Description |
ScaleUp
|
|
SAPDatabaseType
Enumerálás
Meghatározza a támogatott SAP-adatbázistípusokat.
Érték |
Description |
DB2
|
|
HANA
|
|
SAPDeploymentType
Enumerálás
Az üzembe helyezés típusa. Pl.: SingleServer/ThreeTier
Érték |
Description |
SingleServer
|
|
ThreeTier
|
|
SAPEnvironmentType
Enumerálás
Meghatározza a környezet típusát – Éles/Nem éles.
Érték |
Description |
NonProd
|
|
Prod
|
|
SAPHighAvailabilityType
Enumerálás
A magas rendelkezésre állás típusa.
Érték |
Description |
AvailabilitySet
|
|
AvailabilityZone
|
|
SAPProductType
Enumerálás
Az SAP-termék típusát határozza meg.
Érték |
Description |
ECC
|
|
Other
|
|
S4HANA
|
|
SAPSizingRecommendationRequest
Objektum
Az SAP méretezési javaslatkérése.
Name |
Típus |
Description |
appLocation
|
string
|
Az a földrajzi hely, ahol az erőforrást létre kell hozni.
|
databaseType
|
SAPDatabaseType
|
Az adatbázis típusa.
|
dbMemory
|
integer
(int64)
|
Az adatbázis memóriakonfigurációja.
|
dbScaleMethod
|
SAPDatabaseScaleMethod
|
A DB skálázási módszere.
|
deploymentType
|
SAPDeploymentType
|
Az üzembe helyezés típusa. Pl.: SingleServer/ThreeTier
|
environment
|
SAPEnvironmentType
|
Meghatározza a környezet típusát – Éles/Nem éles.
|
highAvailabilityType
|
SAPHighAvailabilityType
|
A magas rendelkezésre állás típusa.
|
sapProduct
|
SAPProductType
|
Az SAP-termék típusát határozza meg.
|
saps
|
integer
(int64)
|
Az SAP Application Performance Standard mérése.
|
SingleServerRecommendationResult
Objektum
Egy kiszolgálói SAP-rendszer ajánlott konfigurációja.
Name |
Típus |
Description |
deploymentType
|
string:
SingleServer
|
Az SAP-telepítés típusa, egykiszolgálós vagy háromszintű.
|
vmSku
|
string
|
Az egykiszolgálós virtuálisgép-termékváltozat ajánlott.
|
ThreeTierRecommendationResult
Objektum
A háromszintű SAP-rendszerek ajánlott konfigurációja.
Name |
Típus |
Description |
applicationServerInstanceCount
|
integer
(int64)
|
Az alkalmazáskiszolgáló példányainak száma.
|
applicationServerVmSku
|
string
|
Az alkalmazáskiszolgáló virtuálisgép-termékváltozata.
|
centralServerInstanceCount
|
integer
(int64)
|
A központi kiszolgáló példányainak száma.
|
centralServerVmSku
|
string
|
A központi kiszolgáló virtuálisgép-termékváltozata.
|
databaseInstanceCount
|
integer
(int64)
|
Az adatbázis-kiszolgáló példányainak száma.
|
dbVmSku
|
string
|
Az adatbázis virtuálisgép-termékváltozata.
|
deploymentType
|
string:
ThreeTier
|
Az SAP-telepítés típusa, egykiszolgálós vagy háromszintű.
|