Hello @Dendeni, Iyes
The cause behind the error is that the VM Size you've selected isn't available for East US location for your subscription.
Resolution: To get the VM size available for your subscription in the region, you'd be required to submit a SKU request to Azure Support.
As an alternative, you can use az vm list-skus command to see what VM-Sizes are available for your subscription in the East US region.
Sample command:
az vm list-skus --location eastus --size Standard_D --all --output table
-
--locationfilters output by location. -
--sizesearches by a partial size name. -
--allshows all information and includes sizes that aren't available for the current subscription
Sample output:
ResourceType Locations Name Zones Restrictions
--------------- ----------- -------------- ------- --------------
virtualMachines eastus Standard_D1 1 None
virtualMachines eastus Standard_D11 1 None
virtualMachines eastus Standard_D11_v2 1,2,3 None
virtualMachines eastus Standard_D16ds_v4 1,2,3 NotAvailableForSubscription,
type: locations: eastus, s zones: 1,2,3
Reference documentation: https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-sku-not-available?tabs=azure-cli#solution