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):
- 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:
-
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.
Required Client ID for an Azure AD application.
Required Secret value of the application.
Required Tenant ID you'd like to run pipeline against.
Required The id of the offer.
Required The id of the plan.
Required The type of the offer, supported values are application_offer
and vm_image_offer
.
Required for Application Offer The path to the artifact(ZIP file).
Required for Application Offer The new version of the artifact.
Required for Azure Virtual Machine Offer The new version of the image.
Required for Azure Virtual Machine Offer The type of the image, supported value examples are x64Gen1
, x64Gen2
etc.
Required for Azure Virtual Machine Offer The OS Disk SAS URL.
Required for Azure Virtual Machine Offer The Data Disk SAS URL.
Required for Azure Virtual Machine Offer The OS family like linux
.
Required for Azure Virtual Machine Offer The OS type like redHat
.
**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