Skip to content

Microsoft Store Credentials

Spaccesi edited this page Mar 4, 2026 · 1 revision

Remember, documentation is king. For the full official reference, see Create and manage submissions using Microsoft Store services — Microsoft Learn.

This guide walks you through setting up Microsoft Partner Center API access for automated Windows app publishing, and storing the credentials as GitHub repository secrets.


Prerequisites

Important: The first submission for your app must be completed manually through Partner Center, including answering the age ratings questionnaire. Only after this initial manual submission will you be able to create and manage subsequent submissions programmatically via the API.


Step 1 — Note Your Seller ID and Tenant ID

  1. Go to Microsoft Partner Center
  2. Navigate to Account Settings > Organization profile > Identifiers
  3. Note your:
    • Seller ID — your Partner Center seller identifier
    • Tenant ID — your Azure AD tenant ID

Step 2 — Register an Azure AD Application

  1. Go to the Azure Portal
  2. Navigate to Azure Active Directory > App registrations
  3. Click New registration
  4. Fill in:
    • Name — e.g., Store CI/CD Publisher
    • Supported account types — select Single tenant
  5. Click Register
  6. Note the Application (client) ID from the overview page

Step 3 — Create a Client Secret

  1. In your app registration, go to Certificates & secrets
  2. Click New client secret
  3. Enter a description (e.g., CI/CD secret) and choose an expiration period
  4. Click Add
  5. Copy the secret value immediately — it will not be shown again

Step 4 — Associate the Azure AD App with Partner Center

  1. Go back to Microsoft Partner Center
  2. Navigate to Account Settings > User management > Azure AD applications
  3. Click Add Azure AD application
  4. Find and select the app registration you created in Step 2
  5. Grant it the Developer role (minimum required for publishing)
  6. Click Save

Step 5 — Note Your App ID

  1. In Partner Center, go to Apps and games
  2. Select your app
  3. Note the Store ID or App ID from the app identity page

Step 6 — Store Secrets in GitHub

Go to Your repository > Settings > Secrets and variables > Actions and create the following secrets:

Secret name Value
MICROSOFT_PARTNER_CENTER_TENANT_ID Azure AD Tenant ID from Step 1
MICROSOFT_PARTNER_CENTER_SELLER_ID Partner Center Seller ID from Step 1
MICROSOFT_PARTNER_CENTER_CLIENT_ID Azure AD App Client ID from Step 2
MICROSOFT_PARTNER_CENTER_CLIENT_SECRET Client secret value from Step 3
MICROSOFT_STORE_APP_ID App ID from Step 5

Step 7 — Use the Secrets in Your Workflow

- name: Publish to Microsoft Store
  uses: Spaccesi/flutter-actions-suite/publish/microsoft-store@main
  with:
    microsoft-partner-center-tenant-id: ${{ secrets.MICROSOFT_PARTNER_CENTER_TENANT_ID }}
    microsoft-partner-center-seller-id: ${{ secrets.MICROSOFT_PARTNER_CENTER_SELLER_ID }}
    microsoft-partner-center-client-id: ${{ secrets.MICROSOFT_PARTNER_CENTER_CLIENT_ID }}
    microsoft-partner-center-client-secret: ${{ secrets.MICROSOFT_PARTNER_CENTER_CLIENT_SECRET }}
    microsoft-store-app-id: ${{ secrets.MICROSOFT_STORE_APP_ID }}

Summary

Step Action
1 Note your Seller ID and Tenant ID from Partner Center
2 Register an Azure AD application
3 Create a client secret for the Azure AD app
4 Associate the Azure AD app with Partner Center
5 Note your Microsoft Store App ID
6 Store all five values as GitHub secrets
7 Reference the secrets in your workflow