Skip to main content

sap_virtual_instances

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

Overview

Namesap_virtual_instances
TypeResource
Idazure_isv.sap_workloads.sap_virtual_instances

Fields

NameDatatypeDescription
configurationtextfield from the properties object
environmenttextfield from the properties object
errorstextfield from the properties object
healthtextfield from the properties object
identitytextA pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit the ACSS how-to-guide.
locationtextThe geo-location where the resource lives
managed_resource_group_configurationtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sapVirtualInstanceNametextfield from the properties object
sap_producttextfield from the properties object
statetextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, sapVirtualInstanceName, subscriptionIdGets a Virtual Instance for SAP solutions resource
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all Virtual Instances for SAP solutions resources in a Resource Group.
list_by_subscriptionSELECTsubscriptionIdGets all Virtual Instances for SAP solutions resources in a Subscription.
createINSERTresourceGroupName, sapVirtualInstanceName, subscriptionId, data__propertiesCreates a Virtual Instance for SAP solutions (VIS) resource
deleteDELETEresourceGroupName, sapVirtualInstanceName, subscriptionIdDeletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central Services Instance, Application Server Instances and Database Instance.
updateUPDATEresourceGroupName, sapVirtualInstanceName, subscriptionIdUpdates a Virtual Instance for SAP solutions resource
startEXECresourceGroupName, sapVirtualInstanceName, subscriptionIdStarts the SAP application, that is the Central Services instance and Application server instances.
stopEXECresourceGroupName, sapVirtualInstanceName, subscriptionIdStops the SAP Application, that is the Application server instances and Central Services instance.

SELECT examples

Gets all Virtual Instances for SAP solutions resources in a Subscription.

SELECT
configuration,
environment,
errors,
health,
identity,
location,
managed_resource_group_configuration,
provisioning_state,
resourceGroupName,
sapVirtualInstanceName,
sap_product,
state,
status,
subscriptionId,
tags
FROM azure_isv.sap_workloads.vw_sap_virtual_instances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new sap_virtual_instances resource.

/*+ create */
INSERT INTO azure_isv.sap_workloads.sap_virtual_instances (
resourceGroupName,
sapVirtualInstanceName,
subscriptionId,
data__properties,
tags,
location,
identity,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ sapVirtualInstanceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a sap_virtual_instances resource.

/*+ update */
UPDATE azure_isv.sap_workloads.sap_virtual_instances
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND sapVirtualInstanceName = '{{ sapVirtualInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified sap_virtual_instances resource.

/*+ delete */
DELETE FROM azure_isv.sap_workloads.sap_virtual_instances
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sapVirtualInstanceName = '{{ sapVirtualInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';