TenantActionGroupCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.