Error message on Sandbox CLI when attempting to create VM: Exercise - Create and manage network security groups

Mills, Derek 20 Reputation points
2025-01-29T14:12:30.28+00:00

While executing step 1 of section "Create VMs running Ubuntu", the exercise "Exercise - Create and manage network security groups", of Module "Secure and isolate access to Azure resources by using network security groups and service endpoints" I received the following message after pasting in the script.

unrecognized arguments: network vnet create --address-prefixes 10.0.0.0/16 --subnet-name Applications --subnet-prefixes 10.0.0.0/24

I got the similar error when trying to execute step 2 for different VM:

unrecognized arguments: network vnet create --address-prefixes 10.0.0.0/16 --subnet-name Applications --subnet-prefixes 10.0.0.0/24

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.
2,057 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rakesh Gurram 12,120 Reputation points Microsoft Vendor
    2025-01-29T16:31:20.7333333+00:00

    Hi Mills, Derek,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    Where am I seeing this?

    Unit 3: Exercise - Create and manage network security groups

    After activating the sandbox, please ensure that you are in the Bash environment. When executing the AppServer VM script, you will be required to create a password that must be at least 12 characters long and include a combination of letters, numbers, and special characters. In the next step, when executing the DataServer VM script, you will need to create a separate password, ensuring that it is different from the one used for the AppServer.

    Additionally, we have tried from our end and successfully completed the exercise, as illustrated in the screenshots provided below:

    User's image

    User's image

    If the issue still persists, please do let us know.

    I hope this information is helpful, please Accept Answer & Upvote so that it would be helpful to community members.

    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.