I have a requirement, where I needed to fetch the tenantDirectoryId for a given subscription. I could find a rest get api https://management.azure.com/subscriptions/[subscription]/versions...
The error response to this gave the tenant directory.
Is there any better way to fetch directory for a subscriptionId.
tid
claim which is the tenant id. – juunashttps://management.azure.com/subscriptions/<subscription id>?api-version=2014-04-01
? – Joy Wang