-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error parsing segment "staticResourceGroups": expected the segment "resourcegroups" to be "resourceGroups" #18210
Comments
Same is the case with DataExports
|
I would like to raise the general question here why those changes are now introduced and breaking dozens of Terraform deployments? @tombuildsstuff @katbyte Can you shed some light on this? Thanks. The first one I have seen was the one with version |
We're run in to this issue today with version 3.21.1 of the provider with azurerm_log_analytics_solution which generates the same error:
Confirmed that this was not an issue in version 3.20.0, but I've also tested with 3.21.0 and that gives the same error. |
Tested today with 3.22.0 and seems to be fixed now. |
I have just opened a new issue for |
Hey ya'll 👋 We're aware of this issue and actively working on a fix, thanks to everyone for the reporting on/upvoting this issue for visibility! @dan-leanix my response on a similar issue #18235 (comment) gives a little context into why these issues tend to come up every now and then. |
@Amier3 we can see from other threads that this has been fixed in azurerm version [v3.22.0]. But the resource https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service itself is not supported in version 3.0. Is there any chance we can get this issue fixed in azurerm ~> 2.20 version. It is difficult to switch to new TF resource( azurerm_linux_web_app and azurerm_windows_web_app) for existing appservices created via azurerm_app_service resource |
Any update on this please? |
the same issue with kubernetes AKS |
The same issue appeared on "azurerm_virtual_machine":
|
Regarding AKS, the following versions worked for me: 3.10.0 and 3.22.0 to 3.28.0
error on refresh on the |
The same issue appeared on "azurerm_kubernetes_cluster":
Terraform v1.3.9 |
@ValeruS @okoudje @mcereda based on the error messages above it appears that your the Resource ID used to import this resource into Terraform may have been in a different casing to that defined in the If you've imported this resource into Terraform previously, you can update this using Since it appears the original issue has been fixed here I'm going to close this issue for the moment, if you're still seeing this error then please ensure that the ID being provided matches what's defined for this Resource ID against the relevant resource in Terraform. Unfortunately the Azure API returns Resource IDs inconsistently, so whilst they're supposed to be defined and returned in camelCase (e.g. As such, if you're still seeing this issue then I'd recommend checking the Resource ID being provided, but if you're still having issues using the latest version of the Provider then please let us know (with the output of which Resource you're using and the Resource ID being specified) and we can take a look. Thanks! |
@tombuildsstuff This issue is still happening. I am trying to create new cluster by providing Log Analytics workspace resource ID and it keeps throwing error.
note: I am not doing any import |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
v0.13.5
AzureRM Provider Version
v2.99.0
Affected Resource(s)/Data Source(s)
resource "azurerm_app_service" and resource "azurerm_function_app"
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Saw one thread which says this has been fixed in azurerm version v2.88.1 #14456
But we still get issue while using the version v2.99.0
When pinning to azurerm = v2.87.0" this is working. Should work with versions greater than v2.88.1
Actual Behaviour
Throws error Error parsing segment "staticResourceGroups": expected the segment "resourcegroups" to be "resourceGroups" while creating function app and app service.
Steps to Reproduce
resource "azurerm_app_service" "appservice" {
name = var.appservice_app_name
location = var.location
resource_group_name = var.app_resource_group
app_service_plan_id = data.azurerm_app_service_plan.app_service_plan.id
https_only = true
client_affinity_enabled = var.client_affinity_enabled
app_settings = merge(var.appsettings, local.app_settings)
identity {
type ="UserAssigned"
identity_ids = var.user_assigned_managed_identity_ids
}
site_config {
always_on = var.always_on
default_documents = var.default_documents
use_32_bit_worker_process = var.use_32_bit_worker_process
}
}
Important Factoids
No response
References
#14456
The text was updated successfully, but these errors were encountered: