Getting list of Azure subscriptions of customers who deployed your Azure Managed Application

“Managed application center” in Azure Portal

In Azure Portal, the publisher can use the Managed application center to see all deployed applications.

Search for “Managed applications center” in Azure Portal
Marketplace applications in Managed applications center
Managed applications list

Programmatically list customers’ Azure subscription and AAD tenant ids

To get the customers’ Azure subscription ids that installed your application, you can use the following ARM REST API call using the publisher identity which was authorized to access/manage the Azure Managed App when it was published in Partner Center:

az rest --url -o json
Response from ARM /subscriptions API
az account list --query "[?managedByTenants[?tenantId=='<<PUBLISHER_TENANT_ID>>']][id]" -o tsv --all

Programmatically list Azure Managed Applications

When using “Managed applications center” UI in the Azure Portal, it is actually invoking an Azure Resource Graph query to show the publisher all of the managed applications they can access.

Developer Tools showing call that “Managed applications center” makes to get list of subscription ids
Azure Resource Graph query from Managed applications center
az graph query --graph-query "resources | where type =~ 'Microsoft.Solutions/applications'|where isnotempty(plan.publisher)| where properties.publisherTenantId == 'dd74924a-88ce-421a-ac87-00fc9dbe4baf' | summarize count(), tenantIds=makeset(tenantId, 1000), any(tostring( , managedResourceGroupIds=makeset(properties.managedResourceGroupId, 5000) by tostring(plan.product), tostring(plan.publisher), subscriptionId" --subscriptions xxxxx1, xxxxx2 -o json
Azure Resource Graph query response showing deployed managed application



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arsen Vladimirskiy

Arsen Vladimirskiy


Principal Engineer / Architect, FastTrack for Azure at Microsoft