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
Can you share your Blueprint Yaml and also provide details what kind of error you are getting
@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?
Have you tried doing basic created folder using Cloudbase to test if CloudBase init configuration is working
can you please share some syntax for the reference.
Here is the CloudBase documentation
https://cloudbase-init.readthedocs.io/en/latest/userdata.html#cloud-config
Here is the vRA BP sample
https://blogs.vmware.com/management/2019/11/cloudbase-init-windows-initialization.html
