@mooneyn
Thank you for getting back.
I understand you are following the tutorial here and are running into an issue while running the az network vnet subnet update
command.
The issue here due to the location of the VNET created.
When you run this command from the tutorial to create the Vnet, as no location parameter is mentioned the Vnet is created in the resource-group's location.
Please modify the create vnet command as below and you should not face the error again.
az network vnet create --name vnet-1 --resource-group WWTGroup --address-prefix 10.0.0.0/16 --subnet-name subnet-1 --subnet-prefixes 10.0.0.0/24 --location eastus2
After this please run the subnet update command below
az network vnet subnet update --name subnet-1 --resource-group WWTGroup --vnet-name vnet-1 --nat-gateway nat-gateway
In the tutorial as a new resource group is created in eastus2 location, hence all the other resources are created in eastus2 by default.
I am currently working on updating the tutorial so that no such issues will occur in the future.
Hope this helps! Please let me know if you have any additional questions.
---Please "Accept the answer" if the information helped you. This will help us and others in the community as well.