Skip to main content

sap_monitors

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

Overview

Namesap_monitors
TypeResource
Idazure_isv.hanaonazure.sap_monitors

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.
enableCustomerAnalyticsbooleanThe value indicating whether to send analytics to Microsoft.
locationstringThe geo-location where the resource lives. Required.
logAnalyticsWorkspaceArmIdstringThe ARM ID of the Log Analytics Workspace that is used for monitoring.
logAnalyticsWorkspaceIdstringThe workspace ID of the log analytics workspace to be used for monitoring.
logAnalyticsWorkspaceSharedKeystringThe shared key of the log analytics workspace that is used for monitoring.
managedResourceGroupNamestringThe name of the resource group the SAP Monitor resources get deployed into.
monitorSubnetstringThe subnet which the SAP monitor will be deployed in.
provisioningStatestringState of provisioning of the HanaInstance. Known values are: "Accepted", "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating". (Accepted, Creating, Updating, Failed, Succeeded, Deleting, Migrating)
sapMonitorCollectorVersionstringThe version of the payload running in the Collector VM.
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_monitor_name, subscription_idGets properties of a SAP monitor. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.
listselectsubscription_idGets a list of SAP monitors in the specified subscription. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.
createinsertresource_group_name, sap_monitor_name, subscription_id, locationCreates a SAP monitor. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.
updateupdateresource_group_name, sap_monitor_name, subscription_idPatches the Tags field of a SAP monitor. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.
deletedeleteresource_group_name, sap_monitor_name, subscription_idDeletes a SAP monitor. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.

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_monitor_namestringName of the SAP monitor resource. Required.
subscription_idstring

SELECT examples

Gets properties of a SAP monitor. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.

SELECT
id,
name,
enableCustomerAnalytics,
location,
logAnalyticsWorkspaceArmId,
logAnalyticsWorkspaceId,
logAnalyticsWorkspaceSharedKey,
managedResourceGroupName,
monitorSubnet,
provisioningState,
sapMonitorCollectorVersion,
systemData,
tags,
type
FROM azure_isv.hanaonazure.sap_monitors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND sap_monitor_name = '{{ sap_monitor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a SAP monitor. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.

INSERT INTO azure_isv.hanaonazure.sap_monitors (
tags,
location,
properties,
resource_group_name,
sap_monitor_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ resource_group_name }}',
'{{ sap_monitor_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Patches the Tags field of a SAP monitor. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.

UPDATE azure_isv.hanaonazure.sap_monitors
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND sap_monitor_name = '{{ sap_monitor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes a SAP monitor. The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.

DELETE FROM azure_isv.hanaonazure.sap_monitors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND sap_monitor_name = '{{ sap_monitor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;