» Data Source: azurerm_subscriptions

Use this data source to access information about all the Subscriptions currently available.

» Example Usage

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}"

» Argument Reference

  • display_name_prefix - (Optional) A case-insensitive prefix which can be used to filter on the display_name field
  • display_name_contains - (Optional) A case-insensitive value which must be contained within the display_name field, used to filter the results

» Attributes Reference

  • subscriptions - One or more subscription blocks as defined below.

The subscription block contains:

  • display_name - The subscription display name.
  • 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.