Open johnjjimenez opened 8 months ago
Thanks for raising this issue. Seems I can't repro it on my local. Could you double confirm if the steps are correct? Thanks.
Repro steps:
tf config:
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "test" {
name = "acctestRG-ss-test01"
location = "westeurope"
}
resource "azurerm_storage_sync" "test" {
name = "acctest-SS-test01"
resource_group_name = azurerm_resource_group.test.name
location = azurerm_resource_group.test.location
incoming_traffic_policy = "AllowVirtualNetworksOnly"
}
resource "azurerm_storage_sync_group" "test" {
name = "acctest-StorageSyncGroup-test01"
storage_sync_id = azurerm_storage_sync.test.id
}
Sorry. I forgot to provide the module block.
module "storage_sync" {
source = "../../common-modules/az-storage-sync/"
count = var.storage_sync_name != "" && var.storage_sync_name != null ? 1 : 0
location = var.location
resource_group_name = azurerm_resource_group.rg.name
name = var.storage_sync_name
incoming_traffic_policy = var.storage_sync_incoming_traffic_policy
storage_sync_group_names = var.storage_sync_group_names
private_endpoint_enabled = var.storage_sync_private_endpoint_enabled
private_endpoint_name = var.storage_sync_private_endpoint_name
private_endpoint_subresource_names = var.storage_sync_private_endpoint_subresource_names
subnet_id = data.azurerm_subnet.this.id
tags = merge(var.storage_sync_tags, var.tags)
}
This issue can be closed. I corrected the IDs in my state file to fix the issue.
Is there an existing issue for this?
Community Note
Terraform Version
1.7.3
AzureRM Provider Version
3.94.0
Affected Resource(s)/Data Source(s)
azurerm_storage_sync_group
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
%2F should be decoded to a forward slash between segments 4 and 5.
Actual Behaviour
%2F is not decoded to a forward slash between segments 4 and 5.
I was initially using AzureRM Provider v3.55.0 and the SyncGroup ID has the encoded forward slash between segments 4 and 5 but does not throw an error.
I upgraded to 3.94.0 and started receiving this error message.
Steps to Reproduce
terraform plan terraform apply
Important Factoids
Azure Government
References
No response