用下列命令创建HDInsightCluster报错(其中变量均已经赋值)
New-AzureRmHDInsightCluster `
-ResourceGroupName $resourceGroupName `
-ClusterName $hdinsightClusterName `
-Location $location `
-ClusterSizeInNodes $clusterSizeInNodes `
-ClusterType Hadoop `
-OSType Windows `
-Version "3.1" `
-HttpCredential $httpCredential `
-DefaultStorageAccountName "$defaultStorageAccountName.blob.core.windows.net" `
-DefaultStorageAccountKey $defaultStorageAccountKey `
-DefaultStorageContainer $hdinsightClusterName
报错结果如下图所示
New-AzureRmHDInsightCluster : Unauthorized
所在位置 :70 字符: 1
+ New-AzureRmHDInsightCluster `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureRmHDInsightCluster],CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.HDInsight.NewAzureHDInsightClusterComma
nd