SubscriptionApplicationCollection.CreateOrUpdateAsync Method

Definition

Creates or update a security application on the given subscription. Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Security/applications/{applicationId} Operation Id: Application_CreateOrUpdate

public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SubscriptionApplicationResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string applicationId, Azure.ResourceManager.SecurityCenter.ApplicationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.ApplicationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SubscriptionApplicationResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.SecurityCenter.ApplicationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.SecurityCenter.SubscriptionApplicationResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, applicationId As String, data As ApplicationData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SubscriptionApplicationResource))

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.

applicationId
String

The security Application key - unique key for the standard application.

data
ApplicationData

Application over a subscription scope.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Task<ArmOperation<SubscriptionApplicationResource>>

Exceptions

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

applicationId or data is null.

Applies to