Invoke-AksEdgeNodeCommand

VM에서 SSH 명령을 실행합니다.

구문

Invoke-AksEdgeNodeCommand [[-command] <String>] [-ignoreError] [[-NodeType] <String>]

Description

Invoke-AksEdgeNodeCommand cmdlet은 가상 머신 내에서 명령을 실행하고 출력을 반환합니다. 이 cmdlet은 유한 출력을 반환하는 명령에 대해서만 작동합니다. 사용자 상호 작용이 필요하거나 무기한 실행되는 명령에는 사용할 수 없습니다.

예제

Invoke-AksEdgeNodeCommand -Command "sudo ps aux"

매개 변수

-command

VM에서 실행할 명령

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ignoreError

필요에 따라 이 플래그가 있는 경우 명령의 오류를 무시합니다(throw하지 않음).

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Nodetype

NodeType은 연결할 Linux 또는 Windows 노드를 지정합니다. 기본값은 Linux입니다.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Linux
Accept pipeline input: False
Accept wildcard characters: False

다음 단계

AksEdge PowerShell 참조