Compartir a través de


ComponentsOperationsExtensions.CreateOrUpdateAsync Método

Definición

Crea (o actualiza) un componente de Application Insights. Nota: No se puede especificar un valor diferente para InstrumentationKey ni AppId en la operación Put.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponent> CreateOrUpdateAsync (this Microsoft.Azure.Management.ApplicationInsights.Management.IComponentsOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponent insightProperties, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ApplicationInsights.Management.IComponentsOperations * string * string * Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApplicationInsights.Management.Models.ApplicationInsightsComponent>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IComponentsOperations, resourceGroupName As String, resourceName As String, insightProperties As ApplicationInsightsComponent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ApplicationInsightsComponent)

Parámetros

operations
IComponentsOperations

El grupo de operaciones de este método de extensión.

resourceGroupName
String

Nombre del grupo de recursos. El nombre distingue mayúsculas de minúsculas.

resourceName
String

Nombre del recurso de componente de Application Insights.

insightProperties
ApplicationInsightsComponent

Propiedades que deben especificarse para crear un componente de Application Insights.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Se aplica a