No www directory created after running az vm extension set.......

Dr. Dheeraj Rane 0 Reputation points
2023-05-03T08:22:08.0633333+00:00

In 'Describe Azure compute and networking services' Unit 3 exercise 'Create a Virtual Machine' after following the instructions to create virtual machine, and later installing and configuring Nginx server, the server is not even installed. I tried looking at the www directory if created but there is no such directory. I have tried this 3-4 times but the same result.

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,190 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 25,401 Reputation points Microsoft Employee
    2023-05-03T15:01:54.0666667+00:00

    Hello, @Dr. Dheeraj Rane !

    Deleting the VM and recreating it usually resolves rare issues with external dependencies and completing unit 9 Exercise - Configure network access may be required for actions outside of the instructions that require network access.

    Where am I seeing this?

    Why am I unable to see the VM after creating it?

    This unit has some external dependencies which can fail on rare occasion. Deleting the virtual machine and trying again (or waiting for a new sandbox) usually resolves the problem. The command to do that is this az vm delete:

    az vm delete \
        --resource-group myResourceGroup \
        --name myVM \
        --force-deletion none
    

    In practice, that looks more like this (you'll need to use your own resource group):

    az vm delete \
        --resource-group learn-12abcdef-gh34-5i67-a1b2-3456789cd012 \
        --name my-vm \
        --force-deletion none
    

    If successful, you should see something like this:

    User's image

    Note that network access to this VM is configured in unit 9 Exercise - Configure network access. If you are still running into issues, let us know in the comments.

    If this has been helpful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments