Skip to content

Changing container within a Function App #104

Answered by mumby0168
jorg-snyders asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I was wondering if it is possible to change the containerId when in a different function.
Right now I have it setup with the RepositoryOptions in the App settings, which works great.
But one of my functions requires me to fetch data from another container, so I would like to be able to switch the containerId in that function.

Is this functionality possible or should I create an entire new function app for that one function?

Thanks!

Hey there,

Yes so we do support this on the RepositoryOptions there is a property called ContainerPerItemType if you set this to true you can then use attributes or config to tell the library which container and partition key to use for each instance of an

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jorg-snyders
Comment options

Answer selected by mumby0168
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants