Create Azure Operate – Cosmos Set off in Azure Portal


This text will allow you to learn to create Azure Operate – Cosmos  Set off in Azure Portal.

Earlier than studying this text, please undergo some vital articles talked about under,

  1. Exploring About Azure Operate
  2. Create Http Set off Azure Operate In Azure Portal
  3. Create The Timer Set off Azure Operate In Azure Portal
  4. Create Sturdy Operate In Azure Portal
  5. Create Sturdy Operate In Visual Studio
  6. Create Azure Operate In Visual Studio
  7. Create Azure Operate – Blob Set off In Azure Portal
  8. Create Azure Operate – Queue Set off In Azure Portal
  9. Create Azure Operate – Timmer Set off In Visual Studio

Azure Operate

 Azure Capabilities is a serverless computing service and is hosted on the Microsoft Azure public cloud. It’s designed to speed up and simplify utility growth. The cloud supplier takes care of all of the complications of working the server, dynamically managing the assets of the machine, and so on. It additionally gives auto scalability.

Serverless functions, also called Operate-as-a-Service or FaaS, is an providing from many of the enterprise cloud suppliers by which they permit the customers to solely write code, and the infrastructure behind the scenes is managed by them.

Azure Capabilities is the event-based serverless utility framework which might robotically scale up and down primarily based on the executions which might be being triggered. This Microsoft Azure service lets you run small items of code in Node.js, C#, Python, PHP and Java with none infrastructure configurations.

Right here, we are going to see about Azure Operate.


Azure Capabilities helps you to execute your code in a serverless atmosphere with out having to first create a VM or publish an internet utility.

Key Options

  • Intuitive, browser-based person interface – You’ll be able to write code within the easy-to-use net interface.
  • write code in several programming languages
  • pay per perform execution
  • parallel execution when a number of triggers happen
  • Helps Steady Deployment and Integration

Cosmos DB

Azure Cosmos DB is a completely managed NoSQL database for contemporary app growth. Single-digit millisecond response occasions, and automated and on the spot scalability, assure velocity at any scale.

Create Azure Operate – Cosmos DB Set off in Azure Portal


Observe the under steps to create an Azure Storage Account.

Step 1

Log in right here. Please undergo the article talked about under for creating an Azure Operate.

Step 2

Enter the small print for fields – select the subscription, useful resource group, perform identify, run stack, model and area. Let’s have a look at every, one after the other.

 Cosmos DB Trigger

Step 3

After efficiently creating the Azure Operate providers, you’re land over to the overview web page as proven under.

Cosmos DB Trigger

Step 4

Subsequent, we now have to Create Cosmos DB account.

Cosmos DB Trigger

Select SQL API and Enter the values and click on on create

Cosmos DB Trigger

As soon as it’s created, the home windows like this

Cosmos DB Trigger

Step 5

Now, open the perform service and select Operate below the Operate tab. Now click on on Create choice to create a perform set off.

Cosmos DB Trigger

Step 6

On this blade, you possibly can capable of see many triggers. Seek for Cosmos DB set off perform right here.

Cosmos DB Trigger

Enter the values

  1. In that, we have to give the perform identify
  2. select Cosmos DB Connection
  3. Enter Database identify
  4. Enter Assortment identify

Now, simply view code+Take a look at for Queue set off perform.

Cosmos DB Trigger

Open the log and test its linked

Cosmos DB Trigger

Step 7

Now, we have to create a database in Cosmos DB account for getting the log particulars in features. So, transfer to CosmosDB account.

Then, click on on Information Explorer and select pattern DB

Cosmos DB Trigger

Its appears like this window.

Cosmos DB Trigger

Subsequent, click on on New merchandise

Cosmos DB Trigger 

Now, Add your knowledge and click on the save button

Cosmos DB Trigger

Now it added to the database

Cosmos DB Trigger


Now, transfer to features and open the logs. we are able to efficiently run our CosmosDB storage set off perform right here. The output will appear to be this.

Cosmos DB Trigger

And likewise we are able to test Whole execution below the overview

Cosmos DB Trigger


I hope you understood how we are able to create a CosmosDB set off perform within the Azure portal. Keep tuned for extra articles on Azure Operate.

Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button