last day (15 days later) » 

10:24 AM
hello
Sandeep
 
 
2 hours later…
12:43 PM
Hi AnsumanBal
 
12:59 PM
Error: Provider configuration not present

│ To work with module.Synapse.azurerm_resource_group.example (orphan) its original provider configuration at
│ module.Synapse.provider["registry.terraform.io/hashicorp/azurerm"] is required, but it has been removed. This occurs when a provider
│ configuration is removed while objects created by that provider still exist in the state. Re-add the provider configuration to destroy
│ module.Synapse.azurerm_resource_group.example (orphan), after which you can remove the provider configuration again.
 
1:56 PM
I am using just the provider block that I have mentioned in my code
It gets the recent version of azurerm provider
As per the error seems like you are using module in providers
Can you share the provider block that you are using
 
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">=2.46.0"
}
}
}

provider "azurerm" {
# Configuration options
features {}
}
i was using this
 
Can you remove the above part and just keep the provider "azurerm" block
 
Can you share full code of main file.
 
i am executing, removing it
provider "azurerm" {
features {}
}

data "azurerm_storage_account" "name" {
name = "demodlg2sa"
resource_group_name = "demorg"
}
data "azurerm_storage_container" "raw" {
name = "raw"
storage_account_name = "demodlg2sa"
}


resource "azurerm_synapse_workspace" "example" {
name = "testsyn"
resource_group_name = "demorg"
location = "East US"
storage_data_lake_gen2_filesystem_id = data.azurerm_storage_container.raw.id

│ Error: creating Synapse Workspace "testsyn" (Resource Group "demorg"): synapse.WorkspacesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="ValidationFailed" Message="Workspace request validation failed, check error details for more information" Details=[{"code":"DefaultDataLakeStorageAccountUrlNotInUriFormat","message":"The default data lake storage account url property should be in the format: https://accountname.dfs.core.windows.net"}]

│ with azurerm_synapse_workspace.example,
 
2:04 PM
Sure .. use the whole code I have provided
Seems you are still using storage container in the filesystem .
You should have a adls storage account created not a normal storage account
Then you create a filesystem using your adls existing storage account as I have done in my code
 
Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply"
now.
 
It's fine you can apply it's just a warning
 
Hierarchical namespace
Enabled
 
Error: checking for existence of existing File System "example" (Account "demodlg2sa"): datalakestore.Client#GetProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF

│ with azurerm_storage_data_lake_gen2_filesystem.example,
│ on main.tf line 9, in resource "azurerm_storage_data_lake_gen2_filesystem" "example":
│ 9: resource "azurerm_storage_data_lake_gen2_filesystem" "example" {
 
2:11 PM
Can you share the modified code you are using now
 
provider "azurerm" {
features{}
}

data "azurerm_storage_account" "name" {
name = "demodlg2sa"
resource_group_name = "demorg"
}
resource "azurerm_storage_data_lake_gen2_filesystem" "example" {
name = "example"
storage_account_id = data.azurerm_storage_account.name.id
}
resource "azurerm_synapse_workspace" "example" {
name = "example"
resource_group_name = "yourresourcegroupname"
location = "West US 2"
storage_data_lake_gen2_filesystem_id = azurerm_storage_data_lake_gen2_filesystem.example.id
 
Can you change the resource group value in the synapse block
And also the name of synapse
Example is not allowed
You can give name as per your requirement
 
okay
and what about location?
 
You can keep it as per your resource group
 
okay
Plan: 2 to add, 0 to change, 0 to destroy.
azurerm_storage_data_lake_gen2_filesystem.example: Creating...

│ Error: checking for existence of existing File System "example" (Account "demodlg2sa"): datalakestore.Client#GetProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF

│ with azurerm_storage_data_lake_gen2_filesystem.example,
│ on main.tf line 9, in resource "azurerm_storage_data_lake_gen2_filesystem" "example":
 
2:21 PM
Mya I know if you have done az login
Or az account set -s subscription ID
As the error is 403 means forbidden. That means the terraform is not able to create the file system
Please login to your sub using the above cli commands that I mentioned
Before doing terraform apply
 
Plan: 2 to add, 0 to change, 0 to destroy.
azurerm_storage_data_lake_gen2_filesystem.example: Creating...

│ Error: checking for existence of existing File System "example" (Account "demodlg2sa"): datalakestore.Client#GetProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF

│ with azurerm_storage_data_lake_gen2_filesystem.example,
│ on main.tf line 9, in resource "azurerm_storage_data_lake_gen2_filesystem" "example":
yes this time i tried to do that as well
 
Please share the code again here that you are running
And may I know if you have contributor or owner access of the subscription?
 
provider "azurerm" {
features {}
}

data "azurerm_storage_account" "name" {
name = "demodlg2sa"
resource_group_name = "demorg"
}
resource "azurerm_storage_data_lake_gen2_filesystem" "example" {
name = "example"
storage_account_id = data.azurerm_storage_account.name.id
}
resource "azurerm_synapse_workspace" "example" {
name = "synapsetest"
resource_group_name = "demorg"
location = "East US"
storage_data_lake_gen2_filesystem_id = azurerm_storage_data_lake_gen2_filesystem.example.id
yes i am an owner
 
Error is still in filesystem
 
2:36 PM
Can you try changing the name in filesyestem
And see if it resolves
 
tried
 
Can you share the whole snap of your screen
If not possible here you can send on linkedin
 
2:54 PM
Is it successful?
 
linkedin id please?
 

last day (15 days later) »