Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling the wrong subscription ID when we have multiple subscriptions to script #34

Open
prafulbusa opened this issue Nov 15, 2021 · 0 comments

Comments

@prafulbusa
Copy link

[Error] Problem VM UbuntuServer not found in resource group TESTRG in subscription xxxxx-xxxx-xxxxxx-WRONGSUBID. Verify the vmName, resourceGroupName, and subscriptionId and run the script again.

In short, everytime I try to run the command ps script {New-AzureRMRescueVM.ps1} for repair vm as this article says, the scripts goes after wrong subscription ID.
I have set the **

az account set --subscription --------CorrectSubID

**
but, it comes back saying that the VM is not found in this RG in this subscription (WrongsubID).

here, take a look at the attached screen shot after setting the correct sub and running the script again, please help.

WrongSUbID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant