Delen via


LogProfileCollection.CreateOrUpdate Method

Definition

Create or update a log profile in Azure Monitoring REST API.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/logprofiles/{logProfileName}
  • Operation Id: LogProfiles_CreateOrUpdate
  • Default Api Version: 2016-03-01
  • Resource: LogProfileResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.LogProfileResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string logProfileName, Azure.ResourceManager.Monitor.LogProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.LogProfileData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.LogProfileResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.LogProfileData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.LogProfileResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, logProfileName As String, data As LogProfileData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of LogProfileResource)

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.

logProfileName
String

The name of the log profile.

data
LogProfileData

Parameters supplied to the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

logProfileName or data is null.

Applies to