Skip to content

VM size should contain pricing information. #7356

Closed
@AttilaVM

Description

Is your feature request related to a problem? Please describe.

It would be nice to determine optimal VM prices with azure-cli, which already has the feature to list all the possible VM sizes for a region with important and JMESPath quariable properties, but the price is missing.

Describe the solution you'd like

The returned virtual machine size dictionaries of the az vm list-sizes command should expose the hourly costs. So the following example command would return the price-sorted-list containing all of the size options which have more than 8000MB memory and more than 4 cores in the specified location.

az vm list-sizes \
	 --location northeurope \
	 --query "[?memoryInMb>\`8000\` && numberOfCores>\`4\`] | sort_by(@,&pricePerHour)" 

Describe alternatives you've considered

One can use the Azure price calculator, but it is not so convinient.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions