Use this data source to access information about Service Tags.
data "azurerm_network_service_tags" "example" {
location = "westcentralus"
service = "AzureKeyVault"
location_filter = "northeurope"
}
output "address_prefixes" {
value = data.azurerm_network_service_tags.example.address_prefixes
}
output "ipv4_cidrs" {
value = data.azurerm_network_service_tags.example.ipv4_cidrs
}
The following arguments are supported:
location
- (Required) The Azure Region where the Service Tags exists. This value is not used to filter the results but for specifying the region to request. For filtering by region use location_filter
instead. More information can be found here: Service Tags URL parameters.
service
- (Required) The type of the service for which address prefixes will be fetched. Available service tags can be found here: Available service tags.
location_filter
- (Optional) Changes the scope of the service tags. Can be any value that is also valid for location
. If this field is empty then all address prefixes are considered instead of only location specific ones.In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of this Service Tags block.
name
- The name of this Service Tags block.
address_prefixes
- List of address prefixes for the service type (and optionally a specific region).
ipv4_cidrs
- List of IPv4 addresses for the service type (and optionally a specific region)
ipv6_cidrs
- List of IPv6 addresses for the service type (and optionally a specific region)
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Service Tags.