Automation

 View Only
  • 1.  Conditional Resource Action - VM Powered Off

    Posted May 22, 2022 04:34 PM

    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?



  • 2.  RE: Conditional Resource Action - VM Powered Off

    Posted May 22, 2022 04:46 PM

    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 ...