VirtualMachineRunCommandCollection Class

Definition

A class representing a collection of VirtualMachineRunCommandResource and their operations. Each VirtualMachineRunCommandResource in the collection will belong to the same instance of VirtualMachineResource. To get a VirtualMachineRunCommandCollection instance call the GetVirtualMachineRunCommands method from an instance of VirtualMachineResource.

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

Constructors

VirtualMachineRunCommandCollection()

Initializes a new instance of the VirtualMachineRunCommandCollection 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 run command.

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

The operation to create or update the run command.

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

Checks to see if the resource exists in azure.

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

Checks to see if the resource exists in azure.

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

The operation to get the run command.

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

The operation to get all run commands of a Virtual Machine.

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

The operation to get all run commands of a Virtual Machine.

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

The operation to get the run command.

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

Tries to get details for this resource from the service.

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

Tries to get details for this resource from the service.

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

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<VirtualMachineRunCommandResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to