HciVmExtensions.GetHciVmVirtualHardDisks Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetHciVmVirtualHardDisks(ResourceGroupResource) |
Gets a collection of HciVmVirtualHardDiskResources in the ResourceGroupResource. <item>MockingTo mock this method, please mock GetHciVmVirtualHardDisks() instead.</item> |
GetHciVmVirtualHardDisks(SubscriptionResource, CancellationToken) |
Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.
|
GetHciVmVirtualHardDisks(ResourceGroupResource)
- Source:
- HciVmExtensions.cs
Gets a collection of HciVmVirtualHardDiskResources in the ResourceGroupResource. <item>MockingTo mock this method, please mock GetHciVmVirtualHardDisks() instead.</item>
public static Azure.ResourceManager.Hci.Vm.HciVmVirtualHardDiskCollection GetHciVmVirtualHardDisks(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetHciVmVirtualHardDisks : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.Hci.Vm.HciVmVirtualHardDiskCollection
<Extension()>
Public Function GetHciVmVirtualHardDisks (resourceGroupResource As ResourceGroupResource) As HciVmVirtualHardDiskCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of HciVmVirtualHardDiskResources and their operations over a HciVmVirtualHardDiskResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetHciVmVirtualHardDisks(SubscriptionResource, CancellationToken)
- Source:
- HciVmExtensions.cs
Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualHardDisks
- Operation Id: VirtualHardDisk_ListAll
- Default Api Version: 2025-06-01-preview
- Resource: HciVmVirtualHardDiskResource
public static Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmVirtualHardDiskResource> GetHciVmVirtualHardDisks(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetHciVmVirtualHardDisks : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Hci.Vm.HciVmVirtualHardDiskResource>
<Extension()>
Public Function GetHciVmVirtualHardDisks (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of HciVmVirtualHardDiskResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HciVmVirtualHardDiskResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.