Skip to main content

factories

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

Overview

Namefactories
TypeResource
Idazure.data_factory.factories

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
idstringThe resource identifier.
namestringThe resource name.
eTagstringEtag identifies change in the resource.
identityobjectManaged service identity of the factory.
locationstringThe resource location.
propertiesobjectProperties of the factory.
tagsobjectThe resource tags.
typestringThe resource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, factoryNameapi-version, If-None-MatchGets a factory.
list_by_resource_groupselectsubscriptionId, resourceGroupNameapi-versionLists factories.
listselectsubscriptionIdapi-versionLists factories under the specified subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, factoryNameapi-version, If-MatchCreates or updates a factory.
updateupdatesubscriptionId, resourceGroupName, factoryNameapi-versionUpdates a factory.
deletedeletesubscriptionId, resourceGroupName, factoryNameapi-versionDeletes a factory.
configure_factory_repoexecsubscriptionId, locationIdapi-versionUpdates a factory's repo information.

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
factoryNamestringThe factory name.
locationIdstringThe location identifier.
resourceGroupNamestringThe resource group name.
subscriptionIdstringThe subscription identifier.
If-MatchstringETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.
If-None-MatchstringETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.
api-versionstringThe API version.

SELECT examples

Gets a factory.

SELECT
id,
name,
eTag,
identity,
location,
properties,
tags,
type
FROM azure.data_factory.factories
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND factoryName = '{{ factoryName }}' -- required
AND api-version = '{{ api-version }}'
AND If-None-Match = '{{ If-None-Match }}'
;

INSERT examples

Creates or updates a factory.

INSERT INTO azure.data_factory.factories (
data__location,
data__tags,
data__identity,
data__properties,
subscriptionId,
resourceGroupName,
factoryName,
api-version,
If-Match
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ factoryName }}',
'{{ api-version }}',
'{{ If-Match }}'
RETURNING
id,
name,
eTag,
identity,
location,
properties,
tags,
type
;

UPDATE examples

Updates a factory.

UPDATE azure.data_factory.factories
SET
data__tags = '{{ tags }}',
data__identity = '{{ identity }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND factoryName = '{{ factoryName }}' --required
AND api-version = '{{ api-version}}'
RETURNING
id,
name,
eTag,
identity,
location,
properties,
tags,
type;

DELETE examples

Deletes a factory.

DELETE FROM azure.data_factory.factories
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND factoryName = '{{ factoryName }}' --required
AND api-version = '{{ api-version }}'
;

Lifecycle Methods

Updates a factory's repo information.

EXEC azure.data_factory.factories.configure_factory_repo 
@subscriptionId='{{ subscriptionId }}' --required,
@locationId='{{ locationId }}' --required,
@api-version='{{ api-version }}'
@@json=
'{
"factoryResourceId": "{{ factoryResourceId }}",
"repoConfiguration": "{{ repoConfiguration }}"
}'
;