Use this data source to access information about all the Subscriptions currently available.
data "azurerm_subscriptions" "available" {
}
output "available_subscriptions" {
value = data.azurerm_subscriptions.available.subscriptions
}
output "first_available_subscription_display_name" {
value = data.azurerm_subscriptions.available.subscriptions[0].display_name
}
display_name_prefix
- (Optional) A case-insensitive prefix which can be used to filter on the display_name
fielddisplay_name_contains
- (Optional) A case-insensitive value which must be contained within the display_name
field, used to filter the resultssubscriptions
- One or more subscription
blocks as defined below.The subscription
block contains:
id
- The ID of this subscription.subscription_id
- The subscription GUID.display_name
- The subscription display name.tenant_id
- The subscription tenant ID.state
- The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.location_placement_id
- The subscription location placement ID.quota_id
- The subscription quota ID.spending_limit
- The subscription spending limit.tags
- A mapping of tags assigned to the resource.The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the subscriptions.