Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

parameters and powershell provisioner #43

Open
Stijnc opened this issue May 19, 2020 · 2 comments
Open

parameters and powershell provisioner #43

Stijnc opened this issue May 19, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Stijnc
Copy link

Stijnc commented May 19, 2020

Hi,
was wondering if the Azure image builder PowerShell provisioner provides the means to inject 'parameters' to further use in the scripts.

In packer one can use environment vars to inject values before script execution.

I did not find any example in the repo or in the docs online.

The following ARM template provides a workaround, but this isn't suitable when using a script ref?

could you provide any guidance?

Thanks,
Stijn

@cbroglia
Copy link

Up, I'm interested to this too, because I'm trying to figure out how to pass the storage account key to a Powershell script, so that it can mount the Azure Files share and install in the VM things inside the Azure Files share.

@danielsollondon danielsollondon added the enhancement New feature or request label Jun 15, 2020
@danielsollondon
Copy link
Owner

Hi @Stijnc, @cbroglia - Sorry for the delay in getting to this. As you mentioned, there is currently not a way in the template to specify env vars, but this is a popular ask, as is on our backlog. The only thing I can suggest is to dynamically create/update a script file with these env vars as part of the build pipeline, and then get AIB to download the script on each execution. I will leave this open, and in August we will review the backlog.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants