- In Assembler event subscriptions, how can the action access the event parameters?
- For subscriptions to compute.provision. and deployment. events, can the action view (or change) the input parameters?
In Assembler, I created two Subscriptions. The first is subscribed to compute.provision.pre and the second to deployment.request.post.
We have a template that deploys a VM. Here's the YAML for the template:
formatVersion: 1
inputs:
dataCenter:
type: string
title: Data Center
description: Data Center in which to deploy the VM.
default: d1
enum:
- c1
- d1
vmSize:
type: string
description: CPU and RAM requirement
default: 2CPU/8RAM
enum:
- 2CPU/8RAM
- 4CPU/16RAM
- 8CPU/32RAM
resources:
Windows Server:
type: Cloud.vSphere.Machine
properties:
image: ${input.dataCenter}-server
flavor: ${input.vmSize}
name: ${input.dataCenter}-newhostname
constraints:
- tag: ${input.dataCenter}
When we deploy from this template, the actions in the subscriptions fire correctly. However, we want the actions to view and modify both the event parameters as well as the doployment input.
If we use PowerShell to code the action, what's the variable name for those parameters?
-------------------------------------------