Skip to main content

subscriptions

Creates, updates, deletes, gets or lists a subscriptions resource.

Overview

Namesubscriptions
TypeResource
Idazure.resources.subscriptions

Fields

NameDatatypeDescription
idstringThe fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
authorizationSourcestringThe authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
displayNamestringThe subscription display name.
managedByTenantsarrayAn array containing the tenants managing the subscription.
statestringThe subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
subscriptionIdstringThe subscription ID.
subscriptionPoliciesobjectSubscription policies.
tagsobjectThe tags attached to the subscription.
tenantIdstringThe subscription tenant ID.

Methods

NameAccessible byRequired ParamsDescription
getSELECTsubscriptionIdGets details about a specified subscription.
listSELECTGets all subscriptions for a tenant.
check_zone_peersEXECsubscriptionIdCompares a subscriptions logical zone mapping

SELECT examples

Gets all subscriptions for a tenant.

SELECT
id,
authorizationSource,
displayName,
managedByTenants,
state,
subscriptionId,
subscriptionPolicies,
tags,
tenantId
FROM azure.resources.subscriptions
;