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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Perhaps this is a nit picky edge case, but it makes sense to me that if a resource_group id is parsed then the resource_name should be set to the name of the resource group. The mapping of local.resource-map.resource_group_name does work correctly.
Making this change would be handy. If this change was made, I could rely on the function to always return the (common) name of the resource and I wouldn't have to check for empty string and 'guess' that a resource_group was provided. I'm using this to name azuread_groups dynamically where the scope could be the resource or the resource group.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Community Note
Terraform Version
v1.9.8
AzureRM Provider Version
4.13.0
Affected Resource(s)/Data Source(s)
provider::azurerm::parse_resource_id
Terraform Configuration Files
Debug Output/Panic Output
N/A Let me know if you really need it
Expected Behaviour
local.resource-map.resource_name
would have returned the name of the resource groupdevops-storage-account
Actual Behaviour
local.resource-map.resource_name
returns "" ( empty string )Perhaps this is a nit picky edge case, but it makes sense to me that if a resource_group id is parsed then the resource_name should be set to the name of the resource group. The mapping of
local.resource-map.resource_group_name
does work correctly.Making this change would be handy. If this change was made, I could rely on the function to always return the (common) name of the resource and I wouldn't have to check for empty string and 'guess' that a resource_group was provided. I'm using this to name azuread_groups dynamically where the scope could be the resource or the resource group.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: