skip to Main Content

Azure Function V4 Dotnet Isolated unable to connect to cosmos db

I am following some tutorial to connect Azure Function to Cosmosdb like this (the tutorial is for a V3 in-process azure function) [CosmosDBTrigger(databaseName: "Test", collectionName: "collection1", ConnectionStringSetting = "ConnectionString", LeaseCollectionName = "lease", LeaseCollectionPrefix = "UpdateLocation-", CreateLeaseCollectionIfNotExists = true)] However, with…

VIEW QUESTION

Azure – Get list of version ids for a blob using node.js

I am trying to get list of version ids for a blob using node.js. async function getBlobNameAndVersions() { for await (const blob of containerClient.listBlobsFlat(includeVersions?: true)) { const tempBlockBlobClient = containerClient.getBlockBlobClient(blob.name); console.log(`ntname: ${blob.versionId}ntURL: ${tempBlockBlobClient.name}n`); } } getBlobNameAndVersions() Received error saying "ReferenceError:…

VIEW QUESTION
Back To Top
Search