Azure Data Factory Dataset Cosmosdb SQLapi
This page shows how to write Terraform and Azure Resource Manager for Data Factory Dataset Cosmosdb SQLapi and write them securely.
azurerm_data_factory_dataset_cosmosdb_sqlapi (Terraform)
The Dataset Cosmosdb SQLapi in Data Factory can be configured in Terraform with the resource name azurerm_data_factory_dataset_cosmosdb_sqlapi. The following sections describe 4 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_data_factory_dataset_cosmosdb_sqlapi" "dataset" {
name = var.name
resource_group_name = var.resource_group_name
data_factory_name = var.data_factory_name
linked_service_name = var.linked_service_name
folder = try(var.folder, null)
resource "azurerm_data_factory_dataset_cosmosdb_sqlapi" "dataset" {
name = var.name
resource_group_name = var.resource_group_name
data_factory_name = var.data_factory_name
linked_service_name = var.linked_service_name
folder = try(var.folder, null)
resource "azurerm_data_factory_dataset_cosmosdb_sqlapi" "dataset" {
name = var.name
resource_group_name = var.resource_group_name
data_factory_name = var.data_factory_name
linked_service_name = var.linked_service_name
folder = try(var.folder, null)
resource "azurerm_data_factory_dataset_cosmosdb_sqlapi" "dataset" {
name = azurecaf_name.dataset.result
resource_group_name = var.resource_group_name
data_factory_name = var.data_factory_name
linked_service_name = var.linked_service_name
folder = try(var.settings.folder, null)
Parameters
-
additional_propertiesoptional - map from string to string -
annotationsoptional - list of string -
collection_nameoptional - string -
data_factory_namerequired - string -
descriptionoptional - string -
folderoptional - string -
idoptional computed - string -
linked_service_namerequired - string -
namerequired - string -
parametersoptional - map from string to string -
resource_group_namerequired - string -
schema_columnlist block-
descriptionoptional - string -
namerequired - string -
typeoptional - string
-
-
timeoutssingle block
Explanation in Terraform Registry
Manages an Azure Cosmos DB SQL API Dataset inside an Azure Data Factory.
Tips: Best Practices for The Other Azure Data Factory Resources
In addition to the azurerm_data_factory, Azure Data Factory has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.
azurerm_data_factory
Ensure to disable public access
It is better to disable public access for Data Factory, which is enabled as default.
Microsoft.DataFactory/factories/datasets (Azure Resource Manager)
The factories/datasets in Microsoft.DataFactory can be configured in Azure Resource Manager with the resource name Microsoft.DataFactory/factories/datasets. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersionrequired - stringnamerequired - stringThe dataset name.
propertiesrequiredadditionalPropertiesoptional - objectUnmatched properties from the message are deserialized this collection
annotationsoptional - arrayList of tags that can be used for describing the Dataset.
descriptionoptional - stringDataset description.
folderoptionalnameoptional - stringThe name of the folder that this Dataset is in.
linkedServiceNamerequiredparametersoptional - objectAn object mapping parameter names to argument values.
referenceNamerequired - stringReference LinkedService name.
typerequired - stringLinked service reference type.
parametersoptional - undefinedDefinition of all parameters for an entity.
schemaoptional - objectColumns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
structureoptional - objectColumns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
typerequired - string
Frequently asked questions
What is Azure Data Factory Dataset Cosmosdb SQLapi?
Azure Data Factory Dataset Cosmosdb SQLapi is a resource for Data Factory of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Data Factory Dataset Cosmosdb SQLapi?
For Terraform, the anmoltoppo/Terraform, pkhuntia/aztfmod and mennaammar/spoke-landing-zone source code examples are useful. See the Terraform Example section for further details.