I tried to create a blueprint with 2 NIC and I want my client can choose the subnet for NIC.
Can you please help me check any problems with my code?
Network1:
- 10.72.119.x/24
Network2:
- 10.72.107.x/24
resources:
Cloud_vSphere_Machine_1:
type: Cloud.vSphere.Machine
properties:
name: '${input.TenVM}'
image: '${input.OS}'
cpuCount: '${input.CPU}'
totalMemoryMB: '${input.RAM}'
networks:
- name: '${resource.Cloud_vSphere_Network_1.name}'
assignment: static
deviceIndex: 0
network: '${resource.Cloud_vSphere_Network_1.id}'
- name: '${resource.Cloud_vSphere_Network_2.name}'
assignment: static
deviceIndex: 1
network: '${resource.Cloud_vSphere_Network_2.id}'
Cloud_vSphere_Network_1:
type: Cloud.vSphere.Network
properties:
name: '${input.Network1}'
# constraints:
# - tag: '${input.Network1}'
Cloud_vSphere_Network_2:
type: Cloud.vSphere.Network
properties:
name: '${input.Network2}'
constraints:
- tag: '${input.Network2}'
Thanks