New Question
0

vrealize blue print fails to execute cloud-base-init powershell part

asked 2021-11-24 16:05:00 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

My Vmware Vrealize blue print works perfect on my windows 2019 build templates exept for when I tried to do the cloud-base init section for powershell to configure new VMs after the customization spec instead of a ps1 scritp ran on the machine. I'm wondering if its something I have done incorrectly in the code? or if its an issue with the cloud base init installation on my base template. I start the section

cloudConfig: | #ps1_sysnative Start-Transcript -path "C:\temp\cloudbase-init-firstboot.log" -Append -force Import-Module Activedirectory

I can provide logs if needed

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2021-11-28 14:58:08 +0200

I think your code is wrong. please try this in your userdata:

#ps1_sysnative

Start-Transcript -path "C:\temp\cloudbase-init-firstboot.log" -Append -force Import-Module Activedirectory

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2021-11-24 16:05:00 +0200

Seen: 196 times

Last updated: Nov 28 '21