Posts

Showing posts with the label Azure

Exploring Timer Triggers for Azure Functions

Image
Introduction: Azure Functions provide a serverless computing platform for executing code in a scalable and event-driven manner. One of the key triggers available in Azure Functions is the Timer trigger. With Timer triggers, you can schedule and automate the execution of your functions based on a specified time or interval. In this blog post, we will dive into the Timer trigger for Azure Functions and explore its features, use cases, and implementation. What is a Timer trigger in Azure Functions? The Timer trigger in Azure Functions allows you to schedule the execution of your functions at regular intervals or specific times. It is ideal for automating recurring tasks, periodic data processing, or triggering workflows based on a fixed schedule. With Timer triggers, you can define the timing using either a time expression or a more advanced cron expression. Key Features and Benefits Flexibility: Timer triggers support various time formats, including simple intervals, specific t...

Creating a C# Azure Function with Visual Studio: Step-by-Step Guide

Image
Azure Functions is a serverless computing service provided by Microsoft Azure, enabling developers to create applications without worrying about server maintenance and infrastructure. Using Azure Functions, developers can create event-driven, scalable, and highly available applications. In this blog, we will explain how to create an Azure function using Visual Studio 2022 with C# as the programming language. Before we begin, there are some prerequisites to consider. You will need an active Azure account subscription, Visual Studio 2022, and Azure Functions and Azure Storage extensions for Visual Studio. Step 1: Creating a new Azure Functions project in Visual Studio To create a new project, open Visual Studio 2022 and click on "Create a new project". In the "Create a new project" window, search for "Azure Functions" and select "Azure Functions" from the list of project templates. Next, enter the project name, which ...

Comparing Azure Functions and Azure Logic Apps

Image
In this blog post, we'll explore the difference between Azure Functions and Logic Apps. Azure Functions and Logic Apps both are two popular cloud computing services. Azure Functions and Logic Apps both services are serverless so you don’t want to worry about the infrastructure. But there are many differences between them. Azure Functions Azure Functions is a serverless compute service that helps to run code on-demand without worrying about the infrastructure. You can just write the code and upload it to Azure Functions. Then it will run the code whenever an event occurs, such as an HTTP request or a message in a queue. Azure Functions is designed to be lightweight and flexible. It supports multiple programming languages so you can write code in any language you are familiar with. Example C#, Java, JavaScript, Python, and PowerShell. You can also trigger your functions in a different way like HTTP requests, timers, and messages in a queue. Azure Functions is an excellent...

An Overview of Azure Functions

Image
A new cloud computing concept called serverless computing has gained a lot of popularity recently. It is a methodology that enables programmers to create and deploy apps without stressing over the infrastructure. Because of this the developers no need to worry about managing servers, storage, and other infrastructure components so they can concentrate on writing code and creating apps. Azure Functions is one of the most widely used serverless computing platforms. Microsoft Azure provides Azure Functions, a cloud-based service. Using this service the developers can create and operate applications without worrying about the infrastructure. With the support of Azure Functions, developers may run brief segments of code, or "functions," in response to various events, such as HTTP requests, modifications to database data, or updates to message queues. Azure Functions supports the following programming languages C#, Java, JavaScript (Node.js), PowerShell, Python and TypeScrip...

Upload and Download Azure Blob Storage using AZCopy

Image
AZCopy is a command-line utility for uploading and downloading Azure Blob Storage files. At the time of writing, the most recent version of AZCopy is V10. So, you can get the AZCopy executable file from the link below. https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10 If the link does not work, look for the most recent version of AZCopy and download the executable file. Download the file and save it in a location that is convenient for you on your computer. In this blog, I'll show you how to use an SAS token to upload and download files from Azure Blob Storage. Get SAS token First, let's look at how to obtain an SAS token. Go to the Azure Storage Account to which you want to upload or download files. On the right side, under Security + networking, choose Shared access signature. Locate the Allowed resource types and choose the preferred resource type. I'm going with all three options (Service, Container, Object) Enter the ...

Azure Blob Storage With ASP.NET Core

Image
This blog will show you how to create a container and files in Azure Blob Storage. You must first install the Azure.Storage.Blobs package. Install-Package Azure.Storage.Blobs Create a container in Azure Blob Storage Let's start by learning how to create a container in Azure Blob Storage. A connection string is required for this. Go to Azure Blob Storage -> Access keys for that. There are two key values there. Choose the first option. The connection string will be concealed. When you click the show button on the right side, the connection string will be revealed. You can now copy the connection string. A code snippet for creating a container in Azure Storage is provided below. The connection string has been set up here. The instance of BlobContainerClient has been created. Using the BlobContainerClient instance, determine whether the container name exists or not, and if not, create a new container with the given name. The container name must adhere to the followi...