MockableHciVmSubscriptionResource.GetHciVmVirtualNetworksAsync 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.
Lists all of the virtual networks in the specified subscription. Use the nextLink property in the response to get the next page of virtualNetwork networks.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/virtualNetworks.
- Operation Id. : VirtualNetworks_ListAll.
- Default Api Version. : 2025-09-01-preview.
public virtual Azure.AsyncPageable<Azure.ResourceManager.Hci.Vm.HciVmVirtualNetworkResource> GetHciVmVirtualNetworksAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member GetHciVmVirtualNetworksAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Hci.Vm.HciVmVirtualNetworkResource>
override this.GetHciVmVirtualNetworksAsync : System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Hci.Vm.HciVmVirtualNetworkResource>
Public Overridable Function GetHciVmVirtualNetworksAsync (Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of HciVmVirtualNetworkResource)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of HciVmVirtualNetworkResource that may take multiple service requests to iterate over.