I am attempting to deploy VMs through VMware's vRealize Automation tool using CM. The process creates a CM computer object then creates a direct rule on a CM collection for the new computer object. During the creation of the computer object vRA creates computer variables provided by me on the computer object. I see the computer object built and i see the custom variables on the computer object:
- NameValue
- dns110.10.10.10
- dns210.10.10.11
- gateway10.10.10.1
- ipAddress10.10.10.2
- netMask255.255.255.0
In the task sequence the last step is to "Run Command Line":
cmd /c netsh int ip set address name="Ethernet0" static %ipAddress% %netMask% %gateway% & cmd /c netsh int ip set dns name="Ethernet0" static %dns1% & cmd /c netsh int ip set dns name="Ethernet0" static %dns2% index=2
When the TS gets to that step it doesn't substitute the variables in the command with the computer variables listed above. Looking at the smsts logs after the deployment is complete I see lines stating:
- Set Command Line:...
- Start executing command line:...
- Executing command line:...
- ProgramName = ...
All of those lines show the command exactly as it is above with the %variables% intact.
The command immediately fails with the error:
Invalid address parameter (%ipAddress%). It should be a valid IPv4 address.
Does anyone have a suggestion on why the TS isn't using the variables? I found this article https://technet.microsoft.com/en-us/library/bb693541.aspx but its for 2007 not 2012. I wasn't able to find something comparable for 2012.