Compartir a través de


OperationalInsightsExtensions.CreateOrUpdateWithoutNameQueryPackAsync Método

Definición

Crea un QueryPack de Log Analytics. Nota: No se puede especificar un valor diferente para InstrumentationKey ni AppId en la operación Put.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks
  • IdQueryPacks_CreateOrUpdateWithoutName de operación
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource>> CreateOrUpdateWithoutNameQueryPackAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateWithoutNameQueryPackAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.LogAnalyticsQueryPackResource>>
<Extension()>
Public Function CreateOrUpdateWithoutNameQueryPackAsync (resourceGroupResource As ResourceGroupResource, data As LogAnalyticsQueryPackData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of LogAnalyticsQueryPackResource))

Parámetros

resourceGroupResource
ResourceGroupResource

Instancia ResourceGroupResource en la que se ejecutará el método.

data
LogAnalyticsQueryPackData

Propiedades que deben especificarse para crear o actualizar un QueryPack de Log Analytics.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

data es null.

Se aplica a