I'm trying to use a single blueprint that will either:
A. provision a vm with static user-defined network information, including hostname, or
B. provision a vm with DHCP using the business group default name prefix.
I have all the necessary properties for a user to input for static information, and a dropdown list to choose static or DHCP, which will determine which clonespec is used (static or dhcp). The problem is that if Hostname is present as a property, which is required for static, it won't use the automatic naming mechanism required for DHCP, even if Hostname is null.
Is there a way to conditionally add or remove properties from a blueprint? Or, is there some other way to get this to work?
The SovLabs Property Toolkit can do exactly that by using dynamic property sets. So you could define a property in your blueprint that evaluates other properties depending on what gets passed, and the logic you specify could then set other properties in the background.