Skip to main content

data_controllers

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

Overview

Namedata_controllers
TypeResource
Idazure.azure_arc_data.data_controllers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
basicLoginInformationobjectDeprecated. Azure Arc Data Services data controller no longer expose any endpoint. All traffic are exposed through Kubernetes native API.
clusterIdstringIf a CustomLocation is provided, this contains the ARM id of the connected cluster the custom location belongs to.
extendedLocationobjectThe extendedLocation of the resource.
extensionIdstringIf a CustomLocation is provided, this contains the ARM id of the extension the custom location belongs to.
infrastructurestringThe infrastructure the data controller is running on. Known values are: "azure", "gcp", "aws", "alibaba", "onpremises", and "other".
k8sRawobjectThe raw kubernetes information.
lastUploadedDatestring (date-time)Last uploaded date from Kubernetes cluster. Defaults to current date time.
locationstringThe geo-location where the resource lives. Required.
logAnalyticsWorkspaceConfigobjectLog analytics workspace id and primary key.
logsDashboardCredentialobjectLogin credential for logs dashboard on the Kubernetes cluster.
metricsDashboardCredentialobjectLogin credential for metrics dashboard on the Kubernetes cluster.
onPremisePropertyobjectProperties from the Kubernetes data controller.
provisioningStatestringThe provisioning state of the Arc Data Controller resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
uploadServicePrincipalobjectDeprecated. Service principal is deprecated in favor of Arc Kubernetes service extension managed identity.
uploadWatermarkobjectProperties on upload watermark. Mostly timestamp for each upload data type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_controllerselectresource_group_name, data_controller_name, subscription_idRetrieves a dataController resource.
list_in_groupselectresource_group_name, subscription_idList dataController resources in the resource group. List dataController resources in the resource group.
list_in_subscriptionselectsubscription_idList dataController resources in the subscription. List dataController resources in the subscription.
delete_data_controllerdeleteresource_group_name, data_controller_name, subscription_idDeletes a dataController resource.
put_data_controllerexecresource_group_name, data_controller_name, subscription_id, location, propertiesCreates or replaces a dataController resource.
patch_data_controllerexecresource_group_name, data_controller_name, subscription_idUpdates a dataController resource.

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
data_controller_namestringThe name of the data controller. Required.
resource_group_namestringThe name of the Azure resource group. Required.
subscription_idstring

SELECT examples

Retrieves a dataController resource.

SELECT
id,
name,
basicLoginInformation,
clusterId,
extendedLocation,
extensionId,
infrastructure,
k8sRaw,
lastUploadedDate,
location,
logAnalyticsWorkspaceConfig,
logsDashboardCredential,
metricsDashboardCredential,
onPremiseProperty,
provisioningState,
systemData,
tags,
type,
uploadServicePrincipal,
uploadWatermark
FROM azure.azure_arc_data.data_controllers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND data_controller_name = '{{ data_controller_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

DELETE examples

Deletes a dataController resource.

DELETE FROM azure.azure_arc_data.data_controllers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND data_controller_name = '{{ data_controller_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Creates or replaces a dataController resource.

EXEC azure.azure_arc_data.data_controllers.put_data_controller 
@resource_group_name='{{ resource_group_name }}' --required,
@data_controller_name='{{ data_controller_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"tags": "{{ tags }}",
"location": "{{ location }}",
"extendedLocation": "{{ extendedLocation }}",
"properties": "{{ properties }}"
}'
;