Unable to allocate an IP address. Continuously receiving a .169 after customization. I found a related article about including 'assignment: static' but no luck.
Using below code
formatVersion: 1
inputs:
os-image:
type: string
oneOf:
- title: Windows Server 2016
const: Windows Server 2016
- title: Windows Server 2019
const: Windows Server 2019
title: Select Operating System
description: Specify which OS to be deployed on the machine.
hardware-config:
type: string
oneOf:
- title: Small
const: Small
- title: Medium
const: Medium
- title: Large
const: Large
title: Machine Size
description: Specify size of the VM.
resources:
VM1:
type: Cloud.vSphere.Machine
properties:
image: '${input.os-image}'
customizationSpec: 1_vRA CS 2016
flavor: '${input.hardware-config}'
networks:
- network: '${resource.DC-01-NP.id}'
assignment: static
DC-01-NP:
type: Cloud.vSphere.Network
properties:
networkType: existing
Have you setup an IP range in your network profile?
Yes, I have a network profile created. I already added a network, and when selecting "Manage IP Ranges" I defined a start IP address and a end IP address.
I also confirmed the IP range defined do not have a VM assigned to it, as I know this can also impact deployment. Not sure what I set incorrectly, this seemed simpler in 7.x
VMware tools installed on the template?
Alright I ended up creating the networks from scratch and starting over again. It may not have liked that I changed the default naming of the "Cloud_vSphere_Network_1" so I deleted what I had and reverted back to basic. I will stick with the out of the box for the future unless there is a use case for that..
I just ran 2 tests with success... so I was able to figure it out, but thank you for trying to help.
I will post what I ended up going with below, I also included an additional line for adding storage. The storage line works great.
resources:
Cloud_vSphere_Network_1:
type: Cloud.vSphere.Network
properties:
networkType: existing
VM-001:
type: Cloud.vSphere.Machine
properties:
image: '${input.os-image}'
customizationSpec: Custom 2016
flavor: '${input.hardware-config}'
networks:
- network: '${resource.Cloud_vSphere_Network_1.id}'
assignment: static
attachedDisks:
- source: '${resource.Cloud_vSphere_Disk_1.id}'
Cloud_vSphere_Disk_1:
type: Cloud.vSphere.Disk
properties:
capacityGb: 10
provisioningType: eagerZeroedThick