Method for the AzureRMR::az_subscription and AzureRMR::az_resource_group classes.
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.
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.
Examples
## Not run:sub <- AzureRMR::get_azure_login$ get_subscription("subscription_id")sub$list_vm_sizes("australiaeast")# same output as aboverg <- sub$create_resource_group("rgname", location="australiaeast")rg$list_vm_sizes()## End(Not run)