1. Packages
  2. Azure Native
  3. API Docs
  4. authorization
  5. listSubscriptions
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
azure-native logo
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

    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 dictionary

    The following arguments are supported:

    ApiVersion string
    The API version to use for the request. Defaults to '2022-12-01'.
    ApiVersion string
    The API version to use for the request. Defaults to '2022-12-01'.
    apiVersion String
    The API version to use for the request. Defaults to '2022-12-01'.
    apiVersion 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'.
    apiVersion String
    The API version to use for the request. Defaults to '2022-12-01'.

    listSubscriptions Result

    The following output properties are available:

    NextLink string
    The URL to get the next set of results.
    Value List<Pulumi.AzureNative.Authorization.Outputs.SubscriptionResponse>
    An array of subscriptions.
    NextLink string
    The URL to get the next set of results.
    Value []SubscriptionResponse
    An array of subscriptions.
    nextLink String
    The URL to get the next set of results.
    value List<SubscriptionResponse>
    An array of subscriptions.
    nextLink string
    The URL to get the next set of results.
    value SubscriptionResponse[]
    An array of subscriptions.
    next_link str
    The URL to get the next set of results.
    value Sequence[SubscriptionResponse]
    An array of subscriptions.
    nextLink String
    The URL to get the next set of results.
    value List<Property Map>
    An array of subscriptions.

    Supporting Types

    ManagedByTenantResponse

    TenantId string
    The tenant ID of the managing tenant.
    TenantId string
    The tenant ID of the managing tenant.
    tenantId String
    The tenant ID of the managing tenant.
    tenantId string
    The tenant ID of the managing tenant.
    tenant_id str
    The tenant ID of the managing tenant.
    tenantId String
    The tenant ID of the managing tenant.

    SubscriptionPoliciesResponse

    LocationPlacementId string
    The subscription location placement ID.
    QuotaId string
    The subscription quota ID.
    SpendingLimit string
    The subscription spending limit.
    LocationPlacementId string
    The subscription location placement ID.
    QuotaId string
    The subscription quota ID.
    SpendingLimit string
    The subscription spending limit.
    locationPlacementId String
    The subscription location placement ID.
    quotaId String
    The subscription quota ID.
    spendingLimit String
    The subscription spending limit.
    locationPlacementId string
    The subscription location placement ID.
    quotaId string
    The subscription quota ID.
    spendingLimit string
    The subscription spending limit.
    location_placement_id str
    The subscription location placement ID.
    quota_id str
    The subscription quota ID.
    spending_limit str
    The subscription spending limit.
    locationPlacementId String
    The subscription location placement ID.
    quotaId String
    The subscription quota ID.
    spendingLimit String
    The subscription spending limit.

    SubscriptionResponse

    AuthorizationSource string
    The authorization source of the request.
    DisplayName string
    The subscription display name.
    Id string
    The fully qualified ID for the subscription.
    ManagedByTenants List<Pulumi.AzureNative.Authorization.Inputs.ManagedByTenantResponse>
    An array containing the tenants managing the subscription.
    State string
    The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
    SubscriptionId string
    The subscription ID.
    SubscriptionPolicies Pulumi.AzureNative.Authorization.Inputs.SubscriptionPoliciesResponse
    The subscription policies.
    Tags Dictionary<string, string>
    The tags attached to the subscription.
    TenantId string
    The subscription tenant ID.
    AuthorizationSource string
    The authorization source of the request.
    DisplayName string
    The subscription display name.
    Id string
    The fully qualified ID for the subscription.
    ManagedByTenants []ManagedByTenantResponse
    An array containing the tenants managing the subscription.
    State string
    The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
    SubscriptionId string
    The subscription ID.
    SubscriptionPolicies SubscriptionPoliciesResponse
    The subscription policies.
    Tags map[string]string
    The tags attached to the subscription.
    TenantId string
    The subscription tenant ID.
    authorizationSource String
    The authorization source of the request.
    displayName String
    The subscription display name.
    id String
    The fully qualified ID for the subscription.
    managedByTenants List<ManagedByTenantResponse>
    An array containing the tenants managing the subscription.
    state String
    The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
    subscriptionId String
    The subscription ID.
    subscriptionPolicies SubscriptionPoliciesResponse
    The subscription policies.
    tags Map<String,String>
    The tags attached to the subscription.
    tenantId String
    The subscription tenant ID.
    authorizationSource string
    The authorization source of the request.
    displayName string
    The subscription display name.
    id string
    The fully qualified ID for the subscription.
    managedByTenants ManagedByTenantResponse[]
    An array containing the tenants managing the subscription.
    state string
    The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
    subscriptionId string
    The subscription ID.
    subscriptionPolicies SubscriptionPoliciesResponse
    The subscription policies.
    tags {[key: string]: string}
    The tags attached to the subscription.
    tenantId string
    The subscription tenant ID.
    authorization_source 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_tenants Sequence[ManagedByTenantResponse]
    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 SubscriptionPoliciesResponse
    The subscription policies.
    tags Mapping[str, str]
    The tags attached to the subscription.
    tenant_id str
    The subscription tenant ID.
    authorizationSource String
    The authorization source of the request.
    displayName String
    The subscription display name.
    id String
    The fully qualified ID for the subscription.
    managedByTenants List<Property Map>
    An array containing the tenants managing the subscription.
    state String
    The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
    subscriptionId String
    The subscription ID.
    subscriptionPolicies Property Map
    The subscription policies.
    tags Map<String>
    The tags attached to the subscription.
    tenantId String
    The subscription tenant ID.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    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
      Try Pulumi Cloud free. Your team will thank you.