Fix Cloud-Init Script for Azure VMSS Deployment

Job ID: 40552962

Budget: ₹600 – ₹1,500 INR

I am working on an Azure VM Scale Set (VMSS) exercise and need assistance fixing a Cloud-Init configuration that is failing during deployment.



I need someone experienced with Azure VMSS and Cloud-Init to identify and fix the issue in the provided "cloud-init.txt" file so that the VMSS deploys successfully and hosts the sample "Hello World" web application.

Exercise Overview

- Create an Azure Resource Group
- Deploy an Ubuntu VM Scale Set
- Use the provided "cloud-init.txt" as custom data
- Configure Azure Load Balancer
- Verify the application is accessible over HTTP (port 80)

Current Error

The VMSS deployment fails because the Cloud-Init script reports the following error:

errors:
- ('write_files', OSError('Unknown user or group: "getpwnam(): name not found: \'azureuser\'"'))

It appears the script is attempting to write files with ownership assigned to "azureuser" before that user exists or before Cloud-Init has created it.

What I Need

- Analyze the provided "cloud-init.txt"
- Fix the Cloud-Init configuration so it works with Azure VM Scale Sets
- Explain the root cause of the issue
- Ensure the VMSS deploys successfully and the web application is accessible through the Azure Load Balancer


Please bid only if you have prior experience with Azure VMSS, Cloud-Init, and Linux provisioning.