Skip to main content

services

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

Overview

Nameservices
TypeResource
Idazure.search.services

Fields

NameDatatypeDescription
auth_optionstextfield from the properties object
disable_local_authtextfield from the properties object
disabled_data_exfiltration_optionstextfield from the properties object
e_tagtextfield from the properties object
encryption_with_cmktextfield from the properties object
hosting_modetextfield from the properties object
identitytextDetails about the search service identity. A null value indicates that the search service has no identity assigned.
locationtextThe geo-location where the resource lives
network_rule_settextfield from the properties object
partition_counttextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
replica_counttextfield from the properties object
resourceGroupNametextfield from the properties object
searchServiceNametextfield from the properties object
semantic_searchtextfield from the properties object
shared_private_link_resourcestextfield from the properties object
skutextDefines the SKU of a search service, which determines billing rate and capacity limits.
statustextfield from the properties object
status_detailstextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, searchServiceName, subscriptionIdGets the search service with the given name in the given resource group.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of all Search services in the given resource group.
list_by_subscriptionSELECTsubscriptionIdGets a list of all Search services in the given subscription.
create_or_updateINSERTresourceGroupName, searchServiceName, subscriptionIdCreates or updates a search service in the given resource group. If the search service already exists, all properties will be updated with the given values.
deleteDELETEresourceGroupName, searchServiceName, subscriptionIdDeletes a search service in the given resource group, along with its associated resources.
updateUPDATEresourceGroupName, searchServiceName, subscriptionIdUpdates an existing search service in the given resource group.
check_name_availabilityEXECsubscriptionId, data__name, data__typeChecks whether or not the given search service name is available for use. Search service names must be globally unique since they are part of the service URI (https://name.search.windows.net).

SELECT examples

Gets a list of all Search services in the given subscription.

SELECT
auth_options,
disable_local_auth,
disabled_data_exfiltration_options,
e_tag,
encryption_with_cmk,
hosting_mode,
identity,
location,
network_rule_set,
partition_count,
private_endpoint_connections,
provisioning_state,
public_network_access,
replica_count,
resourceGroupName,
searchServiceName,
semantic_search,
shared_private_link_resources,
sku,
status,
status_details,
subscriptionId,
tags
FROM azure.search.vw_services
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new services resource.

/*+ create */
INSERT INTO azure.search.services (
resourceGroupName,
searchServiceName,
subscriptionId,
properties,
sku,
identity,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ searchServiceName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ sku }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a services resource.

/*+ update */
UPDATE azure.search.services
SET
properties = '{{ properties }}',
sku = '{{ sku }}',
location = '{{ location }}',
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND searchServiceName = '{{ searchServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified services resource.

/*+ delete */
DELETE FROM azure.search.services
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND searchServiceName = '{{ searchServiceName }}'
AND subscriptionId = '{{ subscriptionId }}';