New-​Azure​Rm​Server​Management​Session

Creates a Server Management session.

Syntax

New-AzureRmServerManagementSession
   [-ResourceGroupName] <String>
   [-NodeName] <String>
   [-SessionName <String>]
   [-Credential <PSCredential>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [<CommonParameters>]
New-AzureRmServerManagementSession
   [-Node] <Node>
   [-SessionName <String>]
   [-Credential <PSCredential>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [<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: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:PSCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationAction

Specifies how this cmdlet responds to an information event.The acceptable values for this parameter are:- Continue

  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
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