vm_skus
Creates, updates, deletes, gets or lists a vm_skus resource.
Overview
| Name | vm_skus |
| Type | Resource |
| Id | azure.hybrid_container_service.vm_skus |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". |
name | string | The name of the resource. |
extendedLocation | object | Extended location pointing to the underlying infrastructure. |
provisioningState | string | Provisioning state of the resource. Known values are: "Succeeded", "Failed", "Canceled", "Pending", "Creating", "Deleting", "Updating", "Upgrading", and "Accepted". |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
values | array | List of supported VM SKUs. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | custom_location_resource_uri | Lists the supported VM skus. Lists the supported VM skus for the specified custom location. | |
delete_vm_skus | delete | custom_location_resource_uri | Deletes the default VM skus resource type. Deletes the default VM skus resource type. | |
get_vm_skus | exec | custom_location_resource_uri | Lists the supported VM skus. Lists the supported VM skus for the specified custom location. | |
put_vm_skus | exec | custom_location_resource_uri | Puts 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.
| Name | Datatype | Description |
|---|---|---|
custom_location_resource_uri | string | The fully qualified Azure Resource Manager identifier of the custom location resource. Required. |
SELECT examples
- list
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
- delete_vm_skus
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
- get_vm_skus
- put_vm_skus
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
;
Puts 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).
EXEC azure.hybrid_container_service.vm_skus.put_vm_skus
@custom_location_resource_uri='{{ custom_location_resource_uri }}' --required
@@json=
'{
"extendedLocation": "{{ extendedLocation }}"
}'
;