Using the Powershell Azure module, is there a way to get the active subscription ID?
I can set the subscription using Set-AzContext, but Get-AzContext returns the subscription name without a specific ID column
Get-AzSubscription returns a list of subscriptions, but not the active subscription.
you could do that with the following command:
(Get-AzContext).Subscription.id
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With