Skip to content

Commit 5d711dd

Browse files
committed
freshness190
1 parent 667e672 commit 5d711dd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

articles/hdinsight/hdinsight-administer-use-powershell.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ Set-AzHDInsightClusterSize -ClusterName <Cluster Name> -TargetInstanceCount <New
6868

6969
For more information about scaling clusters, see [Scale HDInsight clusters](./hdinsight-scaling-best-practices.md).
7070

71+
## Update HTTP user credentials
72+
73+
[Set-AzHDInsightGatewayCredential](https://docs.microsoft.com/powershell/module/az.hdinsight/set-azhdinsightgatewaycredential) sets the gateway HTTP credentials of an Azure HDInsight cluster.
74+
75+
```powershell
76+
$clusterName = "CLUSTERNAME"
77+
$credential = Get-Credential -Message "Enter the HTTP username and password:" -UserName "admin"
78+
79+
Set-AzHDInsightGatewayCredential -ClusterName $clusterName -HttpCredential $credential
80+
```
81+
7182
## Find the default storage account
7283

7384
The following PowerShell script demonstrates how to get the default storage account name and the related information:

0 commit comments

Comments
 (0)