ContainerServiceAgentPoolResource.GetContainerServiceMachineAsync 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.
Get a specific machine in the specified agent pool.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/machines/{machineName}
- Operation Id: Machines_Get
- Default Api Version: 2025-10-01
- Resource: ContainerServiceMachineResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceMachineResource>> GetContainerServiceMachineAsync(string machineName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContainerServiceMachineAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceMachineResource>>
override this.GetContainerServiceMachineAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerService.ContainerServiceMachineResource>>
Public Overridable Function GetContainerServiceMachineAsync (machineName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ContainerServiceMachineResource))
Parameters
- machineName
- String
host name of the machine.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
machineName is null.
machineName is an empty string, and was expected to be non-empty.