共用方式為


Grant-AzureHDInsightHttpServicesAccess

授與叢集的 HTTP 存取權。

注意

本文件中參考的 Cmdlet 用於管理使用 Azure Service Manager(ASM) API 的舊版 Azure 資源。 建立新的資源時,不建議使用此舊版 PowerShell 模組,因為 ASM 已排定淘汰。 如需詳細資訊,請參閱 Azure Service Manager 淘汰

Az PowerShell 模組是使用 PowerShell 管理 Azure Resource Manager (ARM) 資源的建議 PowerShell 模組。

語法

Grant-AzureHDInsightHttpServicesAccess
     [-Certificate <X509Certificate2>]
     [-HostedService <String>]
     -Credential <PSCredential>
     [-Endpoint <Uri>]
     [-IgnoreSslErrors <Boolean>]
     -Location <String>
     -Name <String>
     [-Subscription <String>]
     [-Profile <AzureSMProfile>]
     [<CommonParameters>]

Description

此版本的 Azure PowerShell HDInsight 已被取代。 這些 Cmdlet 將於 2017 年 1 月 1 日移除。 請使用較新版本的 Azure PowerShell HDInsight。

如需如何使用新的 HDInsight 建立叢集的資訊,請參閱 使用 Azure PowerShell 在 HDInsight 中建立以 Linux 為基礎的叢集(https://azure.microsoft.com/en-us/documentation/articles/hdinsight-hadoop-create-linux-clusters-azure-powershell/)。 如需如何使用 Azure PowerShell 和其他方法提交作業的資訊,請參閱 在 HDInsight 中提交 Hadoop 作業 (https://azure.microsoft.com/en-us/documentation/articles/hdinsight-submit-hadoop-jobs-programmatically/)。 如需 Azure PowerShell HDInsight 的參考資訊,請參閱 Azure HDInsight Cmdlet

Grant-AzureHDInsightHttpServicesAccess Cmdlet 會使用 ODBC、Ambari、Oozie 和 Web 服務,授與對 Azure HDInsight 叢集的 HTTP 存取權。

參數

-Certificate

指定 Azure 訂用帳戶的管理憑證。

類型:X509Certificate2
別名:Cert
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Credential

指定 HTTP 存取的使用者名稱和密碼。

類型:PSCredential
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Endpoint

指定要用來連線到 Azure 的端點。 如果您未指定此參數,此 Cmdlet 會使用預設端點。

類型:Uri
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-HostedService

指定 HDInsight 服務的命名空間。 如果您未指定此參數,此 Cmdlet 會使用預設命名空間。

類型:String
別名:CloudServiceName
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-IgnoreSslErrors

指出是否忽略安全套接字層 (SSL) 錯誤。

類型:Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Location

指定叢集所在的 Azure 區域。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Name

指定叢集的名稱。 此 Cmdlet 會將 HTTP 存取權授與此參數所指定的叢集。

類型:String
別名:ClusterName, DnsName
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Profile

指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設配置檔讀取。

類型:AzureSMProfile
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Subscription

指定要授與存取權之 HDInsight 叢集的訂用帳戶。

類型:String
別名:Sub
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False