ElasticMonitorResource.UpdateVmCollection 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 Azure.Response UpdateVmCollection(Azure.ResourceManager.Elastic.Models.VmCollectionContent content = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateVmCollection : Azure.ResourceManager.Elastic.Models.VmCollectionContent * System.Threading.CancellationToken -> Azure.Response
override this.UpdateVmCollection : Azure.ResourceManager.Elastic.Models.VmCollectionContent * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function UpdateVmCollection (Optional content As VmCollectionContent = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

content
VmCollectionContent

VM resource Id.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to