Enable unsigned script execution:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserIn case it isn't already configured, point PS to the right repository (might throw an error):
Register-PSRepository -Default| #cloud-config | |
| users: | |
| - name: {{username}} | |
| ssh_authorized_keys: | |
| - "ssh-rsa..." | |
| sudo: ALL=(ALL:ALL) ALL | |
| groups: sudo | |
| shell: /bin/bash | |
| # Force password change on first sudo usage |