Skip to main content

subscriptions

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

Overview

Namesubscriptions
TypeResource
Idazure.subscription.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.
statestringThe subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
subscriptionIdstringThe subscription ID.
subscriptionPoliciesobjectSubscription policies.
tagsobjectTags for the subscription
tenantIdstringThe tenant ID. For example, 00000000-0000-0000-0000-000000000000.

Methods

NameAccessible byRequired ParamsDescription
getSELECTsubscriptionIdGets details about a specified subscription.
listSELECTGets all subscriptions for a tenant.
accept_ownershipEXECsubscriptionIdAccept subscription ownership.
accept_ownership_statusEXECsubscriptionIdAccept subscription ownership status.
cancelEXECsubscriptionIdThe operation to cancel a subscription
enableEXECsubscriptionIdThe operation to enable a subscription
renameEXECsubscriptionIdThe operation to rename a subscription

SELECT examples

Gets all subscriptions for a tenant.

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