Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.sap_workloads.monitors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
identityobjectA pre-created user assigned identity with appropriate roles assigned. To learn more on identity and roles required, visit the ACSS how-to-guide.
locationstringThe geo-location where the resource lives
propertiesobjectSAP monitor properties
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, monitorNameGets properties of a SAP monitor for the specified subscription, resource group, and resource name.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGets a list of SAP monitors in the specified resource group.
listselectsubscriptionIdGets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.
createinsertsubscriptionId, resourceGroupName, monitorNameCreates a SAP monitor for the specified subscription, resource group, and resource name.
updateupdatesubscriptionId, resourceGroupName, monitorNamePatches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.
deletedeletesubscriptionId, resourceGroupName, monitorNameDeletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.

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
monitorNamestringName of the SAP monitor resource.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.

SELECT
identity,
location,
properties,
tags
FROM azure_isv.sap_workloads.monitors
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND monitorName = '{{ monitorName }}' -- required
;

INSERT examples

Creates a SAP monitor for the specified subscription, resource group, and resource name.

INSERT INTO azure_isv.sap_workloads.monitors (
data__identity,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
monitorName
)
SELECT
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ monitorName }}'
RETURNING
identity,
location,
properties,
tags
;

UPDATE examples

Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.

UPDATE azure_isv.sap_workloads.monitors
SET
data__tags = '{{ tags }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND monitorName = '{{ monitorName }}' --required
RETURNING
identity,
location,
properties,
tags;

DELETE examples

Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.

DELETE FROM azure_isv.sap_workloads.monitors
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND monitorName = '{{ monitorName }}' --required
;