VMware Aria Automation Tools

 View Only
  • 1.  vRA8 ABX Powershell add Module dnsserver

    Posted Jul 07, 2021 07:09 AM

    I currently use vRA7 powerhell on a separate Windows VM to manage Microsoft tasks such as AD-DNS.
    With vRA 8, it is possible to run Powershell as ABX action, and also to import modules via a zip file.

    I am not allowed to use downloadable modules (e.g. from the PSGallery).
    However, dnsserver is a PS Module that can be installed in Windows Server as a Windows Feature, so without internet access.
    So I took the c:\windows\system32\windowspowershell\v1.0\modules\dnsserver folder and added it into the modules folder of a zip that also contains the handler.ps1 file.

    This nearly worked, but I guess the resulting error comes from the module that is not compatible with vRA:

    Action 'test' in module 'com.vmware.library.powershell' failed : Wrapped ch.dunes.scripting.server.polyglot.PolyglotRunnerException: Exception calling "ProcessRecord" with "1" argument(s): "The method or operation is not implemented."

    ERROR Exception calling "ProcessRecord" with "1" argument(s): "The method or operation is not implemented."
    ERROR Exception calling "ProcessRecord" with "1" argument(s): "The method or operation is not implemented."
    ERROR At line:3977 char:7
    ERROR + $__cmdletization_objectModelWrapper.ProcessRecord($__cmdletizat ...
    ERROR + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ERROR + CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
    ERROR + FullyQualifiedErrorId : NotImplementedException

     

    Anyone any idea?



  • 2.  RE: vRA8 ABX Powershell add Module dnsserver

    Posted Jul 07, 2021 01:13 PM

    Hi  ,
    I, too, am new to vRA 8, but so far this is what I have found.

    ABX powershell seems limited to PowerCLI out of the box, so to speak. Though I have read references to importing modules. I use the powercli capability and it works well. For other powershell tasks, I have decided to use a powershell host as I did in 7.6. We are still building out our vRA 8 environment, but in early testing this approach works well.

    Here are some references that I have used:

    https://docs.vmware.com/en/vRealize-Orchestrator/8.4/com.vmware.vrealize.orchestrator-use-plugins.doc/GUID-53131DF4-5D4B-4EA5-BBAD-211A53284FBC.html

    https://docs.vmware.com/en/vRealize-Orchestrator/8.4/com.vmware.vrealize.orchestrator-use-plugins.doc/GUID-1A829CCF-A147-422E-80B3-0819F8D6E6AE.html (Note: For the krb5.conf file, following the format exactly, including case.)

    Hope this helps.

    Cheers!



  • 3.  RE: vRA8 ABX Powershell add Module dnsserver

    Posted Jul 07, 2021 09:44 PM


  • 4.  RE: vRA8 ABX Powershell add Module dnsserver

    Posted Jul 08, 2021 06:31 AM

     it is possible to use imported PS Modules, only this specific module is not working with linux as   just explained.