Hi
I have successfully set up a new Linux virtual machine scale set. However, the devs would like a custom script running to update several packages.
When the previous VMSS was set up manually this was added into the custom data property.
#cloud-config
package-update: true
package_upgrade: true
packages:
- xvfb
- libgtk2.0-0
- libgtk-3-0
- libgbm-dev
- libnotify-dev
- libxss1
- libasound2
- libxtst6
- firefox
runcmd: - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo apt install -y ./google-chrome*.deb
I can see there is a variable to use but I have no idea how to put the above in it so it runs.
custom_data = bases64Encode ()
I’ve done some google research but I cannot find anything conclusive nor any good examples.
Any help would be appreciated.
Regards
Paul