Azure / Azure/azure-cli

Describe Azure compute and networking services - Exercise - Create an Azure virtual machine - Task 2: Create a Linux virtual machine

Open
#32,628 3 comments 0 reactions 2 assignees Claimed by @zhoxing-ms View on GitHub
act-observability-squad Auto-Assign Auto-Resolve Azure CLI Team Compute customer-reported Possible-Solution question Similar-Issue
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

The instructions tell you to use `az vm create --resource-group "IntroAzureRG" --name my-vm --size Standard_D2s_v5 --public-ip-sku Standard --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys`

However, this brings traceback errors such as: `Code: SkuNotAvailable
Message: The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_D4ads_v5' is currently not available in location 'eastus'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details.`

I have tried multiple different SKU's all getting the same error.

### Related command

`az vm create --resource-group "IntroAzureRG" --name my-vm --size Standard_D2s_v5 --public-ip-sku Standard --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys`

### Errors

`Code: SkuNotAvailable
Message: The requested VM size for resource 'Following SKUs have failed for Capacity Restrictions: Standard_D4ads_v5' is currently not available in location 'eastus'. Please try another size or deploy to a different location or different zone. See https://aka.ms/azureskunotavailable for details.`

### Issue script & Debug output

N/A

### Expected behavior

Should create Linux VM

### Environment Summary

azure-cli 2.79.0 *

core 2.79.0 *
telemetry 1.1.0

Extensions:
ml 2.39.0
ssh 2.0.6

Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.