Skip to content

Files

Latest commit

8691446 · Mar 14, 2022

History

History
47 lines (32 loc) · 2.72 KB

analytics-prerequisites.md

File metadata and controls

47 lines (32 loc) · 2.72 KB
title description ms.service ms.subservice ms.topic author ms.author ms.reviewer ms.date
Prerequisites to programmatically access analytics data
Learn the requirements you need to meet before you can programmatically access commercial marketplace analytics data in Partner Center.
marketplace
partnercenter-marketplace-publisher
article
smannepalle
smannepalle
sroy
03/14/2022

Prerequisites to programmatically access analytics data

Before you can programmatically access commercial marketplace analytics data, you need to meet the following requirements.

Commercial marketplace enrollment

To access commercial marketplace analytics data programmatically, you need to be enrolled in the commercial marketplace program and have a Partner Center account. To learn how, see Create a commercial marketplace account in Partner Center.

Create Azure Active Directory application

Regular user credentials cannot be used for programmatic access of commercial marketplace analytics data. An Azure Active Directory (Azure AD) application needs to be created along with a secret to access the analytics APIs. To learn how to create an Azure AD application and secret, see Quickstart: Register an application with the Microsoft identity platform.

Associate the Azure AD application to the Partner Center tenant

The Azure AD application you created in the Azure portal needs to be linked to your Partner Center account. The steps are as follows:

  1. Sign in to Partner Center.

  2. In the upper right, select the gear icon and then select Account settings.

  3. In the Account settings menu, select User management.

  4. Select Azure AD applications then + Create Azure AD application.

  5. Select the Azure AD application you created on the Azure portal, then Next.

  6. Select the Manager(Windows) checkbox and then select Add.

    :::image type="content" source="./media/analytics-programmatic-access/azure-ad-roles.png" alt-text="Illustrates the Create Azure AD application page with the check boxes for selecting roles.":::

Generate an Azure AD token

You need to Generate an Azure AD token using the Application (client) ID. This ID helps to uniquely identify your client application in the Microsoft identity platform and the client secret from the previous step. For the steps to generate an Azure AD token, see Service to service calls using client credentials (shared secret or certificate).

Note

The token is valid for one hour.

Next steps