Skip to main content

azure.subscription

Supported platform

  • azure

Description

Azure subscription

Use the azure.subscription resource to assess the configuration of Azure subscriptions.

Fields

IDTYPEDESCRIPTION
idstringFull resource identifier of the subscription
namestringName of the subscription
subscriptionIdstringSubscription identifier
tenantIdstringSubscription tenant identifier
managedByTenants[]stringList of tenants that manage the subscription
tagsmap[string]stringSubscription tags
statestringSubscription state
authorizationSourcestringSubscription authorization source
subscriptionsPoliciesdictSubscription policies
resources[]azure.subscription.resourceAll resources in a subscription
resourceGroups[]azure.subscription.resourcegroupResource groups in the subscription
computeazure.subscription.computeServiceCompute resources in the subscription
networkazure.subscription.networkServiceNetwork resources in the subscription
storageazure.subscription.storageServiceStorage resources in the subscription
webazure.subscription.webServiceWeb resources in the subscription
sqlazure.subscription.sqlServiceSQL resources in the subscription
mySqlazure.subscription.mySqlServiceMySQL resources inside the subscription
postgreSqlazure.subscription.postgreSqlServicePostgreSQL resources in the subscription
mariaDbazure.subscription.mariaDbServiceMariaDB resources in the subscription
cosmosDbazure.subscription.cosmosDbServiceCosmos DB resources in the subscription
keyVaultazure.subscription.keyVaultServiceAzure Key Vault resources in the subscription
authorizationazure.subscription.authorizationServiceAuthorization resources in the subscription
monitorazure.subscription.monitorServiceMonitor resources in the subscription
cloudDefenderazure.subscription.cloudDefenderServiceCloud defender resources in the subscription
aksazure.subscription.aksServiceAKS resources in the subscription
advisorazure.subscription.advisorServiceAdvisor resources in the subscription

Examples

Return the subscription ID and a list of tenants that manage the subscription

azure.subscription {
subscriptionId
managedByTenants
}