MonitorIssueCollection.CreateOrUpdateAsync Method

Definition

Create a new issue or updates an existing one

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Monitor/accounts/{azureMonitorWorkspaceName}/issues/{issueName}.
  • Operation Id. : Issue_Create.
  • Default Api Version. : 2025-10-03.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Workspaces.MonitorIssueResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string issueName, Azure.ResourceManager.Monitor.Workspaces.MonitorIssueData data, string related = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.Workspaces.MonitorIssueData * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Workspaces.MonitorIssueResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.Workspaces.MonitorIssueData * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.Workspaces.MonitorIssueResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, issueName As String, data As MonitorIssueData, Optional related As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MonitorIssueResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

issueName
String

The name of the IssueResource.

data
MonitorIssueData

Resource create parameters.

related
String

Related resource or alert that is to be added to the issue (default: empty - the issue will be created without any related resources or alerts).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

issueName or data is null.

issueName is an empty string, and was expected to be non-empty.

Applies to