Learn R Programming

AzureVM (version 2.2.2)

list_vm_sizes: List available VM sizes

Description

Method for the AzureRMR::az_subscription and AzureRMR::az_resource_group classes.

Value

If name_only is TRUE, a character vector of names, suitable for passing to create_vm. If FALSE, a data frame containing the following information for each VM size: the name, number of cores, OS disk size, resource disk size, memory, and maximum data disks.

Usage

## R6 method for class 'az_subscription'
list_vm_sizes(location, name_only = FALSE)

## R6 method for class 'az_resource_group' list_vm_sizes(name_only = FALSE)

Arguments

  • location: For the subscription class method, the location/region for which to obtain available VM sizes.

  • name_only: Whether to return only a vector of names, or all information on each VM size.

See Also

create_vm

Examples

Run this code
# NOT RUN {
sub <- AzureRMR::get_azure_login$
    get_subscription("subscription_id")

sub$list_vm_sizes("australiaeast")

# same output as above
rg <- sub$create_resource_group("rgname", location="australiaeast")
rg$list_vm_sizes()

# }

Run the code above in your browser using DataLab