Customize Machine Properties or Deployments with Extensibility Topics
You can update machine properties or deployments by using the available extensibility topics during the deployment life cycle.
Verify that you have access to the extensibility code samples package.
To update the deployment payload, you can create new subscriptions using available extensibility topics such as
Provisioning Request
and Disk Allocation
that call Automation Orchestrator
workflows or extensibility actions.- To customize machine CPU or memory properties, create a new extensibility subscription.
- Enter a subscription name. For example,Customize CPU/Memory.
- InEvent Topic, selectProvisioning request.
- Next toAction/workflow, set an output of type String calledflavor.You cannot change the machine CPU and memory properties directly if you do not set a new flavor mapping. The output property must be calledflavor, and the value must be an existing flavor mapping profile.The following code snippet is taken from a sample extensibility action.def handler(context, inputs): outputs = { "flavor": "large" } return outputs
- To customize disk allocation, create another extensibility subscription.
- Enter a subscription name. For example, you can name itDisk size.
- InEvent Topic, selectDisk allocation.
- Next toAction/workflow, set an output of type Array calleddiskSizesInGb.The following code snippet is taken from a sampleAutomation Orchestratorworkflow.// Customize the size of the first VM disk var vm_disks = inputProperties.get("diskSizesInGb"); if (isParameterReadOnly("diskSizesInGb") == false) { vm_disks[0]=30; } diskSizesInGb = vm_disks;
- Request a new virtual machine from the VMware Aria Automation Catalog Item.
Once the deployment is ready, navigate to the virtual machine settings. Verify that the CPU, memory, or disk size are set to the values configured in the extensibility action or
Automation Orchestrator
workflow that are used in the subscriptions you created.