Share via


VirtualMachineScaleSetVmRunCommandCollection Class

Definition

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

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

Constructors

VirtualMachineScaleSetVmRunCommandCollection()

Initializes a new instance of the VirtualMachineScaleSetVmRunCommandCollection 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, VirtualMachineRunCommandData, CancellationToken)

The operation to create or update the VMSS VM run command.

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

The operation to create or update the VMSS VM run command.

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

Checks to see if the resource exists in azure.

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

Checks to see if the resource exists in azure.

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

The operation to get the VMSS VM run command.

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

The operation to get all run commands of an instance in Virtual Machine Scaleset.

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

The operation to get all run commands of an instance in Virtual Machine Scaleset.

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

The operation to get the VMSS VM run command.

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

Tries to get details for this resource from the service.

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

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}
  • Operation Id: VirtualMachineScaleSetVMRunCommands_Get
  • Default Api Version: 2024-07-01
  • Resource: VirtualMachineScaleSetVmRunCommandResource
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<VirtualMachineScaleSetVmRunCommandResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<VirtualMachineScaleSetVmRunCommandResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to