azurerm_network_service_tags does not work for globally deployed resources (e.g. FrontDoor) #26428
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Terraform Version
1.7.5
AzureRM Provider Version
3.109.0
Affected Resource(s)/Data Source(s)
azurerm_network_service_tags
Terraform Configuration Files
Debug Output/Panic Output
Condensed log showing the full response from the Azure service tag API (including the service tag `AzureFrontDoor.Frontend`): https://gist.github.com/hilariocoelho/145c7e4c03839066248d50fad3d8372d
Expected Behaviour
The data source should've returned the list of address prefixes that are listed under the service tag
AzureFrontDoor.Frontend
.Actual Behaviour
Steps to Reproduce
terraform apply
Important Factoids
I can't specify wich Tag to use
Backend
vsFrontend
vsFirstParty
and by default the provider usesAzureFrontDoor.Backend
tag.References
This issue is very similar to #9156 but in this case I would like to data source
Frontend
tagI believe this is due to how the function
isServiceTagOf
works. It is only validating the first element after thestrings.Split(stName, ".")
.I returned service tags are alphabetically sorted so the first match should be
AzureFrontDoor.Backend
and the list of CIDR Ranges will be returned here. This is why by default the returned IPs are fromBackend
service tagThe text was updated successfully, but these errors were encountered: