Asked by:
New-AzHDInsightCluster: Operation returned an invalid status code 'BadRequest'

Question
-
Hi Team,
While creating an hdinsight cluster in EAST US location using powershell in free tier account, below is the error.
Could you please let me know the reason. I have installed the module as well.
PS /home/shafaat> Install-Module -Name Az.HDInsight
PS /home/shafaat> New-AzHDInsightCluster `
>> -ResourceGroupName $resourceGroupName `
>> -ClusterName $clusterName `
>> -Location $location `
>> -ClusterSizeInNodes $clusterSizeInNodes `
>> -ClusterType $clusterType `
>> -OSType $clusterOS `
>> -Version $clusterVersion `
>> -HttpCredential $httpCredential `
>> -DefaultStorageAccountName "$defaultStorageAccountName.blob.core.windows.net" `
>> -DefaultStorageAccountKey $defaultStorageAccountKey `
>> -DefaultStorageContainer $clusterName `
>> -SshCredential $sshCredentials
New-AzHDInsightCluster: Operation returned an invalid status code 'BadRequest'
PS /home/shafaat> New-AzHDInsightCluster `Please suggest.
Thanks-Rahul.!
Saturday, May 16, 2020 5:45 PM
All replies
-
here is the log :
New-AzHDInsightCluster: Operation returned an invalid status code 'BadRequest'
DEBUG: AzureQoSEvent: CommandName - New-AzHDInsightCluster; IsSuccess - False; Duration - 00:00:05.7815944;; Exception - Microsoft.Azure.Management.HDInsight.Models.ErrorResponseException: Operation returned an invalid status code 'BadRequest'
at Microsoft.Azure.Management.HDInsight.ClustersOperations.BeginCreateWithHttpMessagesAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.Management.HDInsight.ClustersOperations.CreateWithHttpMessagesAsync(String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters, Dictionary`2 customHeaders, CancellationToken cancellationToken)
at Microsoft.Azure.Management.HDInsight.ClustersOperationsExtensions.CreateAsync(IClustersOperations operations, String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters, CancellationToken cancellationToken)
at Microsoft.Azure.Management.HDInsight.ClustersOperationsExtensions.Create(IClustersOperations operations, String resourceGroupName, String clusterName, ClusterCreateParametersExtended parameters)
at Microsoft.Azure.Commands.HDInsight.Models.AzureHdInsightManagementClient.CreateNewCluster(String resourceGroupName, String clusterName, OSType osType, ClusterCreateParameters parameters, String minSupportedTlsVersion)
at Microsoft.Azure.Commands.HDInsight.NewAzureHDInsightClusterCommand.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOrAsJob>b__3_0(T c)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord();
DEBUG: Finish sending metric.
DEBUG: 5:48:55 PM - NewAzureHDInsightClusterCommand end processingSaturday, May 16, 2020 5:50 PM -
Hi Rahul,
Apologize for the delay in response.
Did your issue resolved?
Kindly check the “activity log”, which shows the reason for validation failure.
Could you try now and confirm if you’re still facing the issue?
Friday, May 29, 2020 6:44 AM -
Hi Rahul,
Just checking in if you have had a chance to see the previous response. We need the following information to understand/investigate this issue further.
Thursday, June 4, 2020 4:37 PM -
Hello,
Following up to see if you have had a chance to see the previous response. We need the following information to understand/investigate this issue further.
Friday, June 5, 2020 12:29 PM