Hi Ujjval,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
The error message shows you've encountered an error when trying to access the subscription with the ID "9896b81a-ef21-45ad-8577-f6adde85abea". The error message indicates that the subscription was not found.
Re-authenticate with Azure: Run the Connect-AzAccount
cmdlet again to ensure you are authenticated correctly.
Verify the subscription ID: Double-check the subscription ID and make sure it matches the one you retrieved earlier.
Check subscription existence: Verify that the subscription exists and is active in your Azure account.
Despite the error message, it looks like myVM was successfully created in mynewresourcegroup which I could see from the error logs. Can you please check in which subscription this vm is created.
The below document provides you with detailed steps to deploy an azure virtual machine using powershell.
Create a Windows virtual machine in Azure with PowerShell
If you feel that your quires have been resolved, please accept the answer by clicking the "Upvote" and "Accept Answer" on the post.