Share via


HciVmVirtualHardDiskCollection Class

Definition

A class representing a collection of HciVmVirtualHardDiskResource and their operations. Each HciVmVirtualHardDiskResource in the collection will belong to the same instance of ResourceGroupResource. To get a HciVmVirtualHardDiskCollection instance call the GetHciVmVirtualHardDisks method from an instance of ResourceGroupResource.

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

Constructors

HciVmVirtualHardDiskCollection()

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

The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}
  • Operation Id: VirtualHardDisk_CreateOrUpdate
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
CreateOrUpdateAsync(WaitUntil, String, HciVmVirtualHardDiskData, CancellationToken)

The operation to create or update a virtual hard disk. Please note some properties can be set only during virtual hard disk creation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}
  • Operation Id: VirtualHardDisk_CreateOrUpdate
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}
  • Operation Id: VirtualHardDisk_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}
  • Operation Id: VirtualHardDisk_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
Get(String, CancellationToken)

Gets a virtual hard disk

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}
  • Operation Id: VirtualHardDisk_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
GetAll(CancellationToken)

Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to get the next page of virtual hard disks.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks
  • Operation Id: VirtualHardDisk_ListByResourceGroup
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
GetAllAsync(CancellationToken)

Lists all of the virtual hard disks in the specified resource group. Use the nextLink property in the response to get the next page of virtual hard disks.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks
  • Operation Id: VirtualHardDisk_ListByResourceGroup
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
GetAsync(String, CancellationToken)

Gets a virtual hard disk

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}
  • Operation Id: VirtualHardDisk_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}
  • Operation Id: VirtualHardDisk_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/virtualHardDisks/{virtualHardDiskName}
  • Operation Id: VirtualHardDisk_Get
  • Default Api Version: 2025-06-01-preview
  • Resource: HciVmVirtualHardDiskResource
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<HciVmVirtualHardDiskResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<HciVmVirtualHardDiskResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to