Skip to main content

managed_environment_diagnostics

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

Overview

Namemanaged_environment_diagnostics
TypeResource
Idazure.app_containers.managed_environment_diagnostics

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.
dataProviderMetadataobjectList of data providers' metadata.
datasetarraySet of data collections associated with the response.
metadataobjectMetadata of the diagnostics response.
statusobjectStatus of the diagnostics response.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
get_detectorselectresource_group_name, environment_name, detector_name, subscription_idGet the diagnostics data for a given Managed Environment. Get the diagnostics data for a Managed Environment used to host container apps.
list_detectorsselectresource_group_name, environment_name, subscription_idGet the list of diagnostics for a given Managed Environment. Get the list of diagnostics for a Managed Environment used to host container apps.

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
detector_namestringName of the detector. Required.
environment_namestringName of the Managed Environment. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the diagnostics data for a given Managed Environment. Get the diagnostics data for a Managed Environment used to host container apps.

SELECT
id,
name,
dataProviderMetadata,
dataset,
metadata,
status,
systemData,
type
FROM azure.app_containers.managed_environment_diagnostics
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND environment_name = '{{ environment_name }}' -- required
AND detector_name = '{{ detector_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;