Badgerati / Fogg

PowerShell tool to aide and simplify the creation, deployment and provisioning of infrastructure in Azure
MIT License
7 stars 2 forks source link

When passing arguments to a custom script, the validator fails to realise a provisioner key exists #58

Closed Badgerati closed 7 years ago

Badgerati commented 7 years ago

Say you have a custom script that accepts arguments; and you pass these arguments in on the provisioner list for a VM.

So you define the provisioner as:

"provisioners": {
    "example": "custom: .\\script.ps1"
}

and then you call the provisioner with:

"templates": [
    {
        "provisioner": [
            "example: argument1 | argument2"
        ]
    }
]

Then the check on the VM template to see if "example" exists will fail - probably because it's trying to find "example: arg..." rather than just "example".