ElasticMonitorResource.UpdateVmCollectionAsync Method

Definition

Update the VM details that will be monitored by the Elastic monitor resource, ensuring optimal observability and performance.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/vmCollectionUpdate.
  • Operation Id. : ElasticMonitorResources_VMCollectionUpdate.
  • Default Api Version. : 2025-06-01.
  • Resource. : ElasticMonitorResource.
public virtual System.Threading.Tasks.Task<Azure.Response> UpdateVmCollectionAsync(Azure.ResourceManager.Elastic.Models.VmCollectionContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateVmCollectionAsync : Azure.ResourceManager.Elastic.Models.VmCollectionContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.UpdateVmCollectionAsync : Azure.ResourceManager.Elastic.Models.VmCollectionContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function UpdateVmCollectionAsync (Optional content As VmCollectionContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

content
VmCollectionContent

VM resource Id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to