Open brucema-cloud opened 2 years ago
Hi team. Because My storage account is using a private link. When the storage_container_id
be formatted like "https://ststgstreamspark.privatelink.blob.core.windows.net/spark-stg-01", the creation for Spark and Hbase will be failed. When the storage_container_id
be formatted like "https://ststgstreamspark.blob.core.windows.net/spark-stg-01", it will work.
the error output:
Error: creating HDInsight Spark Cluster "spark2-stg-stream" (Resource Group "rg-stg-stream"): hdinsight.ClustersClient#Create: Failure sending request: StatusCode=400 -- Original Error: Code="BadRequest" Message="User input validation failed. Errors: The request payload is invalid. Endpoint type 'privatelink' in url wasb://spark-stg-01@ststgstreamspark.privatelink.blob.core.windows.net is neither 'blob' or 'dfs',User input validation failed. Errors: The request payload is invalid. Endpoint type 'privatelink' in url wasb://spark-stg-01@ststgstreamspark.privatelink.blob.core.windows.net is neither 'blob' or 'dfs',User input validation failed. Errors: The request payload is invalid. Endpoint type 'privatelink' in url wasb://spark-stg-01@ststgstreamspark.privatelink.blob.core.windows.net is neither 'blob' or 'dfs'"
@brucema-cloud , thanks for raising this issue. Per the error message, seems Service API doesn't support the format "https://xxxxx.privatelink.blob.core.windows.net/xxx".
Hi, @neil-yechenwei Could you be sure that the Service API does not support this format?
The error message returned by the property validation from service side has indicated.
Hi @neil-yechenwei Is there any plan to fix it?
It's Service API limitation not TF bug. May I ask is there any document indicates this scenario should be supported? Could you share us the link? Thanks.
https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-restrict-public-connectivity As mentioned in this document, when I restrict public connectivity in Azure HDInsight, I can configure Azure Private Link-enabled dependency resources to use with HDInsight clusters. I just want to specify the default storage for HDInsight by using the storage account in private link format. @neil-yechenwei
Filed an issue on Azure/azure-rest-api-specs/issues/18020 for tracking.
Community Note
Terraform (and AzureRM Provider) Version
terraform { required_version = "= 0.14.11" }
provider "azurerm" { version = "~> 2.0" }
Affected Resource(s)
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/hdinsight_spark_cluster https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/hdinsight_hbase_cluster
azurerm_XXXXX
Terraform Configuration Files
Error Output
Panic Output
Expected Behaviour
Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
Plan Output
References
0000