Getting issue in recreating azure resources using terraform

Singh, Pradeep 0 Reputation points
2023-04-30T14:08:03.31+00:00

Initially I had created azure resources and due to naming conventions I deleted resources and tried to recreate it.

It is giving error in creating data_lake_gen2_path.

mazurerm_storage_data_lake_gen2_path.shared_team_data
Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,471 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 21,325 Reputation points
    2023-04-30T16:34:15.0233333+00:00

    It's possible that when you deleted the Azure resources, some associated resources were not completely removed or the naming convention was not correctly applied. This can cause errors when trying to recreate the resources with the same name.

    To troubleshoot this issue, you can try the following steps:

    Check if the deleted resources are completely removed or not. You can use the Azure portal or Azure CLI to check the status of the resources.

    If there are still resources associated with the previous creation, remove them manually using Azure portal or Azure CLI.

    Double-check the naming convention before recreating the resources. Make sure that you follow the standard naming conventions and avoid any special characters or spaces.

    If the issue persists, try creating the resources with a different name to see if it's a naming conflict issue.

    Check the Azure logs or error messages for more information about the error and take appropriate actions accordingly.

    Regarding the error related to 'mazurerm_storage_data_lake_gen2_path.shared_team_data', please provide more context or details about the error message for me to be able to assist you further.

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.