az vm create command line not working

Michael Alpert 25 Reputation points
2023-06-09T21:13:39.4466667+00:00

When try to run the az vm create command line the system gives a 'command not found'. Please review and let me know if I missed a step. Thank you

User's image

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

2 answers

Sort by: Most helpful
  1. Patchfox 3,801 Reputation points
    2023-06-09T21:36:57.2466667+00:00

    Hi Michael Alpert I want to help you with this question.

    That looks like you have some characters in front of the command. Because of that, the system can't recognize the command. Please remove the brackets and circumflex (^). The "az vm create..." must be placed directly at the $ sign.


    If the problem is solved for you and all questions are answered, I would be happy if you mark the answer as accepted to close the thread.

    1 person found this answer helpful.
    0 comments No comments

  2. kobulloc-MSFT 25,406 Reputation points Microsoft Employee
    2023-06-10T00:53:58.4833333+00:00

    Hello, @Michael Alpert ! @Patchfox is correct and I'd like to explain in a bit more detail why you are seeing ^[[200~ when you paste text.

    Why am I getting a command not found error with ^[[200~ characters?

    The addition of the ^[[200~ characters prior to the first command is what is causing this error, and that in turn is caused by bracketed paste mode. I tend to use right click to paste as a quick workaround but there are several good write ups on how to address this:

    An example of bracketed paste mode:

    User's image


    I hope 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. If you are still running into issues, let us know in the comments. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments