Skip to main content

service

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

Overview

Nameservice
TypeResource
Idazure.data_box.service

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
apiVersionsarrayApi versions that support this Sku.
capacityobjectCapacity of the Sku.
costsarrayCost of the Sku.
countriesWithinCommerceBoundaryarrayList of all the Countries in the SKU specific commerce boundary.
dataLocationToServiceLocationMaparrayThe map of data location to service location.
disabledReasonstringReason why the Sku is disabled. Known values are: "None", "Country", "Region", "Feature", "OfferType", and "NoSubscriptionInfo".
disabledReasonMessagestringMessage for why the Sku is disabled.
enabledbooleanThe sku is enabled or not.
requiredFeaturestringRequired feature to access the sku.
skuobjectThe Sku.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_available_skus_by_resource_groupselectresource_group_name, location, subscription_idThis method provides the list of available skus for the given subscription, resource group and location.
validate_addressexeclocation, subscription_id, validationType, shippingAddress, deviceType[DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer shipping address and provide alternate addresses if any.
validate_inputs_by_resource_groupexecresource_group_name, location, subscription_id, validationCategory, individualRequestDetailsThis method does all necessary pre-job creation validation under resource group.
validate_inputsexeclocation, subscription_id, validationCategory, individualRequestDetailsThis method does all necessary pre-job creation validation under subscription.
region_configurationexeclocation, subscription_idThis API provides configuration details specific to given region/location at Subscription level.
region_configuration_by_resource_groupexecresource_group_name, location, subscription_idThis API provides configuration details specific to given region/location at Resource group level.

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
locationstringThe location of the resource. Required.
resource_group_namestringThe Resource Group Name. Required.
subscription_idstring

SELECT examples

This method provides the list of available skus for the given subscription, resource group and location.

SELECT
apiVersions,
capacity,
costs,
countriesWithinCommerceBoundary,
dataLocationToServiceLocationMap,
disabledReason,
disabledReasonMessage,
enabled,
requiredFeature,
sku
FROM azure.data_box.service
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

[DEPRECATED NOTICE: This operation will soon be removed]. This method validates the customer shipping address and provide alternate addresses if any.

EXEC azure.data_box.service.validate_address 
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"validationType": "{{ validationType }}",
"shippingAddress": "{{ shippingAddress }}",
"deviceType": "{{ deviceType }}",
"transportPreferences": "{{ transportPreferences }}",
"model": "{{ model }}"
}'
;