Loading...
Loading...
### Terraform Version ```shell Terraform v1.6.1 on windows_amd64 ``` ### Terraform Configuration Files ```hcl terraform { required_providers { azurerm = { source = "hashicorp/azurerm" version = "3.79.0" } } backend "azurerm" { resource_group_name = "rg_name" storage_account_name = "storage" container_name = "container" key = "terraform.tfstate" } } ``` ### Debug Output ``` 2023-11-07T14:52:25.778Z [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate 2023-11-07T14:52:25.778Z [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay 2023-11-07T14:52:25.778Z [TRACE] statemgr.Filesystem: read nil snapshot 2023-11-07T14:52:25.778Z [TRACE] Meta.Backend: ignoring local "default" workspace because its state is empty 2023-11-07T14:52:25.784Z [DEBUG] New state was assigned lineage "xxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxx" 2023-11-07T14:52:25.784Z [DEBUG] Azure Backend Request: GET /container?comp=list&prefix=terraform.tfstateenv%3A&restype=container HTTP/1.1 Host: storage.blob.core.windows.net User-Agent: HashiCorp Terraform/1.6.1 (+https://www.terraform.io) Content-Type: application/xml; charset=utf-8 X-Ms-Date: Tue, 07 Nov 2023 14:52:25 GMT X-Ms-Version: 2018-11-09 Accept-Encoding: gzip 2023-11-07T14:54:36.671Z [DEBUG] Request to https://storage.blob.core.windows.net/container?comp=list&prefix=terraform.tfstateenv%3A&restype=container completed with no response 2023-11-07T14:55:06.674Z [DEBUG] Azure Backend Request: GET /container?comp=list&prefix=terraform.tfstateenv%3A&restype=container HTTP/1.1 Host: storage.blob.core.windows.net User-Agent: HashiCorp Terraform/1.6.1 (+https://www.terraform.io) Content-Type: application/xml; charset=utf-8 X-Ms-Date: Tue, 07 Nov 2023 14:52:25 GMT X-Ms-Version: 2018-11-09 Accept-Encoding: gzip ``` ### Expected Behavior Hi everyone, I kindly ask for your support with the problem I am currently experiencing. Basically I need to configure the backend in my terraform code but currently from the client where I'm trying it's not possible and I get the error I indicated. The client is an agent pool used for a pipeline on Azure Devops, so I take advantage of the pre-built modules that are already present. ### Actual Behavior I have this issue during the terraform init process: ``` terraform.exe init -backend-config=storage_account_name=storage -backend-config=container_name=container -backend-config=key=terraform.tfstate -backend-config=resource_group_name=rg -backend-config=subscription_id=xxxxxx-xxxx-xxxxx-xxxxxx-xxxxxxx -backend-config=tenant_id=xxxxx-xxxxx-xxxx-xxxxx-xxxxxx -backend-config=client_id=*** -backend-config=client_secret=*** Error: Failed to get existing workspaces: containers.Client#ListBlobs: Failure sending request: StatusCode=0 -- Original Error: Get "https://storage.blob.core.windows.net/container?comp=list&prefix=terraform.tfstateenv%3A&restype=container": EOF ``` ### Steps to Reproduce 1. `terraform init -backend-config` ### Additional Context _No response_ ### References _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.