Skip to main content

issue

Creates, updates, deletes, gets or lists an issue resource.

Overview

Nameissue
TypeResource
Idazure.monitor_workspaces.issue

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the investigation. Required.
createdAtstring (date-time)The creation time of the investigation (in UTC).
lastModifiedAtstring (date-time)The last update time of the investigation (in UTC).
originobjectThe origin of the investigation.
resultstringThe result of this investigation. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
fetch_investigation_resultselectresource_group_name, azure_monitor_workspace_name, issue_name, subscription_idFetch investigation result.
getselectresource_group_name, azure_monitor_workspace_name, issue_name, subscription_idGet issue properties.
listselectresource_group_name, azure_monitor_workspace_name, subscription_idList all issues under the parent.
createinsertresource_group_name, azure_monitor_workspace_name, issue_name, subscription_idrelatedCreate a new issue or updates an existing one.
updateupdateresource_group_name, azure_monitor_workspace_name, issue_name, subscription_idUpdate an issue.
deletedeleteresource_group_name, azure_monitor_workspace_name, issue_name, subscription_idDelete an issue.
list_alertsexecresource_group_name, azure_monitor_workspace_name, issue_name, subscription_idList all alerts in the issue - this method uses pagination to return all alerts.
list_resourcesexecresource_group_name, azure_monitor_workspace_name, issue_name, subscription_idList all resources in the issue - this method uses pagination to return all resources.
add_investigation_resultexecresource_group_name, azure_monitor_workspace_name, issue_name, subscription_id, id, resultAdds investigation result.
add_or_update_alertsexecresource_group_name, azure_monitor_workspace_name, issue_name, subscription_id, valueAdd or update alerts associated with an issue.
add_or_update_resourcesexecresource_group_name, azure_monitor_workspace_name, issue_name, subscription_id, valueAdd or update resources associated with an issue.
fetch_background_visualizationexecresource_group_name, azure_monitor_workspace_name, issue_name, subscription_idFetch the background visualization of the issue.
set_background_visualizationexecresource_group_name, azure_monitor_workspace_name, issue_name, subscription_id, visualizationSet the background visualization for the issue.

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
azure_monitor_workspace_namestringThe name of the Azure Monitor Workspace. The name is case insensitive. Required.
issue_namestringThe name of the IssueResource. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Fetch investigation result.

SELECT
id,
createdAt,
lastModifiedAt,
origin,
result
FROM azure.monitor_workspaces.issue
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND azure_monitor_workspace_name = '{{ azure_monitor_workspace_name }}' -- required
AND issue_name = '{{ issue_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create a new issue or updates an existing one.

INSERT INTO azure.monitor_workspaces.issue (
properties,
resource_group_name,
azure_monitor_workspace_name,
issue_name,
subscription_id,
related
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ azure_monitor_workspace_name }}',
'{{ issue_name }}',
'{{ subscription_id }}',
'{{ related }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update an issue.

UPDATE azure.monitor_workspaces.issue
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND azure_monitor_workspace_name = '{{ azure_monitor_workspace_name }}' --required
AND issue_name = '{{ issue_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete an issue.

DELETE FROM azure.monitor_workspaces.issue
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND azure_monitor_workspace_name = '{{ azure_monitor_workspace_name }}' --required
AND issue_name = '{{ issue_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

List all alerts in the issue - this method uses pagination to return all alerts.

EXEC azure.monitor_workspaces.issue.list_alerts 
@resource_group_name='{{ resource_group_name }}' --required,
@azure_monitor_workspace_name='{{ azure_monitor_workspace_name }}' --required,
@issue_name='{{ issue_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"filter": "{{ filter }}"
}'
;