Customers may encounter difficulties writing text files to the C drive on newly deployed Windows machines.
VMware Aria Automation 8.x
The inability to write files to the C drive on a newly provisioned Windows machine can be caused by various factors, including:
This solution uses Cloudbase-Init commands within Automation Assembler to ensure the desired file is written to the C drive during the deployment process.
Procedure:
resources:
Cloud_Machine_1:
type: Cloud.Machine
properties:
image: cloudbase-init-win-2016
flavor: small
remoteAccess:
authentication: usernamePassword
username: Administrator
password: Password1234@$
cloudConfig: |
#cloud-config
write_files:
- path: C:\hello.txt
content: |
Hello
- permissions: '0644'