Checking the current subscription in Azure is an essential task. In this article, I will walk you through all the steps to achieve this.
How To Check Current Subscription In Azure PowerShell
To check current subscription in Azure PowerShell, follow the below steps.
1. Open Windows PowerShell ISE with Run As Administrator mode.

2. Now, we can execute the Azure PowerShell command below to get the current subscription, as shown in the screenshot below.
Get-AzContextAfter executing the above command, I got the current subscription, as shown in the screenshot below.

3. We can execute the below PowerShell command to get only the current subscription name.
(Get-AzContext).Subscription.NameAfter executing the PowerShell command, I got the expected output, as shown below.

4. We can execute the below PowerShell command to get only the current subscription ID.
(Get-AzContext).Tenant.IdAfter executing the above PowerShell command, I got the expected output, as shown in the screenshot below.

5. We can also use the Get-AzSubscription along with the Get-AzContext command, as shown below, to retrieve the current Azure subscription details.
Get-AzSubscription -SubscriptionId (Get-AzContext).Subscription.IdAfter executing the above command, I got the expected output below.

Conclusion
We can use the Get-AzContext and Get-AzSubscription PowerShell commands to check current subscription in Azure PowerShell. Check out the information mentioned in this article to implement it in real-time.
You may also like following the articles below.
- How To Set Subscription In Azure PowerShell
- How To Switch Subscription In Azure PowerShell
- How To Get Subscription ID In Azure PowerShell

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
