问题
I've currently created Test Lab in Azure and when I try to create an Ubuntu Server 14.04 LTS it keeps failing with the below error message.
Error while creating virtual machine TestVMUbuntu The requested size for resource
/subscriptions/....../resourceGroups/blockchaineuropetest/providers/Microsoft.Compute/virtualMachines/TestVMUbuntuis currently not available in location 'northeurope' zones '' for subscription 'xxxxxxx'. Please try another size or deploy to a different location or zones. See https://aka.ms/azureskunotavailable for details.
I connected with PowerShell remote and it's on the list of available regions.
PS C:\Users\joshua.duxbury> Get-AzureRmLocation | select DisplayName
DisplayName
-----------
East Asia
Southeast Asia
Central US
East US
East US 2
West US
North Central US
South Central US
North Europe
West Europe
Japan West
Japan East
Brazil South
Australia East
Australia Southeast
South India
Central India
West India
Canada Central
Canada East
UK South
UK West
West Central US
West US 2
Korea Central
Korea South
France Central
France South
I've tried a few different regions. Has anyone else encountered this issue and how can I resolve?
回答1:
You receive this error when the resource SKU you have selected (such as VM size) is not available for the location you have selected.
First check the available resources in selected region by using command Get-AzureRmComputeResourceSku then proceed to launch VM. You could also check Products available by region.
To determine which SKUs are available in a region, use the Get-AzureRmComputeResourceSku command. Filter the results by location. You must have the latest version of PowerShell for this command.
Get-AzureRmComputeResourceSku | where {$_.Locations -icontains "southcentralus"}
You could also use CLI to determine which SKUs are available in a region, use the az vm list-skus command.
Refer this documentation for more details.
Hope this helps.
回答2:
The region I choose was available, the reason I was running into this problem was that I hosted the VM's on a Visual Studio Professional subscription and I was trying to host a VM with premium disks.
I followed the below steps.
- Make sure the region is available (which it was available)
- Select HDD instead of SSD.
- Look down the list of available none premium VM's (green instead of blue)
回答3:
What size did you try to create?
Below series are not available in the North Europe region:
Fv2-series,
G-series,
M-series,
GS-series,
NCv2-series,
NCv3-series,
ND-Series,
L-Series.
You can find products available by region here.
来源:https://stackoverflow.com/questions/49707339/error-while-creating-virtual-machine-x-the-requested-size-for-resource-y-is-curr