Copy-AksEdgeNodeFile

Copies a file to or from a node.

Syntax

Copy-AksEdgeNodeFile [-FromFile <String>] [-ToFile <String>] [-PushFile][-NodeType] [<CommonParameters>]

Description

Copies files to or from a node.

Examples

Example 1

Pushes the sample.json to a file to the Linux node and names the file as config.json.

Copy-AksEdgeNodeFile -FromFile ./sample.json -ToFile /var/config.json -PushFile -NodeType Linux

Parameters

-FromFile

File to be read from.

Type: String
Parameter Sets: (All)
Aliases:

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

-ToFile

File to be written to.

Type: String
Parameter Sets: (All)
Aliases:

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

-PushFile

Indicates copy direction. If present, pushes file to the node.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-NodeType

Specifies Linux or Windows node to connect to. Default is Linux.

Type: String
Parameter Sets: (All)
Aliases:

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

Common parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Next steps

AksEdge PowerShell Reference