~ ➜ az vm create
–resource-group kml_rg_main-05d9d994354b45ed
–name datacenter-vm
–image Ubuntu2204
–size Standard_B2s
–admin-username azureuser
–generate-ssh-keys
–os-disk-size-gb 30
–storage-sku Standard_LRS
–location eastus
SSH key files ‘/root/.ssh/id_rsa’ and ‘/root/.ssh/id_rsa.pub’ have been generated under ~/.ssh to allow SSH access to the VM. If using machines without permanent storage, back up your keys to a safe location.
{“error”:{“code”:“InvalidTemplateDeployment”,“message”:“The template deployment ‘vm_deploy_wxqltOIcEttAEpq2hWSZYTU5SrLvArNC’ is not valid according to the validation procedure. The tracking id is ‘b7643529-a15e-4a6f-9dd1-b7f963b97d7f’. See inner errors for details.”,“details”:[{“code”:“SkuNotAvailable”,“message”:“The requested VM size for resource ‘Following SKUs have failed for Capacity Restrictions: Standard_B2s’ is currently not available in location ‘eastus’. Please try another size or deploy to a different location or different zone. See SKU not available errors - Azure Resource Manager | Microsoft Learn for details.”}]}}