It is possible to get the Azure Subscription offer, or offerId with PowerShell?

Question

Is it possible to get Azure Subscription Offer, or offerId, using Powershell? Through the portal this would be Subscription -> properties -> Offer or offer ID?

I've been searching for a while, but I can't see it.

Thanks,

Solution

This can now be done from the Portal using the Resource Graph Explorer with a query similar to:

resourcecontainers
| where type == "microsoft.resources/subscriptions"
| project name, properties.subscriptionPolicies.quotaId