Use this data source to access information about an existing Subscription.
data "azurerm_subscription" "current" {
}
output "current_subscription_display_name" {
value = data.azurerm_subscription.current.display_name
}
subscription_id
- (Optional) Specifies the ID of the subscription. If this argument is omitted, the subscription ID of the current Azure Resource Manager provider is used.id
- The ID of the 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 Subscription.The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Subscription.