subscriptions
Creates, updates, deletes, gets or lists a subscriptions
resource.
Overview
Name | subscriptions |
Type | Resource |
Id | azure.resources.subscriptions |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000. |
authorizationSource | string | The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. |
displayName | string | The subscription display name. |
managedByTenants | array | 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 | object | Subscription policies. |
tags | object | The tags attached to the subscription. |
tenantId | string | The subscription tenant ID. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | subscriptionId | Gets details about a specified subscription. |
list | SELECT |
| Gets all subscriptions for a tenant. |
check_zone_peers | EXEC | subscriptionId | Compares 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
;