microsoft-partner-center-github-action

GitHub action to update the artifact of a plan within the Azure partner center offer.

MIT License

Stars
19

Azure Partner center GitHub action

This action update the artifact of a plan within the Azure partner center offer.

It supports both Application offer and Azure Virtual Machine offer.

Prerequisites

To have the action works, you will need to setup three repository secrets for your pipeline(you can also pass them as parameters but it is not recommended):

  • CLIENT_ID: Client ID for an Azure AD application.
  • SECRET_VALUE: Secret value of the application.
  • TENANT_ID: Tenant ID you'd like to run pipeline against.

Here are the steps to get those credentials:

  1. Complete prerequisites for using the Partner Center submission API.

  2. Quickstart: Register an application with the Microsoft identity platform

  3. Associate an existing Azure AD tenant with your Partner Center account.

Inputs

clientId

Required Client ID for an Azure AD application.

secretValue

Required Secret value of the application.

tenantId

Required Tenant ID you'd like to run pipeline against.

offerId

Required The id of the offer.

planId

Required The id of the plan.

offerType

Required The type of the offer, supported values are application_offer and vm_image_offer.

filePath

Required for Application Offer The path to the artifact(ZIP file).

artifactVersion

Required for Application Offer The new version of the artifact.

imageVersionNumber

Required for Azure Virtual Machine Offer The new version of the image.

imageType

Required for Azure Virtual Machine Offer The type of the image, supported value examples are x64Gen1, x64Gen2 etc.

osDiskSasUrl

Required for Azure Virtual Machine Offer The OS Disk SAS URL.

dataDiskSasUrl

Required for Azure Virtual Machine Offer The Data Disk SAS URL.

operatingSystemFamily

Required for Azure Virtual Machine Offer The OS family like linux.

operatingSystemType

Required for Azure Virtual Machine Offer The OS type like redHat.

verbose

**If and only if true, output additional debugging information.

Outputs

Example usage

For Application Offer

uses: microsoft/[email protected]
with:
  offerId: offerId
  planId: planId
  offerType: 'application_offer'
  filePath: filePath
  artifactVersion: artifactVersion
  clientId: clientId
  secretValue: secretValue
  tenantId: tenantId

For Virtual Machine Offer

uses: microsoft/[email protected]
with:
  offerId: offerId
  planId: planId
  offerType: 'vm_image_offer'
  imageVersionNumber: imageVersionNumber
  osDiskSasUrl: osDiskSasUrl
  dataDiskSasUrl: dataDiskSasUrl
  imageType: imageType
  operatingSystemFamily: operatingSystemFamily
  operatingSystemType: operatingSystemType
  clientId: clientId
  secretValue: secretValue
  tenantId: tenantId
Package Rankings
Top 10.59% on Github actions