Skip to main content

monitored_subscriptions

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

Overview

Namemonitored_subscriptions
TypeResource
Idazure_isv.newrelicobservability.monitored_subscriptions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe id of the monitored subscription resource.
namestringName of the monitored subscription resource.
monitoredSubscriptionListarrayList of subscriptions and the state of the monitoring.
patchOperationstringThe operation for the patch on the resource. Known values are: "AddBegin", "AddComplete", "DeleteBegin", "DeleteComplete", and "Active".
provisioningStatestringProvisioning State of the resource. Known values are: "Accepted", "Creating", "Updating", "Deleting", "Succeeded", "Failed", "Canceled", "Deleted", and "NotSpecified".
typestringThe type of the monitored subscription resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, monitor_name, configuration_name, subscription_idLists all the subscriptions currently being monitored by the NewRelic monitor resource. Lists all the subscriptions currently being monitored by the NewRelic monitor resource.
listselectresource_group_name, monitor_name, subscription_idLists all the subscriptions currently being monitored by the NewRelic monitor resource. Lists all the subscriptions currently being monitored by the NewRelic monitor resource.
create_or_updateinsertresource_group_name, monitor_name, configuration_name, subscription_idAdd subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.
updateupdateresource_group_name, monitor_name, configuration_name, subscription_idUpdate subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance. Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance.
create_or_updatereplaceresource_group_name, monitor_name, configuration_name, subscription_idAdd subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.
deletedeleteresource_group_name, monitor_name, configuration_name, subscription_idDelete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities. Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities.

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
configuration_namestringThe configuration name. Only 'default' value is supported. "default" Required.
monitor_namestringName of the Monitors resource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Lists all the subscriptions currently being monitored by the NewRelic monitor resource. Lists all the subscriptions currently being monitored by the NewRelic monitor resource.

SELECT
id,
name,
monitoredSubscriptionList,
patchOperation,
provisioningState,
type
FROM azure_isv.newrelicobservability.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND monitor_name = '{{ monitor_name }}' -- required
AND configuration_name = '{{ configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.

INSERT INTO azure_isv.newrelicobservability.monitored_subscriptions (
properties,
resource_group_name,
monitor_name,
configuration_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ monitor_name }}',
'{{ configuration_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;

UPDATE examples

Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance. Update subscriptions to be monitored by the New Relic monitor resource, ensuring optimal observability and performance.

UPDATE azure_isv.newrelicobservability.monitored_subscriptions
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;

REPLACE examples

Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring. Add subscriptions to be monitored by the New Relic monitor resource, enabling observability and monitoring.

REPLACE azure_isv.newrelicobservability.monitored_subscriptions
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities. Delete subscriptions being monitored by the New Relic monitor resource, removing their observability and monitoring capabilities.

DELETE FROM azure_isv.newrelicobservability.monitored_subscriptions
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND monitor_name = '{{ monitor_name }}' --required
AND configuration_name = '{{ configuration_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;