Thank you for reaching out to us on Microsoft Q&A forum.
We have successfully executed the "az vm create" command in our environment and verified it's working. Below is the screenshot as reference:
Could you please attempt to execute the "az vm create" command in your bash environment and confirm whether you encounter any errors? If errors occur, please provide a screenshot of the error message for reference.
Additionally, could you please confirm the type of email account (personal, work, or school) you are using to log into your Microsoft Learn account?
If the information is helpful, please accept the answer by clicking the "Upvote and Accept Answer" on the post.