Skip to main content

factories

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

Overview

Namefactories
TypeResource
Idazure.data_factory.factories

Fields

NameDatatypeDescription
idtextThe resource identifier.
nametextThe resource name.
create_timetextfield from the properties object
e_tagtextfield from the properties object
encryptiontextfield from the properties object
factoryNametextfield from the properties object
global_parameterstextfield from the properties object
identitytextIdentity properties of the factory resource.
locationtextThe resource location.
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
purview_configurationtextfield from the properties object
repo_configurationtextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe resource tags.
typetextThe resource type.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfactoryName, resourceGroupName, subscriptionIdGets a factory.
listSELECTsubscriptionIdLists factories under the specified subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists factories.
create_or_updateINSERTfactoryName, resourceGroupName, subscriptionIdCreates or updates a factory.
deleteDELETEfactoryName, resourceGroupName, subscriptionIdDeletes a factory.
updateUPDATEfactoryName, resourceGroupName, subscriptionIdUpdates a factory.
configure_factory_repoEXEClocationId, subscriptionIdUpdates a factory's repo information.

SELECT examples

Lists factories under the specified subscription.

SELECT
id,
name,
create_time,
e_tag,
encryption,
factoryName,
global_parameters,
identity,
location,
provisioning_state,
public_network_access,
purview_configuration,
repo_configuration,
resourceGroupName,
subscriptionId,
tags,
type,
version
FROM azure.data_factory.vw_factories
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.data_factory.factories (
factoryName,
resourceGroupName,
subscriptionId,
location,
tags,
identity,
properties
)
SELECT
'{{ factoryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a factories resource.

/*+ update */
UPDATE azure.data_factory.factories
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
factoryName = '{{ factoryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified factories resource.

/*+ delete */
DELETE FROM azure.data_factory.factories
WHERE factoryName = '{{ factoryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';