How to assign a Cosmos dataset container dynamically with Azure Synapse

Michel Galibois 21 Reputation points
2022-12-13T21:13:45.593+00:00

Hi,

I am setting up a pipeline to backup all containers from multiple Cosmos databases. I can parameterize the linked service just fine, but I cannot see a way to dynamically parameterize the Cosmos Container when creating the integration dataset. I am trying to avoid creating a Dataset per container, is there a way to achieve that?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,360 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,892 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,603 questions
0 comments No comments
{count} votes

Accepted answer
  1. AnnuKumari-MSFT 34,551 Reputation points Microsoft Employee Moderator
    2022-12-14T05:10:23.91+00:00

    Hi @Michel Galibois ,

    Welcome to Microsoft Q&A platform and thanks for posting your question here.

    As I understand your query, you are trying to parameterize CosmosDB dataset so as to use it for multiple containers. Please let me know if that's not the ask here.

    Could you please share which cosmos API you are using (mongodb or nosqldb).

    I tried to create a dataset for noSQL and didn't face any issue parameterizing it. Kindly have a look at the below video and let me know if it helps:

    270335-paramcosmos.gif

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Michel Galibois 21 Reputation points
    2022-12-14T18:04:25.203+00:00

    Hi @AnnuKumari-MSFT ,
    This works great! I was kind of stuck because I was under the impression that I would see "add dynamic content" under the container entry in the dataset, I am still fairly new to Synapse.
    Thank you for the fast and precise answer

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.