Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.cognitive_services.accounts

Fields

NameDatatypeDescription
abuse_penaltytextfield from the properties object
accountNametextfield from the properties object
allowed_fqdn_listtextfield from the properties object
aml_workspacetextfield from the properties object
api_propertiestextfield from the properties object
call_rate_limittextfield from the properties object
capabilitiestextfield from the properties object
commitment_plan_associationstextfield from the properties object
custom_sub_domain_nametextfield from the properties object
date_createdtextfield from the properties object
deletion_datetextfield from the properties object
disable_local_authtextfield from the properties object
dynamic_throttling_enabledtextfield from the properties object
encryptiontextfield from the properties object
endpointtextfield from the properties object
endpointstextfield from the properties object
etagtextResource Etag.
identitytextIdentity for the resource.
internal_idtextfield from the properties object
is_migratedtextfield from the properties object
kindtextThe kind (type) of cognitive service account.
locationtextThe geo-location where the resource lives
locationstextfield from the properties object
migration_tokentextfield from the properties object
network_aclstextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
quota_limittextfield from the properties object
rai_monitor_configtextfield from the properties object
resourceGroupNametextfield from the properties object
restoretextfield from the properties object
restrict_outbound_network_accesstextfield from the properties object
scheduled_purge_datetextfield from the properties object
skutextThe resource model definition representing SKU
sku_change_infotextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
user_owned_storagetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdReturns a Cognitive Services account specified by the parameters.
listSELECTsubscriptionIdReturns all the resources of a particular type belonging to a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns all the resources of a particular type belonging to a resource group
createINSERTaccountName, resourceGroupName, subscriptionIdCreate Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It's also the resource type for billing.
deleteDELETEaccountName, resourceGroupName, subscriptionIdDeletes a Cognitive Services account from the resource group.
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates a Cognitive Services account
regenerate_keyEXECaccountName, resourceGroupName, subscriptionId, data__keyNameRegenerates the specified account key for the specified Cognitive Services account.

SELECT examples

Returns all the resources of a particular type belonging to a subscription.

SELECT
abuse_penalty,
accountName,
allowed_fqdn_list,
aml_workspace,
api_properties,
call_rate_limit,
capabilities,
commitment_plan_associations,
custom_sub_domain_name,
date_created,
deletion_date,
disable_local_auth,
dynamic_throttling_enabled,
encryption,
endpoint,
endpoints,
etag,
identity,
internal_id,
is_migrated,
kind,
location,
locations,
migration_token,
network_acls,
private_endpoint_connections,
provisioning_state,
public_network_access,
quota_limit,
rai_monitor_config,
resourceGroupName,
restore,
restrict_outbound_network_access,
scheduled_purge_date,
sku,
sku_change_info,
subscriptionId,
system_data,
tags,
user_owned_storage
FROM azure.cognitive_services.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.cognitive_services.accounts (
accountName,
resourceGroupName,
subscriptionId,
kind,
sku,
identity,
tags,
location,
properties
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ sku }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure.cognitive_services.accounts
SET
kind = '{{ kind }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

/*+ delete */
DELETE FROM azure.cognitive_services.accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';