NetworkInterfacesOperations.GetVirtualMachineScaleSetNetworkInterfaceAsync(String, String, String, String, String, CancellationToken) Method

Definition

Get the specified network interface in a virtual machine scale set.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.Models.NetworkInterface>> GetVirtualMachineScaleSetNetworkInterfaceAsync (string resourceGroupName, string virtualMachineScaleSetName, string virtualmachineIndex, string networkInterfaceName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineScaleSetNetworkInterfaceAsync : string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.Models.NetworkInterface>>
override this.GetVirtualMachineScaleSetNetworkInterfaceAsync : string * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Network.Models.NetworkInterface>>
Public Overridable Function GetVirtualMachineScaleSetNetworkInterfaceAsync (resourceGroupName As String, virtualMachineScaleSetName As String, virtualmachineIndex As String, networkInterfaceName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of NetworkInterface))

Parameters

resourceGroupName
String

The name of the resource group.

virtualMachineScaleSetName
String

The name of the virtual machine scale set.

virtualmachineIndex
String

The virtual machine index.

networkInterfaceName
String

The name of the network interface.

expand
String

Expands referenced resources.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Task<Response<NetworkInterface>>

Applies to