The above error suggests that Default deployment SKU Standard_DS1_v2' is currently not available in location 'eastus2'.
Please follow the below steps to find available SKU and use them
- Please use below command to find available SKU in "eastus2" region.
az vm list-sizes --location eastus2
- Add one more parameter with "--parameters vmSize='Standard_D4_v3' #any other SKU supported and mentioned here.
az deployment group create --resource-group IoTEdgeResources --template-uri "https://aka.ms/iotedge-vm-deploy" --parameters dnsLabelPrefix='<REPLACE_WITH_VM_NAME>' --parameters adminUsername='azureuser' --parameters deviceConnectionString=$(az iot hub device-identity connection-string show --device-id myEdgeDevice --hub-name
<REPLACE_WITH_HUB_NAME> -o tsv) --parameters authenticationType='password' --parameters adminPasswordOrKey="<REPLACE_WITH_PASSWORD>" --parameters vmSize='Standard_D4_v3'
Hope it helps fix the issue.
Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.
Thank You.