Grant-​Azure​Rm​HD​Insight​Rdp​Services​Access

Grants RDP access to the Windows cluster.

Syntax

Grant-AzureRmHDInsightRdpServicesAccess
     [-ClusterName] <String>
     [-RdpCredential] <PSCredential>
     [-RdpAccessExpiry] <DateTime>
     [-ResourceGroupName <String>]
     [-InformationAction <ActionPreference>]
     [-InformationVariable <String>]
     [<CommonParameters>]

Description

The Grant-AzureRmHDInsightRdpServicesAccess cmdlet enables Remote Desktop Protocol (RDP) to access to a Windows-based Azure HDInsight cluster.

Examples

Example 1: Grant RDP access to an Azure HDInsight cluster

PS C:\># Cluster info
PS C:\> $clusterName = "your-hadoop-001"
PS C:\> $clusterCreds = Get-Credential

PS C:\> Grant-AzureRmHDInsightRdpServicesAccess `
            -ClusterName $clusterName `
            -RdpCredential $newRdpCreds `
            -RdpAccessExpiry $newRdpExpiry

This command grants RDP access to the cluster named your-hadoop-001.

Required Parameters

-ClusterName

Specifies the name of the cluster.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RdpAccessExpiry

Specifies the expiration, as a DateTime object, for RDP access to a cluster.

Type:DateTime
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RdpCredential

Specifies the RDP credentials for the cluster. This is only for Windows clusters.

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

Optional Parameters

-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
-ResourceGroupName

Specifies the name of the resource group.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False