Share via


VirtualMachineScaleSetVmCollection Class

Definition

A class representing a collection of VirtualMachineScaleSetVmResource and their operations. Each VirtualMachineScaleSetVmResource in the collection will belong to the same instance of VirtualMachineScaleSetResource. To get a VirtualMachineScaleSetVmCollection instance call the GetVirtualMachineScaleSetVms method from an instance of VirtualMachineScaleSetResource.

public class VirtualMachineScaleSetVmCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Compute.VirtualMachineScaleSetVmResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.VirtualMachineScaleSetVmResource>
type VirtualMachineScaleSetVmCollection = class
    inherit ArmCollection
    interface seq<VirtualMachineScaleSetVmResource>
    interface IEnumerable
    interface IAsyncEnumerable<VirtualMachineScaleSetVmResource>
Public Class VirtualMachineScaleSetVmCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of VirtualMachineScaleSetVmResource), IEnumerable(Of VirtualMachineScaleSetVmResource)
Inheritance
VirtualMachineScaleSetVmCollection
Implements

Constructors

VirtualMachineScaleSetVmCollection()

Initializes a new instance of the VirtualMachineScaleSetVmCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, VirtualMachineScaleSetVmData, String, String, CancellationToken)

Updates a virtual machine of a VM scale set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
  • Operation Id: VirtualMachineScaleSetVMs_Update
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
CreateOrUpdateAsync(WaitUntil, String, VirtualMachineScaleSetVmData, String, String, CancellationToken)

Updates a virtual machine of a VM scale set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
  • Operation Id: VirtualMachineScaleSetVMs_Update
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
Exists(String, Nullable<InstanceViewType>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
  • Operation Id: VirtualMachineScaleSetVMs_Get
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
ExistsAsync(String, Nullable<InstanceViewType>, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
  • Operation Id: VirtualMachineScaleSetVMs_Get
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
Get(String, Nullable<InstanceViewType>, CancellationToken)

Gets a virtual machine from a VM scale set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
  • Operation Id: VirtualMachineScaleSetVMs_Get
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
GetAll(String, String, String, CancellationToken)

Gets a list of all virtual machines in a VM scale sets.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines
  • Operation Id: VirtualMachineScaleSetVMs_List
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
GetAllAsync(String, String, String, CancellationToken)

Gets a list of all virtual machines in a VM scale sets.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines
  • Operation Id: VirtualMachineScaleSetVMs_List
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
GetAsync(String, Nullable<InstanceViewType>, CancellationToken)

Gets a virtual machine from a VM scale set.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
  • Operation Id: VirtualMachineScaleSetVMs_Get
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
GetIfExists(String, Nullable<InstanceViewType>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
  • Operation Id: VirtualMachineScaleSetVMs_Get
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
GetIfExistsAsync(String, Nullable<InstanceViewType>, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}
  • Operation Id: VirtualMachineScaleSetVMs_Get
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<VirtualMachineScaleSetVmResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<VirtualMachineScaleSetVmResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to