Skip to main content

monitoring_settings

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

Overview

Namemonitoring_settings
TypeResource
Idazure_extras.app_platform.monitoring_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource.
namestringThe name of the resource.
appInsightsAgentVersionsobjectIndicates the versions of application insight agent.
appInsightsInstrumentationKeystringTarget application insight instrumentation key, null or whitespace include empty will disable monitoringSettings.
appInsightsSamplingRatenumberIndicates the sampling rate of application insight agent, should be in range [0.0, 100.0].
errorobjectError when apply Monitoring Setting changes.
provisioningStatestringState of the Monitoring Setting. Known values are: "NotAvailable", "Failed", "Succeeded", and "Updating".
systemDataobjectMetadata pertaining to creation and last modification of the resource.
traceEnabledbooleanIndicates whether enable the trace functionality, which will be deprecated since api version 2020-11-01-preview. Please leverage appInsightsInstrumentationKey to indicate if monitoringSettings enabled or not.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, subscription_idGet the Monitoring Setting and its properties.
update_putexecresource_group_name, service_name, subscription_idUpdate the Monitoring Setting.
update_patchexecresource_group_name, service_name, subscription_idUpdate the Monitoring Setting.

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 that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. Required.
service_namestringThe name of the Service resource. Required.
subscription_idstring

SELECT examples

Get the Monitoring Setting and its properties.

SELECT
id,
name,
appInsightsAgentVersions,
appInsightsInstrumentationKey,
appInsightsSamplingRate,
error,
provisioningState,
systemData,
traceEnabled,
type
FROM azure_extras.app_platform.monitoring_settings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Update the Monitoring Setting.

EXEC azure_extras.app_platform.monitoring_settings.update_put 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;