Skip to main content

server_instances

Creates, updates, deletes, gets or lists a server_instances resource.

Overview

Nameserver_instances
TypeResource
Idazure_extras.migration_discovery_sap.server_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
configurationDataobjectConfiguration data for this server instance.
errorsobjectDefines the errors related to SAP Instance resource.
instanceSidstringThis is the Instance SID for ASCS/AP/DB instance. An SAP system with HANA database for example could have a different SID for database Instance than that of ASCS instance.
operatingSystemstringThis is Operating System on which the host server is running. Known values are: "IBMAIX", "RedHat", "SUSE", "Solaris", "Unix", and "WindowsServer".
performanceDataobjectConfiguration data for this server instance.
provisioningStatestringDefines the provisioning states. Known values are: "Succeeded", "Updating", "Failed", "Creating", "Canceled", "Accepted", "Deleting", and "Unknown".
sapInstanceTypestringDefines the type SAP instance on this server instance. Known values are: "ASCS", "DB", "APP", "SCS", and "WEBDISP".
sapProductstringThis is the SAP Application Component; e.g. SAP S/4HANA 2022, SAP ERP ENHANCE PACKAGE.
sapProductVersionstringProvide the product version of the SAP product.
serverNamestringThis is the Virtual Machine Name of the SAP system. Add all the virtual machines attached to an SAP system which you wish to migrate to Azure. Keeping this not equal to ID as for single tier all InstanceTypes would be on same server, leading to multiple resources with same servername.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, sap_discovery_site_name, sap_instance_name, server_instance_name, subscription_idGets the Server Instance resource.
list_by_sap_instanceselectresource_group_name, sap_discovery_site_name, sap_instance_name, subscription_idLists the Server Instance resources for the given SAP Instance resource.
createinsertresource_group_name, sap_discovery_site_name, sap_instance_name, server_instance_name, subscription_idCreates the Server Instance resource. ;This will be used by service only. PUT operation on this resource by end user will return a Bad Request error.
updateupdateresource_group_name, sap_discovery_site_name, sap_instance_name, server_instance_name, subscription_idUpdates the Server Instance resource. This operation on a resource by end user will return a Bad Request error.
deletedeleteresource_group_name, sap_discovery_site_name, sap_instance_name, server_instance_name, subscription_idDeletes the Server Instance resource. ;This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which is the SAP Migration discovery site resource, using the delete operation on it.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
sap_discovery_site_namestringThe name of the discovery site resource for SAP Migration. Required.
sap_instance_namestringThe name of SAP Instance resource for SAP Migration. Required.
server_instance_namestringThe name of the Server instance resource for SAP Migration. Required.
subscription_idstring

SELECT examples

Gets the Server Instance resource.

SELECT
id,
name,
configurationData,
errors,
instanceSid,
operatingSystem,
performanceData,
provisioningState,
sapInstanceType,
sapProduct,
sapProductVersion,
serverName,
systemData,
type
FROM azure_extras.migration_discovery_sap.server_instances
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND sap_discovery_site_name = '{{ sap_discovery_site_name }}' -- required
AND sap_instance_name = '{{ sap_instance_name }}' -- required
AND server_instance_name = '{{ server_instance_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates the Server Instance resource. ;This will be used by service only. PUT operation on this resource by end user will return a Bad Request error.

INSERT INTO azure_extras.migration_discovery_sap.server_instances (
properties,
resource_group_name,
sap_discovery_site_name,
sap_instance_name,
server_instance_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ sap_discovery_site_name }}',
'{{ sap_instance_name }}',
'{{ server_instance_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates the Server Instance resource. This operation on a resource by end user will return a Bad Request error.

UPDATE azure_extras.migration_discovery_sap.server_instances
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND sap_discovery_site_name = '{{ sap_discovery_site_name }}' --required
AND sap_instance_name = '{{ sap_instance_name }}' --required
AND server_instance_name = '{{ server_instance_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes the Server Instance resource. ;This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can delete the parent resource, which is the SAP Migration discovery site resource, using the delete operation on it.

DELETE FROM azure_extras.migration_discovery_sap.server_instances
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND sap_discovery_site_name = '{{ sap_discovery_site_name }}' --required
AND sap_instance_name = '{{ sap_instance_name }}' --required
AND server_instance_name = '{{ server_instance_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;