I'm trying to follow the example of how to Install and configure Terraform to provision VMs and other infrastructure into Azure using Azure Cloud shell as described here:
The following command provided the subscription id and tenant id:
az account show --query "{subscriptionId:id, tenantId:tenantId}"
However, the command provided the following error:
The subscription of '' doesn't exist in cloud 'AzureCloud'.
az account list
? does it return anything? if not you need to login or check your rights – Rolaaz account list --query "[].{x:id, z:tenantId}"
anyway, i dont really understand your problem, just lookup tenantid and subid without this command if you cannot type or copy\paste properly – Rola