Hei @Apurva Pathak , Thank for contacting Microsoft Q&A. This seems like a context issue and as suggested by @Julian Sperling above, you may want to check context and set correct context before executing the command. It should go about such:
- Login with correct credentials: Connect-AzAccount
(this will make sure you are logged in with correct credentials on correct tenant etc) - Check Azure Context: Get-Azcontext
- Set Azure Context: Set-AzContext -Subscription "xxxx-xxxx-xxxx-xxxx"
- (output should be name etc of the subscription set)
- Execute the command and check if it still fails
If this helped, do mark this as answer