This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Use this function to list all subscriptions for the authenticated account. See https://learn.microsoft.com/en-us/rest/api/resources/subscriptions/list for details.
Using listSubscriptions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function listSubscriptions(args: ListSubscriptionsArgs, opts?: InvokeOptions): Promise<ListSubscriptionsResult>
function listSubscriptionsOutput(args: ListSubscriptionsOutputArgs, opts?: InvokeOptions): Output<ListSubscriptionsResult>def list_subscriptions(api_version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ListSubscriptionsResult
def list_subscriptions_output(api_version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ListSubscriptionsResult]func ListSubscriptions(ctx *Context, args *ListSubscriptionsArgs, opts ...InvokeOption) (*ListSubscriptionsResult, error)
func ListSubscriptionsOutput(ctx *Context, args *ListSubscriptionsOutputArgs, opts ...InvokeOption) ListSubscriptionsResultOutput> Note: This function is named ListSubscriptions in the Go SDK.
public static class ListSubscriptions
{
public static Task<ListSubscriptionsResult> InvokeAsync(ListSubscriptionsArgs args, InvokeOptions? opts = null)
public static Output<ListSubscriptionsResult> Invoke(ListSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ListSubscriptionsResult> listSubscriptions(ListSubscriptionsArgs args, InvokeOptions options)
public static Output<ListSubscriptionsResult> listSubscriptions(ListSubscriptionsArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:authorization:listSubscriptions
arguments:
# arguments dictionaryThe following arguments are supported:
- Api
Version string - The API version to use for the request. Defaults to '2022-12-01'.
- Api
Version string - The API version to use for the request. Defaults to '2022-12-01'.
- api
Version String - The API version to use for the request. Defaults to '2022-12-01'.
- api
Version string - The API version to use for the request. Defaults to '2022-12-01'.
- api_
version str - The API version to use for the request. Defaults to '2022-12-01'.
- api
Version String - The API version to use for the request. Defaults to '2022-12-01'.
listSubscriptions Result
The following output properties are available:
- Next
Link string - The URL to get the next set of results.
- Value
List<Pulumi.
Azure Native. Authorization. Outputs. Subscription Response> - An array of subscriptions.
- Next
Link string - The URL to get the next set of results.
- Value
[]Subscription
Response - An array of subscriptions.
- next
Link String - The URL to get the next set of results.
- value
List<Subscription
Response> - An array of subscriptions.
- next
Link string - The URL to get the next set of results.
- value
Subscription
Response[] - An array of subscriptions.
- next_
link str - The URL to get the next set of results.
- value
Sequence[Subscription
Response] - An array of subscriptions.
- next
Link String - The URL to get the next set of results.
- value List<Property Map>
- An array of subscriptions.
Supporting Types
ManagedByTenantResponse
- Tenant
Id string - The tenant ID of the managing tenant.
- Tenant
Id string - The tenant ID of the managing tenant.
- tenant
Id String - The tenant ID of the managing tenant.
- tenant
Id string - The tenant ID of the managing tenant.
- tenant_
id str - The tenant ID of the managing tenant.
- tenant
Id String - The tenant ID of the managing tenant.
SubscriptionPoliciesResponse
- Location
Placement stringId - The subscription location placement ID.
- Quota
Id string - The subscription quota ID.
- Spending
Limit string - The subscription spending limit.
- Location
Placement stringId - The subscription location placement ID.
- Quota
Id string - The subscription quota ID.
- Spending
Limit string - The subscription spending limit.
- location
Placement StringId - The subscription location placement ID.
- quota
Id String - The subscription quota ID.
- spending
Limit String - The subscription spending limit.
- location
Placement stringId - The subscription location placement ID.
- quota
Id string - The subscription quota ID.
- spending
Limit string - The subscription spending limit.
- location_
placement_ strid - The subscription location placement ID.
- quota_
id str - The subscription quota ID.
- spending_
limit str - The subscription spending limit.
- location
Placement StringId - The subscription location placement ID.
- quota
Id String - The subscription quota ID.
- spending
Limit String - The subscription spending limit.
SubscriptionResponse
- string
- The authorization source of the request.
- Display
Name string - The subscription display name.
- Id string
- The fully qualified ID for the subscription.
- Managed
By List<Pulumi.Tenants Azure Native. Authorization. Inputs. Managed By Tenant Response> - An array containing the tenants managing the subscription.
- State string
- The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
- Subscription
Id string - The subscription ID.
- Subscription
Policies Pulumi.Azure Native. Authorization. Inputs. Subscription Policies Response - The subscription policies.
- Dictionary<string, string>
- The tags attached to the subscription.
- Tenant
Id string - The subscription tenant ID.
- string
- The authorization source of the request.
- Display
Name string - The subscription display name.
- Id string
- The fully qualified ID for the subscription.
- Managed
By []ManagedTenants By Tenant Response - An array containing the tenants managing the subscription.
- State string
- The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
- Subscription
Id string - The subscription ID.
- Subscription
Policies SubscriptionPolicies Response - The subscription policies.
- map[string]string
- The tags attached to the subscription.
- Tenant
Id string - The subscription tenant ID.
- String
- The authorization source of the request.
- display
Name String - The subscription display name.
- id String
- The fully qualified ID for the subscription.
- managed
By List<ManagedTenants By Tenant Response> - An array containing the tenants managing the subscription.
- state String
- The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
- subscription
Id String - The subscription ID.
- subscription
Policies SubscriptionPolicies Response - The subscription policies.
- Map<String,String>
- The tags attached to the subscription.
- tenant
Id String - The subscription tenant ID.
- string
- The authorization source of the request.
- display
Name string - The subscription display name.
- id string
- The fully qualified ID for the subscription.
- managed
By ManagedTenants By Tenant Response[] - An array containing the tenants managing the subscription.
- state string
- The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
- subscription
Id string - The subscription ID.
- subscription
Policies SubscriptionPolicies Response - The subscription policies.
- {[key: string]: string}
- The tags attached to the subscription.
- tenant
Id string - The subscription tenant ID.
- str
- The authorization source of the request.
- display_
name str - The subscription display name.
- id str
- The fully qualified ID for the subscription.
- managed_
by_ Sequence[Managedtenants By Tenant Response] - An array containing the tenants managing the subscription.
- state str
- The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
- subscription_
id str - The subscription ID.
- subscription_
policies SubscriptionPolicies Response - The subscription policies.
- Mapping[str, str]
- The tags attached to the subscription.
- tenant_
id str - The subscription tenant ID.
- String
- The authorization source of the request.
- display
Name String - The subscription display name.
- id String
- The fully qualified ID for the subscription.
- managed
By List<Property Map>Tenants - An array containing the tenants managing the subscription.
- state String
- The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
- subscription
Id String - The subscription ID.
- subscription
Policies Property Map - The subscription policies.
- Map<String>
- The tags attached to the subscription.
- tenant
Id String - The subscription tenant ID.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
