Hello everyone,
I am trying to create a vCO workflow so that end users can create DNS host and pointer records for Linux VMs created via VCAC.For Windows server VMs this happens automatically when they join domain but for Linux VMs it is still a manual process.
Is there any Powershell script that we can use to develop a vCO workflow for this? The expectation will be that when the workflow is initiated it asks for "hostname" and IP address" inputs from user. This workflow can be published in VCAC and tied to approval policy so that the respective admins can review before execution.
Any help/ guidance/ URL will be greatly appreciated.
Thanks,
Ankit Mehrotra
Please have a look at the script I have provided here : Script manager batch script samples (Local administrator and managing DNS records)
This is batch based. The script manager package available separately in the document tab allows you to use existing batch / powershell scripts and package these as workflows.
Thanks for the suggestion. However, I tried executing the "Add record to DNS workflow" for a test LINUX server but got error "batch script type is not valid for OS linuxGuest".
These Windows based DNS Guest operations workflows are intended to be run in a Windows Guest that has the RSAT (Remote Server Administration Tools) installed, NOT the deployed Windows/Linux guests... It sounds like you are trying to run this in your deployed guest instead of a Windows Utility server that has the tools installed.
For example:
Submit Request via vCAC -> vCO uses guest operations in a Windows Server that has RSAT Tools to create necessary DNS entry -> New Windows OR Linux VM gets deployed, DNS is already prepped
Hi ,
I am trying to create a vCO workflow so that end users can create host and pointer records in a Windows DNS server (AD integrated) for Linux VMs created via VCAC.For Windows server VMs this happens automatically when they join domain but for Linux VMs it is still a manual process.
So, the expectation is to have a workflow published in vCAC which when executed by an end user, asks for "Hostname" and IP Address" of the LINUX server VM (provisioned and online by vCAC or by manual cloning in vCenter) and based on approval policy should create Host and Pointer record for that Linux Servers in the Windows DNS server. Basically, the end user interacts with the DNS server to create DNS records without being given direct access to the server.
Is there any Powershell script that we can use to develop a vCO workflow for this?
Thanks,
Ankit Mehrotra
Yes, I understand the use case and desired result. This is achievable using the information in my last post and the Guest Scripts that Christophe noted.
Here's a rough idea of what you need to do: (I don't have time to provide a full step-by-step tutorial)
End result: