How to get the subscriptions that can be accessed by the current account using PowerShell cmdlets.
Written by Titus Manohar, IT security team, ManageEngine Updated on November 2025
Description:
Executing this command fetches the subscriptions that the current account can access.
Syntax:
Get-AzSubscription [-SubscriptionName <String>] [-TenantId <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
Example:
| Name | Id | TenantId | State |
|---|---|---|---|
| Sub1 | yyyy-yyyy-yyyy-yyyy | aaaa-aaaa-aaaa-aaaa | Enabled |
| Sub2 | xxxx-xxxx-xxxx-xxxx | aaaa-aaaa-aaaa-aaaa | Enabled |
| Sub3 | zzzz-zzzz-zzzz-zzzz | bbbb-bbbb-bbbb-bbbb | Enabled |
In this example Get-AzSubscription cmdlet gets all the subscriptions of all tenants that the current account is authorized to access.
About ADAudit Plus
ADAudit Plus is a real-time, web-based Windows Active Directory change reporting software that audits, tracks, reports and alerts on Active Directory, file servers Windows servers, member servers NetApp filers and EMC servers to help meet the demands of the much-needed security and compliance. With ADAudit Plus' 200+ security audit reports and instant email alerts, track authorized and unauthorized AD management, GPO, groups, and OU changes, user accesses and every file, folder modifications. You can also export these reports to XLS, HTML, PDF and CSV formats to assist in further analysis and forensics. For more information on ADAudit Plus, visit https://www.manageengine.com/active-directory-audit/.
Explore Active Directory auditing and reporting with ADAudit Plus.
- Related Products
- ADManager Plus Active Directory Management & Reporting
- ADAudit Plus Real-time Active Directory Auditing and UBA
- EventLog Analyzer Real-time Log Analysis & Reporting
- ADSelfService Plus Self-Service Password Management
- AD360 Integrated Identity & Access Management
- Log360 (On-Premise | Cloud) Comprehensive SIEM and UEBA
- AD Free Tools Active Directory FREE Tools
