Set-AzHDInsightGatewayCredential

Sets the gateway HTTP credentials of an Azure HDInsight cluster.

Syntax

Set-AzHDInsightGatewayCredential
   -Name <String>
   [-HttpCredential] <PSCredential>
   [-ResourceGroupName <String>]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzHDInsightGatewayCredential
   [-HttpCredential] <PSCredential>
   [-ResourceGroupName <String>]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   -InputObject <AzureHDInsightCluster>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzHDInsightGatewayCredential
   [-HttpCredential] <PSCredential>
   [-ResourceGroupName <String>]
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   -ResourceId <String>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-AzHDInsightGatewayCredential cmdlet sets gateway credential of an Azure HDInsight cluster.

Examples

Example 1

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

PS C:\> Set-AzHDInsightGatewayCredential `
            -ClusterName $clusterName `
            -HttpCredential $clusterCreds

This command sets gateway credential of the cluster named your-hadoop-001 by name parameter set.

Example 2

PS C:\> Set-AzHDInsightGatewayCredential `
            -ResourceId "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/your-hadoop-001" `
            -HttpCredential $clusterCreds

This command sets gateway credential of the cluster named your-hadoop-001 by ResourceId parameter set.

Example 3

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

PS C:\> Get-AzHDInsightCluster -ClusterName $clusterName | Set-AzHDInsightGatewayCredential `
            -HttpCredential $clusterCreds

This command sets gateway credential of the cluster named your-hadoop-001 by InputObject parameter set.

Parameters

-AsJob

Run cmdlet in the background.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-HttpCredential

Gets or sets the login for the cluster's user.

Type:PSCredential
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-InputObject

Gets or sets the input object.

Type:AzureHDInsightCluster
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Gets or sets the name of the cluster.

Type:String
Aliases:ClusterName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

Gets or sets the name of the resource group.

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

Gets or sets the resource id.

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

HttpConnectivitySettings