how to install nginx

Muhammad Umair Khan 20 Reputation points
2024-07-17T23:29:53.1966667+00:00

using sandbox for Azure Fundamentals training, created vm and trying to install Nginx, using this command

getting this error:

(ArtifactNotFound) The VM extension with publisher 'Micrsoft.Azure.Extensions' and type 'customscript' could not be found. Code: ArtifactNotFound Message: The VM extension with publisher 'Micrsoft.Azure.Extensions' and type 'customscript' could not be found

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,701 questions
{count} votes

Accepted answer
  1. pnaroju 3,125 Reputation points Microsoft Vendor
    2024-07-18T06:39:07.1266667+00:00

    Hi Muhammad Umair Khan,

    Thank you for reaching out to us through the Microsoft Q&A platform.

    Based on your inquiry, it appears that you are encountering an error while attempting to install Nginx on an Azure virtual machine designated for Azure Fundamentals training. The error message suggests a problem with the "Custom Script" extension required to execute the installation script.

    Please ensure that there are no typographical errors in the publisher parameter within the 'az vm extension set' command. It should be Microsoft.Azure.Extensions, not Micrsoft.Azure.Extensions.

    To ensure accuracy and prevent errors, you can copy the command directly from the learning path by selecting the "Copy" option and then paste it into Cloud Shell using the right-click paste method.

    We recommend activating a new sandbox environment to confirm that the issue is not specific to your current setup. Create a new VM within the new sandbox and attempt to install Nginx using the Custom Script extension, following the instructions provided in the documentation.

    Please refer to the screenshot below depicting the correct publisher parameter and the successful execution of the 'az vm extension set' command following VM creation: imagenginx

    If you are still encountering difficulties, please inform us in the comments section. We are here to assist you.

    If you find this information helpful, please acknowledge by clicking the "Upvote" and "Accept Answer" buttons on the post.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.