You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: parsing "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.DesktopVirtualization/hostPools/hostpoolValue": parsing segment "staticHostPools": parsing the HostPool ID: the segment at position 6 didn't match
Expected Behaviour
It should not show an error when the P in hostPoolValue is lowercase.
This shows as lower case, hostpool, within the virtual_desktop_scaling_plan resource when viewed from the portal. However, azurerm is expecting the a to be Uppercase.
Is this intended or is the casing here expected to match what's required in Azure?
Hi @Untamedlogic thanks for opening this issue. I apologize for the trouble this issue has caused you. The fact is that in the current design of Terraform, the resource Id entered by the user is case-sensitive. So this is intentional. It is worth mentioning that this principle is also followed when using Terraform Import command. Taking resource azurerm_virtual_desktop_host_pool as an example, the Id should be /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup1/providers/Microsoft.DesktopVirtualization/hostPools/myhostpool instead of /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup1/providers/Microsoft.DesktopVirtualization/hostpools/myhostpool . Thank you for your understanding.
Thank you for the response. If I update the resource locally to account for the case the terraform plan shows a change in the host_pool_id of the resource. The backstory here is I'm trying to import this scaling plan and I'm running into this conflict. My goal is to get this value assigned without changing the ID in Azure.
Is there an existing issue for this?
Community Note
Terraform Version
1.6.3
AzureRM Provider Version
3.77.0
Affected Resource(s)/Data Source(s)
azurerm_virtual_desktop_scaling_plan,
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should not show an error when the P in hostPoolValue is lowercase.
This shows as lower case,
hostpool
, within thevirtual_desktop_scaling_plan
resource when viewed from the portal. However, azurerm is expecting the a to be Uppercase.Is this intended or is the casing here expected to match what's required in Azure?
Actual Behaviour
Validation Error as shown above.
Steps to Reproduce
No response
Important Factoids
No response
References
issue-23363
Other instances of mismatched casing:
issue-23378
The text was updated successfully, but these errors were encountered: