New-AzureRmServerManagementSession

Creates a Server Management session.

Syntax

New-AzureRmServerManagementSession
   [-ResourceGroupName] <String>
   [-NodeName] <String>
   [-SessionName <String>]
   [-Credential <PSCredential>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzureRmServerManagementSession
   [-Node] <Node>
   [-SessionName <String>]
   [-Credential <PSCredential>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzureRmServerManagementSession cmdlet creates an Azure Server Management session.

Examples

1:

Required Parameters

-Node

Specifies the node for which this cmdlet creates the session on.

This parameter may be used instead of the ResourceGroupName and NodeName parameters.

Type:Microsoft.Azure.Commands.ServerManagement.Model.Node
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-NodeName

Specifies the name of the node for which this cmdlet creates a session.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Specifies the resource group of the node that this cmdlet creates a session for.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Credential

Specifies a PSCredential object for the connection to the Server Management Session. To obtain a credential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential.

Type:System.Management.Automation.PSCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SessionName

Specifies the name to use for the session.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

Node

Parameter 'Node' accepts value of type 'Node' from the pipeline

Outputs

Microsoft.Azure.Commands.ServerManagement.Model.Session