Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.sap_workloads.monitors

Fields

NameDatatypeDescription
app_locationtextfield from the properties object
errorstextfield 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
log_analytics_workspace_arm_idtextfield from the properties object
managed_resource_group_configurationtextfield from the properties object
monitorNametextfield from the properties object
monitor_subnettextfield from the properties object
msi_arm_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
routing_preferencetextfield from the properties object
storage_account_arm_idtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
zone_redundancy_preferencetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmonitorName, resourceGroupName, subscriptionIdGets properties of a SAP monitor for the specified subscription, resource group, and resource name.
listSELECTsubscriptionIdGets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of SAP monitors in the specified resource group.
createINSERTmonitorName, resourceGroupName, subscriptionIdCreates a SAP monitor for the specified subscription, resource group, and resource name.
deleteDELETEmonitorName, resourceGroupName, subscriptionIdDeletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.
updateUPDATEmonitorName, resourceGroupName, subscriptionIdPatches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.

SELECT examples

Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.

SELECT
app_location,
errors,
identity,
location,
log_analytics_workspace_arm_id,
managed_resource_group_configuration,
monitorName,
monitor_subnet,
msi_arm_id,
provisioning_state,
resourceGroupName,
routing_preference,
storage_account_arm_id,
subscriptionId,
tags,
zone_redundancy_preference
FROM azure_isv.sap_workloads.vw_monitors
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a monitors resource.

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

DELETE example

Deletes the specified monitors resource.

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