stevenrombauts's avatar
stevenrombauts
Brass Contributor
Feb 08, 2022
Status:
Completed

Run API requests for client tenants

As an indirect CSP partner, we can list all our client tenants and then run tasks for these tenants using the old https://docs.microsoft.com/en-us/powershell/module/msonline/?view=azureadps-1.0 module by adding the -TenantId argument to each cmdlet. It seems this is no longer possible with the new Microsoft Graph API and cmdlets.

 

For example:

 

 

 

# MSOnline will return results from client tenant
Get-MsolSubscription -TenantId <client id>
# MS Graph will only return results from our own partner tenant
Get-MgSubscribedSku ??

 

 

 

Will this functionality be made available to bring these modules up to feature parity? At this time we can not replace the MSOnline module with the MS Graph Powershell SDK.

2 Comments