Posts

Showing posts with the label Azure

Fix: How to move blob from one storage account to another using logic app

 To move a Blob from one Azure Storage account to another using Azure Logic App, you can use the built-in Azure Blob Storage connectors. Here's a step-by-step guide: **Prerequisites:** 1. Azure Logic App : Create an Azure Logic App if you haven't already. 2. Azure Storage Accounts: Have the source and destination Azure Storage accounts set up and accessible. **Step 1: Create a Logic App ** 1. In the Azure Portal, go to your Logic App's resource group and create a new Logic App if you don't have one already. **Step 2: Create a Trigger** 1. In your Logic App designer, select a trigger to start your workflow. For this example, you can use the "When a blob is added or modified (properties only)" trigger from the Azure Blob Storage connector. This trigger will start your workflow when a new blob is added or modified in the source storage account. **Step 3: Add an Action for Copying the Blob** 1. After the trigger, add a new action by clicking the "+" sign

Azure AppServices request throttling

 Azure App Service doesn't have built-in request throttling at the application level, but you can implement request throttling in your Azure App Service application using various strategies. Here are a few ways to achieve this: 1. **Rate Limiting Middleware**: You can implement rate limiting at the application level by adding a middleware component that tracks and limits the number of requests from a client IP address. You can use libraries like "AspNetCoreRateLimit" for ASP.NET Core applications. 2. **API Management Service**: Azure offers Azure API Management, which provides built-in support for rate limiting and throttling. You can use this service to manage and control the rate at which clients can access your API or application. 3. **Custom Code**: Implement your own custom request throttling logic within your application code. You can track the number of requests from a client and, once it exceeds a predefined threshold, return an HTTP 429 (Too Many Requests) respon

Testing Azure Function locally on Macbook Pro M1 macos Sonoma

 Testing Azure Functions on a MacBook Pro with an M1 chip and macOS Sonoma can be a bit different due to the architecture and potential compatibility issues. Here are some steps to help you get started: 1. **Prerequisites:**    - Ensure you have Node.js and Azure Functions Core Tools installed on your machine.    - Make sure you have the Azure Functions extension for Visual Studio Code or another code editor installed. 2. **Create an Azure Function Project:**    - Open a terminal and navigate to the directory where you want to create your Azure Functions project.    - Use the following command to create a new project:    ```bash    func init MyFunctionApp    ``` 3. **Select a Language:**    - Choose the programming language you want to use for your Azure Function. You can select from JavaScript, TypeScript, Python, etc. 4. **Create a Function:**    - Add a new function to your project:    ```bash    func new    ``` 5. **Test Your Function Locally:**    - Use the following command to ru

Setup SSL for custom domain to Azure App Service

 To set up SSL (Secure Sockets Layer) for a custom domain on an Azure App Service, you can follow these steps: 1. **Prepare Your Domain and DNS Records**:    - Ensure you have a custom domain registered with a domain registrar.    - Create DNS records (usually a CNAME or A record) to point to your Azure App Service. This typically involves setting up a CNAME or A record in your domain registrar's DNS settings that points to your Azure App Service's domain name. 2. **Purchase or Obtain an SSL Certificate**:    - You can obtain an SSL certificate from a Certificate Authority (CA) like Let's Encrypt, or you can purchase one from a commercial CA.    - If using Let's Encrypt, follow their documentation for generating a certificate. 3. **Add the SSL Certificate to Azure App Service**:    - In the Azure Portal, go to your App Service.    - Under the "Settings" section, find the "TLS/SSL settings."    - Click on "Private Key Certificates" or "