1
votes

I am trying to create a VM out of a custom image in dev test lab using az lab vm create .. command.

I end up getting an error :

Message: Resource group '.....' could not be found.

I made sure that the resource group name I am passing in, is the same as the one which is listed under "Resource Group" in the lab's Overview tab.

What am I doing wrong?

1
are you using right subscription? - 4c74356b41
That was the problem. Used "az account set --subscription" to set the correct subscription. - Pranav Raj

1 Answers

0
votes

In this case the az was setup to use another subscription, changing the subscription fixed the issue