@Mihai Cosmin - Thanks for the question and using MS Q&A paltform.
Before we get into resolving the issue - please do confirm the below information:
Are you using Databricks compute
or SQL datawarehouse
to run the above commands?
As metioned in the question, you are using Azure Service principal
but as per the error message Invalid configuration value detected for fs.azure.account.key
please confirm which method is used to configure the storage account - Azure Service principal or Storage account keys?
Coming to the resolving the issue:
It looks like you are encountering an error while trying to initialize the configuration for a storage account in Azure Databricks. The error message suggests that there is an invalid configuration value detected for the fs.azure.account.key parameter.
To resolve this issue, you can try the following steps:
- Check if the storage account name and key are correct. Make sure that there are no typos or errors in the values.
- Verify that the storage account key is valid and has not expired. You can regenerate the key if necessary.
- Check if the storage account is accessible from Azure Databricks. You can try accessing the storage account using the Azure Storage Explorer or another tool to confirm that it is accessible.
- Ensure that the storage account is correctly configured for use with Azure Databricks. You can refer to the Azure Databricks documentation for more information on how to configure storage accounts.
If none of the above steps resolve the issue, you may open a support for further assistance.
As per the repro from my end, i'm able to create database with location ADLS Gen 2 using abfss as shown below:
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.