Create a Linux virtual machine and install Nginx

Christian Eberechi Daniel 6 Reputation points
2022-12-22T21:52:15.193+00:00

273456-vm-error-message.png

how do i resolve this error message. having difficulty creating my vm

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
0 comments No comments
{count} vote

9 answers

Sort by: Most helpful
  1. dkrishnaveni-MSFT 1,961 Reputation points Microsoft Employee
    2022-12-26T16:06:42.47+00:00

    Hi,

    I just tried to perform the module 3 in my sandbox.

    You will just need to copy the entire command from the left pane and paste it on the right side.

    It automatically picks up the RG name for you.

    273990-image.png

    Click on the copy on right corner and paste it on the CLI.

    274101-image.png

    Regards,
    Divya

    1 person found this answer helpful.

  2. TP 124.7K Reputation points Volunteer Moderator
    2022-12-22T22:03:40.867+00:00

    Hi,

    Please complete below training module. In unit 3 it has the commands to create a linux VM and then install Nginx. You can use the Copy button and then paste the commands into the Cloud Sandbox for your subscription. You will need to modify the command to use your resource group name and desired location (create resource group first if needed).

    Describe Azure compute and networking services

    https://learn.microsoft.com/en-us/training/modules/describe-azure-compute-networking-services/

    Unit 3 Exercise - Create Linux VM and install Nginx

    https://learn.microsoft.com/en-us/training/modules/describe-azure-compute-networking-services/3-exercise-create-azure-virtual-machine

    Thanks.

    -TP

    0 comments No comments

  3. Christian Eberechi Daniel 6 Reputation points
    2022-12-22T22:38:50.507+00:00

    Thanks for your prompt response.
    I have tried copying and pasting, the same message appeared. Please how do I create a resource group in this unit 3?


  4. Christian Eberechi Daniel 6 Reputation points
    2022-12-23T00:27:19.05+00:00

    this is the error message i got when i used the command.
    chrisdan4real [ ~ ]$ az group create -l westus -n MyResourceGroup
    (AuthorizationFailed) The client 'live.com#chrisdan4real@harsh.com .com' with object id 'ebc5ab89-5281-440f-9556-af2711b7de1a' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/d18b68c3-88d1-45b3-b555-5111c7b66031/resourcegroups/MyResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.
    Code: AuthorizationFailed
    Message: The client 'live.com#chrisdan4real@harsh.com .com' with object id 'ebc5ab89-5281-440f-9556-af2711b7de1a' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/d18b68c3-88d1-45b3-b555-5111c7b66031/resourcegroups/MyResourceGroup' or the scope is invalid. If access was recently granted, please refresh your credentials.

    0 comments No comments

  5. Christian Eberechi Daniel 6 Reputation points
    2022-12-23T00:29:51.563+00:00

    this is a regular error message when i use different command.

    az group create --location westus --name My REsourceGroup
    unrecognized arguments: REsourceGroup

    Examples from AI knowledge base:
    az group create --location westus --resource-group MyResourceGroup
    Create a new resource group in the West US region.

    az group create --location westeurope --resource-group MyResourceGroup --tags {tags}
    Create a new resource group. (autogenerated)

    az account list-locations
    List supported regions for the current subscription. (autogenerated)

    https://learn.microsoft.com/en-US/cli/azure/group#az_group_create
    Read more about the command in reference docs

    0 comments No comments

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.