azure.subscription
Supported platform
- azure
Description
Azure subscription
Use the azure.subscription resource to assess the configuration of Azure subscriptions.
Fields
| ID | TYPE | DESCRIPTION |
|---|---|---|
| id | string | Full resource identifier of the subscription |
| name | string | Name of the subscription |
| subscriptionId | string | Subscription identifier |
| tenantId | string | Subscription tenant identifier |
| managedByTenants | []string | List of tenants that manage the subscription |
| tags | map[string]string | Subscription tags |
| state | string | Subscription state |
| authorizationSource | string | Subscription authorization source |
| subscriptionsPolicies | dict | Subscription policies |
| resources | []azure.subscription.resource | All resources in a subscription |
| resourceGroups | []azure.subscription.resourcegroup | Resource groups in the subscription |
| compute | azure.subscription.computeService | Compute resources in the subscription |
| batch | azure.subscription.batchService | Batch resources in the subscription |
| network | azure.subscription.networkService | Network resources in the subscription |
| storage | azure.subscription.storageService | Storage resources in the subscription |
| web | azure.subscription.webService | Web resources in the subscription |
| sql | azure.subscription.sqlService | SQL resources in the subscription |
| mySql | azure.subscription.mySqlService | MySQL resources inside the subscription |
| postgreSql | azure.subscription.postgreSqlService | PostgreSQL resources in the subscription |
| mariaDb | azure.subscription.mariaDbService | MariaDB resources in the subscription |
| cosmosDb | azure.subscription.cosmosDbService | Cosmos DB resources in the subscription |
| keyVault | azure.subscription.keyVaultService | Azure Key Vault resources in the subscription |
| iam | azure.subscription.authorizationService | Authorization resources in the subscription |
| monitor | azure.subscription.monitorService | Monitor resources in the subscription |
| cloudDefender | azure.subscription.cloudDefenderService | Cloud defender resources in the subscription |
| aks | azure.subscription.aksService | AKS resources in the subscription |
| advisor | azure.subscription.advisorService | Advisor resources in the subscription |
| policy | azure.subscription.policy | Policy service in the subscription |
| iot | azure.subscription.iotService | IoT resources in the subscription |
| cache | azure.subscription.cacheService | Cache resources in the subscription |
Examples
Return the subscription ID and a list of tenants that manage the subscription
azure.subscription {
subscriptionId
managedByTenants
}
References