locked
ERROR while creating hdinsight RRS feed

  • Question

  • Hi Team,

    The same script worked earlier but when i changed storage parameters and then run it aagain it fails with the below error in the new subscription:

    Line |
      18 |              | New-AzureRmHDInsightCluster `
         |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         | Operation returned an invalid status code 'BadRequest'
    DEBUG: AzureQoSEvent: CommandName - New-AzHDInsightCluster; IsSuccess - False; Duration - 00:00:02.7189519;; 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:50:55 PM - NewAzureHDInsightClusterCommand end processing.

    Please let me know the reason.


    • Edited by Rahul Akk Tuesday, May 19, 2020 6:30 PM
    Tuesday, May 19, 2020 5:54 PM

Answers

  • After adding alpha numeric in the password - keyvault, it worked.
    • Marked as answer by Rahul Akk Wednesday, May 20, 2020 11:29 AM
    Wednesday, May 20, 2020 11:29 AM

All replies

  • Hi 

    What is the reason for this reason?

    DEBUG: ============================ HTTP RESPONSE ============================

    Status Code:
    BadRequest

    Headers:
    Cache-Control                 : no-cache
    Pragma                        : no-cache
    x-ms-hdi-matched-rule         : ClusterResourcesAndSubResources
    x-ms-hdi-routed-to            : RegionalRp
    x-ms-correlation-request-id   : 901eeab6-dc1c-44db-99d5-d3befad6146f
    Strict-Transport-Security     : max-age=31536000; includeSubDomains
    x-ms-ratelimit-remaining-subscription-writes: 1199
    x-ms-request-id               : 901eeab6-dc1c-44db-99d5-d3befad6146f
    x-ms-routing-request-id       : WESTEUROPE:20200519T175052Z:901eeab6-dc1c-44db-99d5-d3befad6146f
    X-Content-Type-Options        : nosniff
    Date                          : Tue, 19 May 2020 17:50:52 GMT

    Body:
    {
      "code": "BadRequest",
      "message": "The password must be at least 8 characters in length and must contain at least one digit, one non-alphanumeric character, one upper case letter and one lower case letter. Also, the password should not contain 3 consecutive letters from the username"
    }

    all the passwords are perfect but it throws below error while creating the cluster.

    Kindly help me resolve this issue.

    Thanks-Rahul.!

    • Marked as answer by Rahul Akk Wednesday, May 20, 2020 11:28 AM
    • Unmarked as answer by Rahul Akk Wednesday, May 20, 2020 11:29 AM
    Tuesday, May 19, 2020 5:58 PM
  • After adding alpha numeric in the password - keyvault, it worked.
    • Marked as answer by Rahul Akk Wednesday, May 20, 2020 11:29 AM
    Wednesday, May 20, 2020 11:29 AM
  • Hi Rahul,

    Glad to know that your issue has resolved. And thanks for sharing the solution, which might be beneficial to other community members reading this thread. 

    Wednesday, May 20, 2020 12:42 PM