Skip to main content

diagnostic_services

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

Overview

Namediagnostic_services
TypeResource
Idazure.iot_mq.diagnostic_services

Fields

NameDatatypeDescription
data_export_frequency_secondstextfield from the properties object
diagnosticServiceNametextfield from the properties object
extended_locationtextfield from the properties object
imagetextfield from the properties object
locationtextThe geo-location where the resource lives
log_formattextfield from the properties object
log_leveltextfield from the properties object
max_data_storage_sizetextfield from the properties object
metrics_porttextfield from the properties object
mqNametextfield from the properties object
open_telemetry_traces_collector_addrtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
stale_data_timeout_secondstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTdiagnosticServiceName, mqName, resourceGroupName, subscriptionIdGet a DiagnosticServiceResource
list_by_mq_resourceSELECTmqName, resourceGroupName, subscriptionIdList DiagnosticServiceResource resources by MqResource
create_or_updateINSERTdiagnosticServiceName, mqName, resourceGroupName, subscriptionId, data__extendedLocationCreate a DiagnosticServiceResource
deleteDELETEdiagnosticServiceName, mqName, resourceGroupName, subscriptionIdDelete a DiagnosticServiceResource
updateUPDATEdiagnosticServiceName, mqName, resourceGroupName, subscriptionIdUpdate a DiagnosticServiceResource

SELECT examples

List DiagnosticServiceResource resources by MqResource

SELECT
data_export_frequency_seconds,
diagnosticServiceName,
extended_location,
image,
location,
log_format,
log_level,
max_data_storage_size,
metrics_port,
mqName,
open_telemetry_traces_collector_addr,
provisioning_state,
resourceGroupName,
stale_data_timeout_seconds,
subscriptionId,
tags
FROM azure.iot_mq.vw_diagnostic_services
WHERE mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new diagnostic_services resource.

/*+ create */
INSERT INTO azure.iot_mq.diagnostic_services (
diagnosticServiceName,
mqName,
resourceGroupName,
subscriptionId,
data__extendedLocation,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ diagnosticServiceName }}',
'{{ mqName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__extendedLocation }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a diagnostic_services resource.

/*+ update */
UPDATE azure.iot_mq.diagnostic_services
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
diagnosticServiceName = '{{ diagnosticServiceName }}'
AND mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified diagnostic_services resource.

/*+ delete */
DELETE FROM azure.iot_mq.diagnostic_services
WHERE diagnosticServiceName = '{{ diagnosticServiceName }}'
AND mqName = '{{ mqName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';