mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
2874 lines
110 KiB
TypeScript
2874 lines
110 KiB
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateDetectDS.json
|
|
*/
|
|
|
|
import { WorkloadsClient } from "@azure/arm-workloadssapvirtualinstance";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
async function detectSAPSoftwareInstallationOnADistributedSystem(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "eastus2",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "{{resourcegrp}}",
|
|
applicationServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "azureuser",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: {
|
|
privateKey: "{{privateKey}}",
|
|
publicKey: "{{sshkey}}",
|
|
},
|
|
},
|
|
},
|
|
vmSize: "Standard_E4ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "azureuser",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: {
|
|
privateKey: "{{privateKey}}",
|
|
publicKey: "{{sshkey}}",
|
|
},
|
|
},
|
|
},
|
|
vmSize: "Standard_E4ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "azureuser",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: {
|
|
privateKey: "{{privateKey}}",
|
|
publicKey: "{{sshkey}}",
|
|
},
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
networkConfiguration: { isSecondaryIpEnabled: true },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "sap.bpaas.com" },
|
|
softwareConfiguration: {
|
|
centralServerVmId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
|
|
softwareInstallationType: "External",
|
|
},
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: { "created by": "azureuser" },
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateDetectHaAvailabilitySet.json
|
|
*/
|
|
async function detectSAPSoftwareInstallationOnAnHASystemWithAvailabilitySet(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilitySet" },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
softwareConfiguration: {
|
|
centralServerVmId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
|
|
softwareInstallationType: "External",
|
|
},
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateDetectHaAvailabilityZone.json
|
|
*/
|
|
async function detectSAPSoftwareInstallationOnAnHASystemWithAvailabilityZone(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilityZone" },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
softwareConfiguration: {
|
|
centralServerVmId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
|
|
softwareInstallationType: "External",
|
|
},
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateDetectSingleServer.json
|
|
*/
|
|
async function detectSAPSoftwareInstallationOnASingleServerSystem(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
databaseType: "HANA",
|
|
deploymentType: "SingleServer",
|
|
networkConfiguration: { isSecondaryIpEnabled: true },
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
softwareConfiguration: {
|
|
centralServerVmId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
|
|
softwareInstallationType: "External",
|
|
},
|
|
},
|
|
environment: "NonProd",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraDS.json
|
|
*/
|
|
async function createInfrastructureOnlyForDistributedSystem(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "Deployment",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
},
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraDiskOsDSRecommended.json
|
|
*/
|
|
async function createInfrastructureWithDiskAndOSConfigurationForDistributedSystemRecommended(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
diskConfiguration: {
|
|
diskVolumeConfigurations: {
|
|
backup: {
|
|
count: 2,
|
|
sizeGB: 256,
|
|
sku: { name: "StandardSSD_LRS" },
|
|
},
|
|
"hana/data": {
|
|
count: 4,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
"hana/log": {
|
|
count: 3,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
"hana/shared": {
|
|
count: 1,
|
|
sizeGB: 256,
|
|
sku: { name: "StandardSSD_LRS" },
|
|
},
|
|
os: { count: 1, sizeGB: 64, sku: { name: "StandardSSD_LRS" } },
|
|
"usr/sap": {
|
|
count: 1,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
},
|
|
},
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraDiskOsHaAvailabilitySetRecommended.json
|
|
*/
|
|
async function createInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilitySetRecommended(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
diskConfiguration: {
|
|
diskVolumeConfigurations: {
|
|
backup: {
|
|
count: 2,
|
|
sizeGB: 256,
|
|
sku: { name: "StandardSSD_LRS" },
|
|
},
|
|
"hana/data": {
|
|
count: 4,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
"hana/log": {
|
|
count: 3,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
"hana/shared": {
|
|
count: 1,
|
|
sizeGB: 256,
|
|
sku: { name: "StandardSSD_LRS" },
|
|
},
|
|
os: { count: 1, sizeGB: 64, sku: { name: "StandardSSD_LRS" } },
|
|
"usr/sap": {
|
|
count: 1,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
},
|
|
},
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilitySet" },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraDiskOsHaAvailabilityZoneRecommended.json
|
|
*/
|
|
async function createInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilityZoneRecommended(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
diskConfiguration: {
|
|
diskVolumeConfigurations: {
|
|
backup: {
|
|
count: 2,
|
|
sizeGB: 256,
|
|
sku: { name: "StandardSSD_LRS" },
|
|
},
|
|
"hana/data": {
|
|
count: 4,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
"hana/log": {
|
|
count: 3,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
"hana/shared": {
|
|
count: 1,
|
|
sizeGB: 256,
|
|
sku: { name: "StandardSSD_LRS" },
|
|
},
|
|
os: { count: 1, sizeGB: 64, sku: { name: "StandardSSD_LRS" } },
|
|
"usr/sap": {
|
|
count: 1,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
},
|
|
},
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilityZone" },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraDiskOsSingleServerRecommended.json
|
|
*/
|
|
async function createInfrastructureWithDiskAndOSConfigurationsForSingleServerSystemRecommended(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
databaseType: "HANA",
|
|
dbDiskConfiguration: {
|
|
diskVolumeConfigurations: {
|
|
backup: {
|
|
count: 2,
|
|
sizeGB: 256,
|
|
sku: { name: "StandardSSD_LRS" },
|
|
},
|
|
"hana/data": {
|
|
count: 4,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
"hana/log": {
|
|
count: 3,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
"hana/shared": {
|
|
count: 1,
|
|
sizeGB: 256,
|
|
sku: { name: "StandardSSD_LRS" },
|
|
},
|
|
os: { count: 1, sizeGB: 64, sku: { name: "StandardSSD_LRS" } },
|
|
"usr/sap": {
|
|
count: 1,
|
|
sizeGB: 128,
|
|
sku: { name: "Premium_LRS" },
|
|
},
|
|
},
|
|
},
|
|
deploymentType: "SingleServer",
|
|
networkConfiguration: { isSecondaryIpEnabled: true },
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "NonProd",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraHaAvailabilitySet.json
|
|
*/
|
|
async function createInfrastructureOnlyForHASystemWithAvailabilitySet(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "Deployment",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 5,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilitySet" },
|
|
},
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraHaAvailabilityZone.json
|
|
*/
|
|
async function createInfrastructureOnlyForHASystemWithAvailabilityZone(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "Deployment",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilityZone" },
|
|
},
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsComputeGalleryImage.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationWithAzureComputeGalleryImage(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "Deployment",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
id: "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/galleries/testgallery/images/rhelimagetest/versions/0.0.1",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
id: "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/galleries/testgallery/images/rhelimagetest/versions/0.0.1",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
id: "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/galleries/testgallery/images/rhelimagetest/versions/0.0.1",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilityZone" },
|
|
},
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsCustomResourceNamesDS.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationWithCustomResourceNamesForDistributedSystem(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
customResourceNames: {
|
|
applicationServer: {
|
|
availabilitySetName: "appAvSet",
|
|
virtualMachines: [
|
|
{
|
|
dataDiskNames: { default: ["app0disk0"] },
|
|
hostName: "apphostName0",
|
|
networkInterfaces: [{ networkInterfaceName: "appnic0" }],
|
|
osDiskName: "app0osdisk",
|
|
vmName: "appvm0",
|
|
},
|
|
{
|
|
dataDiskNames: { default: ["app1disk0"] },
|
|
hostName: "apphostName1",
|
|
networkInterfaces: [{ networkInterfaceName: "appnic1" }],
|
|
osDiskName: "app1osdisk",
|
|
vmName: "appvm1",
|
|
},
|
|
],
|
|
},
|
|
centralServer: {
|
|
virtualMachines: [
|
|
{
|
|
dataDiskNames: { default: ["ascsdisk0"] },
|
|
hostName: "ascshostName",
|
|
networkInterfaces: [{ networkInterfaceName: "ascsnic" }],
|
|
osDiskName: "ascsosdisk",
|
|
vmName: "ascsvm",
|
|
},
|
|
],
|
|
},
|
|
databaseServer: {
|
|
virtualMachines: [
|
|
{
|
|
dataDiskNames: {
|
|
hanaData: ["hanadata0", "hanadata1"],
|
|
hanaLog: ["hanalog0", "hanalog1", "hanalog2"],
|
|
hanaShared: ["hanashared0", "hanashared1"],
|
|
usrSap: ["usrsap0"],
|
|
},
|
|
hostName: "dbhostName",
|
|
networkInterfaces: [{ networkInterfaceName: "dbnic" }],
|
|
osDiskName: "dbosdisk",
|
|
vmName: "dbvm",
|
|
},
|
|
],
|
|
},
|
|
namingPatternType: "FullResourceName",
|
|
sharedStorage: {
|
|
sharedStorageAccountName: "storageacc",
|
|
sharedStorageAccountPrivateEndPointName: "peForxNFS",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsCustomResourceNamesHaAvailabilitySet.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationWithCustomResourceNamesForHASystemWithAvailabilitySet(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
customResourceNames: {
|
|
applicationServer: {
|
|
availabilitySetName: "appAvSet",
|
|
virtualMachines: [
|
|
{
|
|
dataDiskNames: { default: ["app0disk0"] },
|
|
hostName: "apphostName0",
|
|
networkInterfaces: [{ networkInterfaceName: "appnic0" }],
|
|
osDiskName: "app0osdisk",
|
|
vmName: "appvm0",
|
|
},
|
|
{
|
|
dataDiskNames: { default: ["app1disk0"] },
|
|
hostName: "apphostName1",
|
|
networkInterfaces: [{ networkInterfaceName: "appnic1" }],
|
|
osDiskName: "app1osdisk",
|
|
vmName: "appvm1",
|
|
},
|
|
],
|
|
},
|
|
centralServer: {
|
|
availabilitySetName: "csAvSet",
|
|
loadBalancer: {
|
|
backendPoolNames: ["ascsBackendPool"],
|
|
frontendIpConfigurationNames: ["ascsip0", "ersip0"],
|
|
healthProbeNames: ["ascsHealthProbe", "ersHealthProbe"],
|
|
loadBalancerName: "ascslb",
|
|
},
|
|
virtualMachines: [
|
|
{
|
|
hostName: "ascshostName",
|
|
networkInterfaces: [{ networkInterfaceName: "ascsnic" }],
|
|
osDiskName: "ascsosdisk",
|
|
vmName: "ascsvm",
|
|
},
|
|
{
|
|
hostName: "ershostName",
|
|
networkInterfaces: [{ networkInterfaceName: "ersnic" }],
|
|
osDiskName: "ersosdisk",
|
|
vmName: "ersvm",
|
|
},
|
|
],
|
|
},
|
|
databaseServer: {
|
|
availabilitySetName: "dbAvSet",
|
|
loadBalancer: {
|
|
backendPoolNames: ["dbBackendPool"],
|
|
frontendIpConfigurationNames: ["dbip"],
|
|
healthProbeNames: ["dbHealthProbe"],
|
|
loadBalancerName: "dblb",
|
|
},
|
|
virtualMachines: [
|
|
{
|
|
dataDiskNames: {
|
|
hanaData: ["hanadatapr0", "hanadatapr1"],
|
|
hanaLog: ["hanalogpr0", "hanalogpr1", "hanalogpr2"],
|
|
hanaShared: ["hanasharedpr0", "hanasharedpr1"],
|
|
usrSap: ["usrsappr0"],
|
|
},
|
|
hostName: "dbprhostName",
|
|
networkInterfaces: [{ networkInterfaceName: "dbprnic" }],
|
|
osDiskName: "dbprosdisk",
|
|
vmName: "dbvmpr",
|
|
},
|
|
{
|
|
dataDiskNames: {
|
|
hanaData: ["hanadatasr0", "hanadatasr1"],
|
|
hanaLog: ["hanalogsr0", "hanalogsr1", "hanalogsr2"],
|
|
hanaShared: ["hanasharedsr0", "hanasharedsr1"],
|
|
usrSap: ["usrsapsr0"],
|
|
},
|
|
hostName: "dbsrhostName",
|
|
networkInterfaces: [{ networkInterfaceName: "dbsrnic" }],
|
|
osDiskName: "dbsrosdisk",
|
|
vmName: "dbvmsr",
|
|
},
|
|
],
|
|
},
|
|
namingPatternType: "FullResourceName",
|
|
sharedStorage: {
|
|
sharedStorageAccountName: "storageacc",
|
|
sharedStorageAccountPrivateEndPointName: "peForxNFS",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilitySet" },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsCustomResourceNamesHaAvailabilityZone.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationWithCustomResourceNamesForHASystemWithAvailabilityZone(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
customResourceNames: {
|
|
applicationServer: {
|
|
virtualMachines: [
|
|
{
|
|
dataDiskNames: { default: ["app0disk0"] },
|
|
hostName: "apphostName0",
|
|
networkInterfaces: [{ networkInterfaceName: "appnic0" }],
|
|
osDiskName: "app0osdisk",
|
|
vmName: "appvm0",
|
|
},
|
|
{
|
|
dataDiskNames: { default: ["app1disk0"] },
|
|
hostName: "apphostName1",
|
|
networkInterfaces: [{ networkInterfaceName: "appnic1" }],
|
|
osDiskName: "app1osdisk",
|
|
vmName: "appvm1",
|
|
},
|
|
],
|
|
},
|
|
centralServer: {
|
|
loadBalancer: {
|
|
backendPoolNames: ["ascsBackendPool"],
|
|
frontendIpConfigurationNames: ["ascsip0", "ersip0"],
|
|
healthProbeNames: ["ascsHealthProbe", "ersHealthProbe"],
|
|
loadBalancerName: "ascslb",
|
|
},
|
|
virtualMachines: [
|
|
{
|
|
hostName: "ascshostName",
|
|
networkInterfaces: [{ networkInterfaceName: "ascsnic" }],
|
|
osDiskName: "ascsosdisk",
|
|
vmName: "ascsvm",
|
|
},
|
|
{
|
|
hostName: "ershostName",
|
|
networkInterfaces: [{ networkInterfaceName: "ersnic" }],
|
|
osDiskName: "ersosdisk",
|
|
vmName: "ersvm",
|
|
},
|
|
],
|
|
},
|
|
databaseServer: {
|
|
loadBalancer: {
|
|
backendPoolNames: ["dbBackendPool"],
|
|
frontendIpConfigurationNames: ["dbip"],
|
|
healthProbeNames: ["dbHealthProbe"],
|
|
loadBalancerName: "dblb",
|
|
},
|
|
virtualMachines: [
|
|
{
|
|
dataDiskNames: {
|
|
hanaData: ["hanadatapr0", "hanadatapr1"],
|
|
hanaLog: ["hanalogpr0", "hanalogpr1", "hanalogpr2"],
|
|
hanaShared: ["hanasharedpr0", "hanasharedpr1"],
|
|
usrSap: ["usrsappr0"],
|
|
},
|
|
hostName: "dbprhostName",
|
|
networkInterfaces: [{ networkInterfaceName: "dbprnic" }],
|
|
osDiskName: "dbprosdisk",
|
|
vmName: "dbvmpr",
|
|
},
|
|
{
|
|
dataDiskNames: {
|
|
hanaData: ["hanadatasr0", "hanadatasr1"],
|
|
hanaLog: ["hanalogsr0", "hanalogsr1", "hanalogsr2"],
|
|
hanaShared: ["hanasharedsr0", "hanasharedsr1"],
|
|
usrSap: ["usrsapsr0"],
|
|
},
|
|
hostName: "dbsrhostName",
|
|
networkInterfaces: [{ networkInterfaceName: "dbsrnic" }],
|
|
osDiskName: "dbsrosdisk",
|
|
vmName: "dbvmsr",
|
|
},
|
|
],
|
|
},
|
|
namingPatternType: "FullResourceName",
|
|
sharedStorage: {
|
|
sharedStorageAccountName: "storageacc",
|
|
sharedStorageAccountPrivateEndPointName: "peForxNFS",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilityZone" },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsCustomResourceNamesSingleServer.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationWithCustomResourceNamesForSingleServerSystem(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
databaseType: "HANA",
|
|
deploymentType: "SingleServer",
|
|
networkConfiguration: { isSecondaryIpEnabled: true },
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "NonProd",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsDSRecommended.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationForDistributedSystemRecommended(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsHaAvailabilitySetRecommended.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationForHASystemWithAvailabilitySetRecommended(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilitySet" },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsHaAvailabilityZoneRecommended.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationForHASystemWithAvailabilityZoneRecommended(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
highAvailabilityConfig: { highAvailabilityType: "AvailabilityZone" },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraOsSIngleServerRecommended.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationForSingleServerSystemRecommended(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
databaseType: "HANA",
|
|
deploymentType: "SingleServer",
|
|
networkConfiguration: { isSecondaryIpEnabled: true },
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "NonProd",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraSingleServer.json
|
|
*/
|
|
async function createInfrastructureOnlyForSingleServerSystem(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "Deployment",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
databaseType: "HANA",
|
|
deploymentType: "SingleServer",
|
|
networkConfiguration: { isSecondaryIpEnabled: true },
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
ssh: { publicKeys: [{ keyData: "ssh-rsa public key" }] },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
},
|
|
environment: "NonProd",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraWithExistingFileshare.json
|
|
*/
|
|
async function createInfrastructureWithAnExistingSAPTransportDirectoryFileshare(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
storageConfiguration: {
|
|
transportFileShareConfiguration: {
|
|
configurationType: "Mount",
|
|
id: "/subscriptions/49d64d54-e888-4c46-a868-1936802b762c/resourceGroups/testrg/providers/Microsoft.Network/privateEndpoints/endpoint",
|
|
privateEndpointId:
|
|
"/subscriptions/49d64d54-e888-4c46-a868-1936802b762c/resourceGroups/testrg/providers/Microsoft.Network/privateEndpoints/endpoint",
|
|
},
|
|
},
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraWithNewFileshare.json
|
|
*/
|
|
async function createInfrastructureWithANewSAPTransportDirectoryFileshare(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
storageConfiguration: {
|
|
transportFileShareConfiguration: {
|
|
configurationType: "CreateAndMount",
|
|
resourceGroup: "rgName",
|
|
storageAccountName: "storageName",
|
|
},
|
|
},
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraWithOsTrustedAccess.json
|
|
*/
|
|
async function createInfrastructureWithOSConfigurationWithTrustedAccessEnabled(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
managedResourcesNetworkAccessType: "Private",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInfraWithoutFileshare.json
|
|
*/
|
|
async function createInfrastructureWithoutASAPTransportDirectoryFileshare(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "westcentralus",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "X00-RG",
|
|
applicationServer: {
|
|
instanceCount: 6,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_E16ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
databaseType: "HANA",
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP",
|
|
publisher: "RedHat",
|
|
sku: "84sapha-gen2",
|
|
version: "latest",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "{your-username}",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: { privateKey: "xyz", publicKey: "abc" },
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
storageConfiguration: {
|
|
transportFileShareConfiguration: { configurationType: "Skip" },
|
|
},
|
|
},
|
|
osSapConfiguration: { sapFqdn: "xyz.test.com" },
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInstallDS.json
|
|
*/
|
|
async function installSAPSoftwareOnDistributedSystem(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "eastus2",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "{{resourcegrp}}",
|
|
applicationServer: {
|
|
instanceCount: 2,
|
|
subnetId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "8.2",
|
|
version: "8.2.2021091201",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "azureuser",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: {
|
|
privateKey: "{{privateKey}}",
|
|
publicKey: "{{sshkey}}",
|
|
},
|
|
},
|
|
},
|
|
vmSize: "Standard_E4ds_v4",
|
|
},
|
|
},
|
|
centralServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "8.2",
|
|
version: "8.2.2021091201",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "azureuser",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: {
|
|
privateKey: "{{privateKey}}",
|
|
publicKey: "{{sshkey}}",
|
|
},
|
|
},
|
|
},
|
|
vmSize: "Standard_E4ds_v4",
|
|
},
|
|
},
|
|
databaseServer: {
|
|
instanceCount: 1,
|
|
subnetId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "RHEL-SAP-HA",
|
|
publisher: "RedHat",
|
|
sku: "8.2",
|
|
version: "8.2.2021091201",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "azureuser",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: {
|
|
privateKey: "{{privateKey}}",
|
|
publicKey: "{{sshkey}}",
|
|
},
|
|
},
|
|
},
|
|
vmSize: "Standard_M32ts",
|
|
},
|
|
},
|
|
deploymentType: "ThreeTier",
|
|
networkConfiguration: { isSecondaryIpEnabled: true },
|
|
},
|
|
osSapConfiguration: { sapFqdn: "sap.bpaas.com" },
|
|
softwareConfiguration: {
|
|
bomUrl:
|
|
"https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml",
|
|
sapBitsStorageAccountId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount",
|
|
softwareInstallationType: "SAPInstallWithoutOSConfig",
|
|
softwareVersion: "SAP S/4HANA 1909 SPS 03",
|
|
},
|
|
},
|
|
environment: "Prod",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: { "created by": "azureuser" },
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateInstallSingleServer.json
|
|
*/
|
|
async function installSAPSoftwareOnSingleServerSystem(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "eastus2",
|
|
properties: {
|
|
configuration: {
|
|
appLocation: "eastus",
|
|
configurationType: "DeploymentWithOSConfig",
|
|
infrastructureConfiguration: {
|
|
appResourceGroup: "test-rg",
|
|
deploymentType: "SingleServer",
|
|
subnetId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/testsubnet",
|
|
virtualMachineConfiguration: {
|
|
imageReference: {
|
|
offer: "SLES-SAP",
|
|
publisher: "SUSE",
|
|
sku: "12-sp4-gen2",
|
|
version: "2022.02.01",
|
|
},
|
|
osProfile: {
|
|
adminUsername: "azureappadmin",
|
|
osConfiguration: {
|
|
disablePasswordAuthentication: true,
|
|
osType: "Linux",
|
|
sshKeyPair: {
|
|
privateKey: "{{privateKey}}",
|
|
publicKey: "{{sshkey}}",
|
|
},
|
|
},
|
|
},
|
|
vmSize: "Standard_E32ds_v4",
|
|
},
|
|
},
|
|
osSapConfiguration: { sapFqdn: "sap.bpaas.com" },
|
|
softwareConfiguration: {
|
|
bomUrl:
|
|
"https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml",
|
|
sapBitsStorageAccountId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount",
|
|
softwareInstallationType: "SAPInstallWithoutOSConfig",
|
|
softwareVersion: "SAP S/4HANA 1909 SPS 03",
|
|
},
|
|
},
|
|
environment: "NonProd",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: {},
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateRegisterSapSolutions.json
|
|
*/
|
|
async function registerExistingSAPSystemAsVirtualInstanceForSAPSolutions(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "northeurope",
|
|
properties: {
|
|
configuration: {
|
|
centralServerVmId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
|
|
configurationType: "Discovery",
|
|
},
|
|
environment: "NonProd",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: { createdby: "[email protected]", test: "abc" },
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateRegisterSapSolutionsCustom.json
|
|
*/
|
|
async function registerExistingSAPSystemAsVirtualInstanceForSAPSolutionsWithOptionalCustomizations(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "northeurope",
|
|
properties: {
|
|
configuration: {
|
|
centralServerVmId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
|
|
configurationType: "Discovery",
|
|
managedRgStorageAccountName: "q20saacssgrs",
|
|
},
|
|
environment: "NonProd",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: { createdby: "[email protected]", test: "abc" },
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
/**
|
|
* This sample demonstrates how to creates a Virtual Instance for SAP solutions (VIS) resource
|
|
*
|
|
* @summary creates a Virtual Instance for SAP solutions (VIS) resource
|
|
* x-ms-original-file: 2024-09-01/SapVirtualInstances_CreateRegisterWithTrustedAccess.json
|
|
*/
|
|
async function registerWithTrustedAccessEnabled(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
|
|
const client = new WorkloadsClient(credential, subscriptionId);
|
|
const result = await client.sapVirtualInstances.create("test-rg", "X00", {
|
|
location: "northeurope",
|
|
properties: {
|
|
configuration: {
|
|
centralServerVmId:
|
|
"/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
|
|
configurationType: "Discovery",
|
|
},
|
|
environment: "NonProd",
|
|
managedResourcesNetworkAccessType: "Private",
|
|
sapProduct: "S4HANA",
|
|
},
|
|
tags: { createdby: "[email protected]", test: "abc" },
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await detectSAPSoftwareInstallationOnADistributedSystem();
|
|
await detectSAPSoftwareInstallationOnAnHASystemWithAvailabilitySet();
|
|
await detectSAPSoftwareInstallationOnAnHASystemWithAvailabilityZone();
|
|
await detectSAPSoftwareInstallationOnASingleServerSystem();
|
|
await createInfrastructureOnlyForDistributedSystem();
|
|
await createInfrastructureWithDiskAndOSConfigurationForDistributedSystemRecommended();
|
|
await createInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilitySetRecommended();
|
|
await createInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilityZoneRecommended();
|
|
await createInfrastructureWithDiskAndOSConfigurationsForSingleServerSystemRecommended();
|
|
await createInfrastructureOnlyForHASystemWithAvailabilitySet();
|
|
await createInfrastructureOnlyForHASystemWithAvailabilityZone();
|
|
await createInfrastructureWithOSConfigurationWithAzureComputeGalleryImage();
|
|
await createInfrastructureWithOSConfigurationWithCustomResourceNamesForDistributedSystem();
|
|
await createInfrastructureWithOSConfigurationWithCustomResourceNamesForHASystemWithAvailabilitySet();
|
|
await createInfrastructureWithOSConfigurationWithCustomResourceNamesForHASystemWithAvailabilityZone();
|
|
await createInfrastructureWithOSConfigurationWithCustomResourceNamesForSingleServerSystem();
|
|
await createInfrastructureWithOSConfigurationForDistributedSystemRecommended();
|
|
await createInfrastructureWithOSConfigurationForHASystemWithAvailabilitySetRecommended();
|
|
await createInfrastructureWithOSConfigurationForHASystemWithAvailabilityZoneRecommended();
|
|
await createInfrastructureWithOSConfigurationForSingleServerSystemRecommended();
|
|
await createInfrastructureOnlyForSingleServerSystem();
|
|
await createInfrastructureWithAnExistingSAPTransportDirectoryFileshare();
|
|
await createInfrastructureWithANewSAPTransportDirectoryFileshare();
|
|
await createInfrastructureWithOSConfigurationWithTrustedAccessEnabled();
|
|
await createInfrastructureWithoutASAPTransportDirectoryFileshare();
|
|
await installSAPSoftwareOnDistributedSystem();
|
|
await installSAPSoftwareOnSingleServerSystem();
|
|
await registerExistingSAPSystemAsVirtualInstanceForSAPSolutions();
|
|
await registerExistingSAPSystemAsVirtualInstanceForSAPSolutionsWithOptionalCustomizations();
|
|
await registerWithTrustedAccessEnabled();
|
|
}
|
|
|
|
main().catch(console.error);
|