Language

TenantActionGroupCollection.CreateOrUpdateAsync Method

Definition

Create a new tenant action group or update an existing one.

  • Request Path. : /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Insights/tenantActionGroups/{tenantActionGroupName}.
  • Operation Id. : TenantActionGroupResources_CreateOrUpdate.
  • Default Api Version. : 2023-05-01-preview.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.TenantActionGroupResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string tenantActionGroupName, string xMsClientTenantId, Azure.ResourceManager.Monitor.TenantActionGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * string * Azure.ResourceManager.Monitor.TenantActionGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.TenantActionGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * string * Azure.ResourceManager.Monitor.TenantActionGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.TenantActionGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, tenantActionGroupName As String, xMsClientTenantId As String, data As TenantActionGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of TenantActionGroupResource))

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.

tenantActionGroupName
String

The name of the action group.

xMsClientTenantId
String

The tenant ID of the client making the request.

data
TenantActionGroupData

The tenant action group to create or use for the update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

tenantActionGroupName, xMsClientTenantId or data is null.

tenantActionGroupName or xMsClientTenantId is an empty string, and was expected to be non-empty.

Applies to