Search code examples
azureazure-resource-managerazure-marketplace

Add a PowerShell script to Azure Marketplace Offer


I would like to publish an Azure Managed Application to the Azure Marketplace. Is it possible to add to the "app.zip" an own PowerShell Script, which executes some additional deployment steps besides the Azure Resource Manager Template?

The Script would invoke the arm template and handle some outputs of the Template


Solution

  • After some research and contacting the MS Support I found two possible solutions:

    1. Using a VM with a Custom Script Extension. Downside: VM needs long to startup and is expensive if we do not delete it afterwards.

    2. Using a Azure Container Instance to run the script. Starts up in about 45 seconds and doesn't cost anything if we don't use it. -> Tutorial