VMware Cloud Community
adminhvk
Contributor
Contributor

Facing issue while installing openjdk in windows from yaml in vRA 8

I am facing issue while installing openjdk in windows server 2022 and 2019 both from yaml in vRA 8 during the VM creation. Below command are working fine when I try them on a windows VM in powershell but not working when I put it in yaml code.

 

#ps1_sysnative
Invoke-WebRequest -Uri https://aka.ms/download-jdk/microsoft-jdk-17.0.3-windows-x64.msi -OutFile C:\Temp\jdk17.msi
Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\jdk17.msi", 'ADDLOCAL="FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome"', 'INSTALLDIR="C:\Program Files\Microsoft\"', /quiet , /norestart -Verb RunAs

Reply
0 Kudos
6 Replies
Ankush11s
VMware Employee
VMware Employee

Can you share your Blueprint Yaml and also provide details what kind of error you are getting 

Reply
0 Kudos
adminhvk
Contributor
Contributor

Thanks for the reply.

Please find the attached yaml code.

For the error, it is even not downloading the openjdk file in temp.

 

Reply
0 Kudos
Chloe5287
Contributor
Contributor


@adminhvk wrote:

I am facing issue while installing openjdk in windows server 2022 and 2019 both from yaml in vRA 8 during the VM creation. Below command are working fine when I try them on a windows VM in powershell but not working when I put it in yaml code.

 

#ps1_sysnative
Invoke-WebRequest -Uri https://aka.ms/download-jdk/microsoft-jdk-17.0.3-windows-x64.msi peryourhealth-OutFile C:\Temp\jdk17.msi
Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\jdk17.msi", 'ADDLOCAL="FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome"', 'INSTALLDIR="C:\Program Files\Microsoft\"', /quiet , /norestart -Verb RunAs


Also encountering this issue. Any update on a solution?

Reply
0 Kudos
Ankush11s
VMware Employee
VMware Employee

Have you tried doing basic created folder using Cloudbase to test if CloudBase init configuration is working 

Reply
0 Kudos
adminhvk
Contributor
Contributor

can you please share some syntax for the reference.

Reply
0 Kudos