GitHub action to update the artifact of a plan within the Azure partner center offer.
MIT License
This action update the artifact of a plan within the Azure partner center offer.
It supports both Application offer and Azure Virtual Machine offer.
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):
Here are the steps to get those credentials:
Complete prerequisites for using the Partner Center submission API.
Quickstart: Register an application with the Microsoft identity platform
Associate an existing Azure AD tenant with your Partner Center account.
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.
uses: microsoft/[email protected]
with:
offerId: offerId
planId: planId
offerType: 'application_offer'
filePath: filePath
artifactVersion: artifactVersion
clientId: clientId
secretValue: secretValue
tenantId: tenantId
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