MockableHciVmResourceGroupResource.GetHciVmLoadBalancerAsync 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.
The operation to get a loadBalancer.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/loadBalancers/{loadBalancerName}.
- Operation Id. : LoadBalancers_Get.
- Default Api Version. : 2025-09-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmLoadBalancerResource>> GetHciVmLoadBalancerAsync(string loadBalancerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHciVmLoadBalancerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmLoadBalancerResource>>
override this.GetHciVmLoadBalancerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Hci.Vm.HciVmLoadBalancerResource>>
Public Overridable Function GetHciVmLoadBalancerAsync (loadBalancerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of HciVmLoadBalancerResource))
Parameters
- loadBalancerName
- String
Name of the load balancer.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
loadBalancerName is null.
loadBalancerName is an empty string, and was expected to be non-empty.