Share via


NewRelicMonitorResource.VmHostPayloadAsync(CancellationToken) Method

Definition

Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}/vmHostPayloads
  • Operation Id: Monitors_VmHostPayload
  • Default Api Version: 2024-03-01
  • Resource: NewRelicMonitorResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityVmExtensionPayload>> VmHostPayloadAsync (System.Threading.CancellationToken cancellationToken = default);
abstract member VmHostPayloadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityVmExtensionPayload>>
override this.VmHostPayloadAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.NewRelicObservability.Models.NewRelicObservabilityVmExtensionPayload>>
Public Overridable Function VmHostPayloadAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NewRelicObservabilityVmExtensionPayload))

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to