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.workloadssapvirtualinstance.sap_virtual_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.
configurationobjectDefines if the SAP system is being created using Azure Center for SAP solutions (ACSS) or if an existing SAP system is being registered with ACSS. Required.
environmentstringDefines the environment type - Production/Non Production. Required. Known values are: "NonProd" and "Prod". (NonProd, Prod)
errorsobjectIndicates any errors on the Virtual Instance for SAP solutions resource.
healthstringDefines the health of SAP Instances. Known values are: "Unknown", "Healthy", "Unhealthy", and "Degraded". (Unknown, Healthy, Unhealthy, Degraded)
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives. Required.
managedResourceGroupConfigurationobjectManaged resource group configuration.
managedResourcesNetworkAccessTypestringSpecifies the network access configuration for the resources that will be deployed in the Managed Resource Group. The options to choose from are Public and Private. If 'Private' is chosen, the Storage Account service tag should be enabled on the subnets in which the SAP VMs exist. This is required for establishing connectivity between VM extensions and the managed resource group storage account. This setting is currently applicable only to Storage Account. Learn more here https://go.microsoft.com/fwlink/?linkid=2247228 _. Known values are: "Public" and "Private". (Public, Private)
provisioningStatestringDefines the provisioning states. Known values are: "Succeeded", "Updating", "Creating", "Failed", "Deleting", and "Canceled". (Succeeded, Updating, Creating, Failed, Deleting, Canceled)
sapProductstringDefines the SAP Product type. Required. Known values are: "ECC", "S4HANA", and "Other". (ECC, S4HANA, Other)
statestringDefines the Virtual Instance for SAP state. Known values are: "InfrastructureDeploymentPending", "InfrastructureDeploymentInProgress", "InfrastructureDeploymentFailed", "SoftwareInstallationPending", "SoftwareInstallationInProgress", "SoftwareInstallationFailed", "SoftwareDetectionInProgress", "SoftwareDetectionFailed", "DiscoveryPending", "DiscoveryInProgress", "DiscoveryFailed", "RegistrationComplete", and "ACSSInstallationBlocked". (InfrastructureDeploymentPending, InfrastructureDeploymentInProgress, InfrastructureDeploymentFailed, SoftwareInstallationPending, SoftwareInstallationInProgress, SoftwareInstallationFailed, SoftwareDetectionInProgress, SoftwareDetectionFailed, DiscoveryPending, DiscoveryInProgress, DiscoveryFailed, RegistrationComplete, ACSSInstallationBlocked)
statusstringDefines the SAP Instance status. Known values are: "Starting", "Running", "Stopping", "Offline", "PartiallyRunning", "Unavailable", and "SoftShutdown". (Starting, Running, Stopping, Offline, PartiallyRunning, Unavailable, SoftShutdown)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
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_virtual_instance_name, subscription_idGets a Virtual Instance for SAP solutions resource.
list_by_resource_groupselectresource_group_name, subscription_idGets all Virtual Instances for SAP solutions resources in a Resource Group.
list_by_subscriptionselectsubscription_idGets all Virtual Instances for SAP solutions resources in a Subscription.
createinsertresource_group_name, sap_virtual_instance_name, subscription_id, locationCreates a Virtual Instance for SAP solutions (VIS) resource.
updateupdateresource_group_name, sap_virtual_instance_name, subscription_idUpdates a Virtual Instance for SAP solutions resource.
deletedeleteresource_group_name, sap_virtual_instance_name, subscription_idDeletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central Services Instance, Application Server Instances and Database Instance.
get_sizing_recommendationsexeclocation, subscription_id, appLocation, environment, sapProduct, deploymentType, saps, dbMemory, databaseTypeGets the sizing recommendations.
get_sap_supported_skuexeclocation, subscription_id, appLocation, environment, sapProduct, deploymentType, databaseTypeGet a list of SAP supported SKUs for ASCS, Application and Database tier.
get_disk_configurationsexeclocation, subscription_id, appLocation, environment, sapProduct, databaseType, deploymentType, dbVmSkuGet the SAP Disk Configuration Layout prod/non-prod SAP System.
get_availability_zone_detailsexeclocation, subscription_id, appLocation, sapProduct, databaseTypeGet the recommended SAP Availability Zone Pair Details for your region.
startexecresource_group_name, sap_virtual_instance_name, subscription_idStarts the SAP application, that is the Central Services instance and Application server instances.
stopexecresource_group_name, sap_virtual_instance_name, subscription_idStops the SAP Application, that is the Application server instances and Central Services instance.

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
locationstringThe name of the Azure region. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
sap_virtual_instance_namestringThe name of the Virtual Instances for SAP solutions resource. Required.
subscription_idstring

SELECT examples

Gets a Virtual Instance for SAP solutions resource.

SELECT
id,
name,
configuration,
environment,
errors,
health,
identity,
location,
managedResourceGroupConfiguration,
managedResourcesNetworkAccessType,
provisioningState,
sapProduct,
state,
status,
systemData,
tags,
type
FROM azure_isv.workloadssapvirtualinstance.sap_virtual_instances
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND sap_virtual_instance_name = '{{ sap_virtual_instance_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a Virtual Instance for SAP solutions (VIS) resource.

INSERT INTO azure_isv.workloadssapvirtualinstance.sap_virtual_instances (
tags,
location,
properties,
identity,
resource_group_name,
sap_virtual_instance_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ sap_virtual_instance_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a Virtual Instance for SAP solutions resource.

UPDATE azure_isv.workloadssapvirtualinstance.sap_virtual_instances
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND sap_virtual_instance_name = '{{ sap_virtual_instance_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central Services Instance, Application Server Instances and Database Instance.

DELETE FROM azure_isv.workloadssapvirtualinstance.sap_virtual_instances
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND sap_virtual_instance_name = '{{ sap_virtual_instance_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the sizing recommendations.

EXEC azure_isv.workloadssapvirtualinstance.sap_virtual_instances.get_sizing_recommendations 
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"appLocation": "{{ appLocation }}",
"environment": "{{ environment }}",
"sapProduct": "{{ sapProduct }}",
"deploymentType": "{{ deploymentType }}",
"saps": {{ saps }},
"dbMemory": {{ dbMemory }},
"databaseType": "{{ databaseType }}",
"dbScaleMethod": "{{ dbScaleMethod }}",
"highAvailabilityType": "{{ highAvailabilityType }}"
}'
;