Azure function is a serverless framework that helps you to develop and deploy serverless applications.
I have created all four CRUD functionalities about heroes, and connected data with Cosmos Db using MongoClient. MongoClient is the interface between our program and MongoDB server. I set the CosmosDBConnectionString to pass the result from calling functions to database.
When start debugging, there are four CRUD https.
Below are images for API tests in Postman.
- NPM for package management
- Azure functions for serverless compute
- Cosmos Db for database
Azure Cosmos DBAzure Functionsin Visual Studiomongodbpackage
$ git clone
$ cd the repository
$ npm installAfter successfull package installation, run the Attach to Node debug.
Now, it will automatically give you four http urls for each functions. You can test it with Postman or Swagger UI.
File \AppData\Roaming\npm\ng.ps1 cannot be loaded. The file npm\ng.ps1 is not digitally signed Angular Error when running commands
I ran command from Visual Studio Code Terminal and got above issue. I solved this by running following command from the same terminal.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
- ReadOnly setting
Your app is currently in read only mode because you are running from a package file. To make any changes update the content in your zip file and WEBSITE_RUN_FROM_PACKAGE app setting.I changed WEBSITE_RUN_FROM_PACKGE's setting value from 1 to 0. Now editing is available on App Functions.


