Skip to main content

monitors

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

Overview

Namemonitors
TypeResource
Idazure_isv.workloads.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.
appLocationstringThe SAP monitor resources will be deployed in the SAP monitoring region. The subnet region should be same as the SAP monitoring region.
errorsobjectDefines the SAP monitor errors.
identityobject[currently not in use] Managed service identity(user assigned identities).
locationstringThe geo-location where the resource lives. Required.
logAnalyticsWorkspaceArmIdstringThe ARM ID of the Log Analytics Workspace that is used for SAP monitoring.
managedResourceGroupConfigurationobjectManaged resource group configuration.
monitorSubnetstringThe subnet which the SAP monitor will be deployed in.
msiArmIdstringThe ARM ID of the MSI used for SAP monitoring.
provisioningStatestringState of provisioning of the SAP monitor. Known values are: "Accepted", "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating".
routingPreferencestringSets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET. Known values are: "Default" and "RouteAll".
storageAccountArmIdstringThe ARM ID of the Storage account used for SAP monitoring.
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".
zoneRedundancyPreferencestringSets the preference for zone redundancy on resources created for the SAP monitor. By default resources will be created which do not support zone redundancy.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, monitor_name, subscription_idGets properties of a SAP monitor. Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.
list_by_resource_groupselectresource_group_name, subscription_idGets a list of SAP monitors. Gets a list of SAP monitors in the specified resource group.
listselectsubscription_idGets a list of SAP monitors in the specified subscription. Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.
createinsertresource_group_name, monitor_name, subscription_id, locationCreates a SAP monitor. Creates a SAP monitor for the specified subscription, resource group, and resource name.
updateupdateresource_group_name, monitor_name, subscription_idPatches the Tags field of a SAP monitor. Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.
deletedeleteresource_group_name, monitor_name, subscription_idDeletes a SAP monitor. Deletes 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
monitor_namestringName of the SAP monitor resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

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

SELECT
id,
name,
appLocation,
errors,
identity,
location,
logAnalyticsWorkspaceArmId,
managedResourceGroupConfiguration,
monitorSubnet,
msiArmId,
provisioningState,
routingPreference,
storageAccountArmId,
systemData,
tags,
type,
zoneRedundancyPreference
FROM azure_isv.workloads.monitors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

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

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

UPDATE examples

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

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

DELETE examples

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

DELETE FROM azure_isv.workloads.monitors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;