Interface VirtualMachineSizes


public interface VirtualMachineSizes
Resource collection API of VirtualMachineSizes.
  • Method Details

    • listWithResponse

      com.azure.core.http.rest.Response<VirtualMachineSizeListResult> listWithResponse(String location, com.azure.core.util.Context context)
      Returns supported VM Sizes in a location.
      Parameters:
      location - The location upon which virtual-machine-sizes is queried.
      context - The context to associate with this operation.
      Returns:
      the List Virtual Machine size operation response along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      Returns supported VM Sizes in a location.
      Parameters:
      location - The location upon which virtual-machine-sizes is queried.
      Returns:
      the List Virtual Machine size operation response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.