VMware Cloud Community
Sunshine_S
Enthusiast
Enthusiast

Conditional Resource Action - VM Powered Off

We are using vRA 8.5. I want to add a Day-2 operation that allows users to mount CD-ROM from an iso file stored on their local machine. The workflows "Mount CD-ROM" and "Connect CD-ROM", both require the VM to be in powered off state. We do have "Requires condition" option but that asks for condition defined in key-value in the form of ${properties.propertyName}.

In advanced editor it has "matchExpression:"

Is there anything I can enter in either of these, that will put the condition of VM power state for this operation?

Labels (4)
Tags (1)
Reply
0 Kudos
1 Reply
Sunshine_S
Enthusiast
Enthusiast

Okay, so I got it:

matchExpression:
- and:
    - key: properties.powerState
      operator: eq
      value: OFF

 

But now I am not able to specify the local iso ...

Reply
0 Kudos