Issue with Custom extension script on Virtual Machine Scale Set

Srivatsasa Janaswamy 1 Reputation point
2022-08-14T12:33:48.513+00:00

HI,

I am a new bee to Azure Platform. I have created a Virtual Machine Scale Set from an Image A which is created out of a Virtual Machine 'test'.

While creating Virtual Machine 'test', I have added a small script to Custom Extension Script tab for installing Nginx server on virtual machine and yes as i mentioned above image A is created from this VM.

So logically, I should be able to access the Nginx server from instances under Virtual Machine Scale Set. But its throwing the error "Site cannot be reached". Port 80 is opened while image was created out of VM 'test' too. But still facing the issue.

When an another VM is created out of image A and tried to access Nginx from that VM, i could be able to do it. But why not from Virtual Machine Scale Set.

Please help

Thanks & Regards
SJ

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
352 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. msrini-MSFT 9,261 Reputation points Microsoft Employee
    2022-08-14T15:48:35.267+00:00

    Hi,

    You can try couple of things here.

    Can you log into any VMSS instance and check if the nginx is installed? If yes, can you try to access it locally ?

    If you are able to open the site locally, then this there are no issue with the custom script.

    Then you will need to check on the NSG to see if port 80 is opened to the IP from where you are trying to access.

    If you the nginx is not installed correctly, and if that is an issue with the custom script, we need more logs to troubleshoot that.

    Regards,
    Karthik Srinivas