Skip to main content

vm_skus

Creates, updates, deletes, gets or lists a vm_skus resource.

Overview

Namevm_skus
TypeResource
Idazure.hybrid_container_service.vm_skus

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}".
namestringThe name of the resource.
extendedLocationobjectExtended location pointing to the underlying infrastructure.
provisioningStatestringProvisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Pending", "Creating", "Deleting", "Updating", "Upgrading", and "Accepted".
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
valuesarrayList of supported VM SKUs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcustom_location_resource_uriLists the supported VM skus. Lists the supported VM skus for the specified custom location.
delete_vm_skusdeletecustom_location_resource_uriDeletes the default VM skus resource type. Deletes the default VM skus resource type.
get_vm_skusexeccustom_location_resource_uriLists the supported VM skus. Lists the supported VM skus for the specified custom location.
put_vm_skusexeccustom_location_resource_uriPuts the default VM skus resource type (one time operation, before listing the VM skus). Puts the default VM skus resource type (one time operation, before listing the VM skus).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
custom_location_resource_uristringThe fully qualified Azure Resource Manager identifier of the custom location resource. Required.

SELECT examples

Lists the supported VM skus. Lists the supported VM skus for the specified custom location.

SELECT
id,
name,
extendedLocation,
provisioningState,
systemData,
type,
values
FROM azure.hybrid_container_service.vm_skus
WHERE custom_location_resource_uri = '{{ custom_location_resource_uri }}' -- required
;

DELETE examples

Deletes the default VM skus resource type. Deletes the default VM skus resource type.

DELETE FROM azure.hybrid_container_service.vm_skus
WHERE custom_location_resource_uri = '{{ custom_location_resource_uri }}' --required
;

Lifecycle Methods

Lists the supported VM skus. Lists the supported VM skus for the specified custom location.

EXEC azure.hybrid_container_service.vm_skus.get_vm_skus 
@custom_location_resource_uri='{{ custom_location_resource_uri }}' --required
;