serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
266 stars 162 forks source link

Serverless Framework is not setting the "leaseCollectionPrefix" with Cosmosdb trigger #554

Closed wolverinethegeneral closed 3 years ago

wolverinethegeneral commented 3 years ago

Hi everyone,

I am deploying some functions in azure with the cosmosdb trigger, but when I define it on the serverless.yml:

      - cosmosDB: true
        x-azure-settings:
          name: documents # name of input parameter in function signature
          databaseName: dbName
          direction: in
          leaseCollectionName: leases
          leaseCollectionPrefix: dbPrefix
          connectionStringSetting: myConnectionString
          collectionName: collection_name
          createLeaseCollectionIfNotExists: true

and when deploy i get:

image

with no leaseCollectionPrefix

Can anyone help, please

yadkumar commented 2 years ago

Hi Team,

What is the solution for this issue?