microsoft / commercial-marketplace-offer-deploy

Deployment Manager for the Azure Marketplace
Other
21 stars 13 forks source link

bug: Bicep Sample Failing on deployment #654

Closed bobjac closed 6 months ago

bobjac commented 6 months ago

When executing the deployment of the Bicep sample, the following error is being thrown in the backend:

Started by user admin Running as SYSTEM Building in workspace /var/jenkins_home/workspace/arm [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [arm] $ /bin/sh -xe /tmp/jenkins12862157464284293671.sh

bobjac commented 6 months ago

Initial investigation of the bug showed that "artifactsLocationSasToken" is being written to a variables file in both the Terraform implementation and the Bicep implementation. In both implemtations, the main template does not have a variable with that name declared.

Terraform will successfully deploy the solution with just a warning. ARM will throw the error above.

Possible solutions:

  1. Strip the artifactsLocationSasToken from the variable file. This will require a new VM Offer Build / Publish
  2. Add a default artifactsLocationSasToken parameter to the generated template from the Python SDK. Set a default value to an empty string. This will require a new published CLI version.