<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ajith Nagarajan on Medium]]></title>
        <description><![CDATA[Stories by Ajith Nagarajan on Medium]]></description>
        <link>https://medium.com/@ajithnagarajan21?source=rss-4a72af06361------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Pj_hlHpD3FJaLCMJx_xDZQ.jpeg</url>
            <title>Stories by Ajith Nagarajan on Medium</title>
            <link>https://medium.com/@ajithnagarajan21?source=rss-4a72af06361------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:29:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajithnagarajan21/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Enhancing Data Engineering Resilience: Tabletop Exercises for Real-World Challenges]]></title>
            <link>https://ajithnagarajan21.medium.com/enhancing-data-engineering-resilience-tabletop-exercises-for-real-world-challenges-83f0ebb8a9c4?source=rss-4a72af06361------2</link>
            <guid isPermaLink="false">https://medium.com/p/83f0ebb8a9c4</guid>
            <category><![CDATA[incident-response]]></category>
            <category><![CDATA[big-data-security]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Ajith Nagarajan]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 07:56:27 GMT</pubDate>
            <atom:updated>2025-03-02T07:56:27.162Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-evolving world of data engineering, ensuring the resilience of data pipelines, security, and performance is critical. One of the best ways to prepare for unforeseen challenges is through <strong>Tabletop Exercises (TTX)</strong> — structured discussions that simulate real-world scenarios. These exercises help teams identify vulnerabilities, improve problem-solving skills, and enhance incident response strategies.</p><h3>What is a Tabletop Exercise?</h3><p>A <strong>Tabletop Exercise (TTX)</strong> is a collaborative session where a team walks through a hypothetical scenario to test their response strategies without actually executing any code or making changes in the system. It helps organizations proactively handle incidents before they occur in a live environment.</p><h3>Why Do Data Engineers Need TTX?</h3><p>As a Data Engineer, you deal with <strong>ETL pipelines, cloud infrastructure, data governance, and security.</strong> Failures in any of these areas can lead to significant business disruptions. TTX sessions help:</p><ul><li>Identify gaps in incident response strategies</li><li>Improve troubleshooting and debugging skills</li><li>Enhance collaboration between data engineers, DevOps, and security teams</li><li>Reduce downtime and prevent costly errors</li></ul><h3>Tabletop Exercises for Data Engineers</h3><p>Below are some <strong>real-world scenarios</strong> and discussion points to consider in your TTX sessions.</p><h3>1. Data Pipeline Failure</h3><p><strong>Scenario:</strong> A critical ETL pipeline that processes customer transactions fails unexpectedly.</p><p>🔹 <strong>Discussion Points:</strong></p><ul><li>How do you quickly identify the root cause?</li><li>What monitoring tools (logs, alerts) do you use for diagnosis?</li><li>How do you minimize downtime and resume processing?</li><li>What preventive measures can be implemented?</li></ul><h3>2. Data Loss or Corruption</h3><p><strong>Scenario:</strong> A recent data load has resulted in corrupt or missing data, affecting business reports.</p><p>🔹 <strong>Discussion Points:</strong></p><ul><li>How do you validate if data is corrupted?</li><li>What are your data backup and recovery strategies?</li><li>How do you prevent such incidents in the future?</li><li>How do you communicate this issue to stakeholders?</li></ul><h3>3. Security Breach in Data Warehouse</h3><p><strong>Scenario:</strong> Unauthorized access is detected in your cloud data warehouse.</p><p>🔹 <strong>Discussion Points:</strong></p><ul><li>What immediate actions should be taken?</li><li>How do you identify the extent of the breach?</li><li>How do you review and strengthen IAM policies?</li><li>What security best practices (encryption, access control) should be enforced?</li></ul><h3>4. Slow Query Performance</h3><p><strong>Scenario:</strong> A business report that used to generate in 10 minutes now takes over an hour.</p><p>🔹 <strong>Discussion Points:</strong></p><ul><li>How do you diagnose slow performance in a data warehouse?</li><li>What optimizations (indexing, partitioning, query tuning) can be applied?</li><li>How do you prevent similar performance degradation?</li></ul><h3>5. Cloud Cost Overrun</h3><p><strong>Scenario:</strong> Your cloud bill spikes unexpectedly due to excessive resource consumption in data processing.</p><p>🔹 <strong>Discussion Points:</strong></p><ul><li>How do you identify which services caused the spike?</li><li>What cost monitoring tools should be in place?</li><li>How can you optimize cloud resource usage?</li></ul><h3>6. Compliance Violation in Data Storage</h3><p><strong>Scenario:</strong> An audit reveals that your ETL pipeline is storing Personally Identifiable Information (PII) in an unencrypted format.</p><p>🔹 <strong>Discussion Points:</strong></p><ul><li>What immediate steps should be taken to secure the data?</li><li>How do you ensure compliance with GDPR, CCPA, or other regulations?</li><li>What long-term data governance strategies should be implemented?</li></ul><h3>7. Orchestration Tool Failure (ADF, Airflow, etc.)</h3><p><strong>Scenario:</strong> Your Azure Data Factory (ADF) pipelines start failing due to an unknown service outage.</p><p>🔹 <strong>Discussion Points:</strong></p><ul><li>How do you troubleshoot and find the root cause?</li><li>What are alternative solutions during an outage?</li><li>How do you ensure business continuity during such failures?</li></ul><h3>How to Conduct a Successful TTX?</h3><ol><li><strong>Choose a Realistic Scenario</strong> — Select scenarios relevant to your data workflows.</li><li><strong>Assign Roles</strong> — Involve data engineers, DevOps, security, and business teams.</li><li><strong>Simulate the Incident</strong> — Walk through step-by-step responses without executing code.</li><li><strong>Identify Gaps</strong> — Document weaknesses and missing tools/processes.</li><li><strong>Improve Strategies</strong> — Implement action items based on findings.</li></ol><h3>Conclusion</h3><p>Tabletop Exercises are a <strong>must-have for Data Engineers</strong> to proactively handle failures, security breaches, and performance bottlenecks. Regular practice ensures that teams are well-prepared for unexpected incidents, reducing downtime and improving overall data reliability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83f0ebb8a9c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Concurrently Uploading Files from Multiple Sources to Azure Storage using PowerShell]]></title>
            <link>https://ajithnagarajan21.medium.com/concurrently-uploading-files-from-multiple-sources-to-azure-storage-using-powershell-419b0e6ae2ce?source=rss-4a72af06361------2</link>
            <guid isPermaLink="false">https://medium.com/p/419b0e6ae2ce</guid>
            <dc:creator><![CDATA[Ajith Nagarajan]]></dc:creator>
            <pubDate>Fri, 18 Aug 2023 05:45:52 GMT</pubDate>
            <atom:updated>2023-08-18T08:52:09.833Z</atom:updated>
            <content:encoded><![CDATA[<p>Certainly! Here are the steps to concurrently upload files from multiple source locations to Azure Storage using PowerShell:</p><p>Step 1: Set Up Environment and Parameters</p><ul><li>Ensure you have the Azure PowerShell module installed.</li><li>Replace placeholders with your actual Azure Storage account name, container name, and destination folder path.</li></ul><p>Step 2: Define Source Directories</p><p>Create an array containing the paths to your source directories that you want to upload.</p><pre># Define the storage account and container information<br>$storageAccountName = &quot;yourstorageaccountname&quot;<br>$containerName = &quot;yourcontainername&quot;<br>$destinationPath = &quot;destination-folder-on-blob&quot;<br><br># List of source directories<br>$sourceDirectories = @(&quot;C:\path\to\source1&quot;, &quot;C:\path\to\source2&quot;, &quot;C:\path\to\source3&quot;)<br><br># Scriptblock to upload files<br>$uploadScriptBlock = {<br>    param ($sourcePath, $destinationPath, $storageAccountName, $containerName)<br>    <br>    Connect-AzAccount<br><br>    $result = az storage blob upload-batch `<br>        --destination $containerName `<br>        --destination-path $destinationPath `<br>        --source $sourcePath `<br>        --account-name $storageAccountName<br><br>    # Output the result along with source directory<br>    [PSCustomObject]@{<br>        SourceDirectory = $sourcePath<br>        Result = $result<br>    }<br>}<br><br># Create a runspace pool<br>$runspacePool = [runspacefactory]::CreateRunspacePool(1, [Environment]::ProcessorCount)<br>$runspacePool.Open()<br><br># Array to store runspace results<br>$runspaceResults = @()<br><br># Start concurrent uploads using runspaces<br>foreach ($sourcePath in $sourceDirectories) {<br>    $runspace = [powershell]::Create().AddScript($uploadScriptBlock).AddArgument($sourcePath).AddArgument($destinationPath).AddArgument($storageAccountName).AddArgument($containerName)<br>    $runspace.RunspacePool = $runspacePool<br><br>    $runspaceResults += [PSCustomObject]@{ Runspace = $runspace; Status = $runspace.BeginInvoke() }<br>}<br><br># Wait for all runspace tasks to complete<br>$runspaceResults | ForEach-Object {<br>    $_.Runspace.EndInvoke($_.Status)<br>    $_.Runspace.Dispose()<br>}<br><br># Close and clean up the runspace pool<br>$runspacePool.Close()<br>$runspacePool.Dispose()<br><br># Display results<br>$runspaceResults | ForEach-Object {<br>    Write-Host &quot;Upload status for $($_.Runspace.AddArgument[0]): $($_.Runspace.AddArgument[1].Result)&quot;<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=419b0e6ae2ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Nested Zip File Extraction using PowerShell: Unleashing the Power of Automation]]></title>
            <link>https://ajithnagarajan21.medium.com/simplifying-nested-zip-file-extraction-using-powershell-unleashing-the-power-of-automation-8fa35e3849e4?source=rss-4a72af06361------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fa35e3849e4</guid>
            <category><![CDATA[nested]]></category>
            <category><![CDATA[unzip]]></category>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[unzipnestedfiles]]></category>
            <dc:creator><![CDATA[Ajith Nagarajan]]></dc:creator>
            <pubDate>Sat, 01 Jul 2023 16:19:58 GMT</pubDate>
            <atom:updated>2023-07-01T16:19:58.773Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-expanding digital landscape, managing and extracting multiple nested zip files can become a daunting task. However, PowerShell, a versatile scripting language developed by Microsoft, comes to the rescue with its powerful automation capabilities. In this article, we will explore how PowerShell can simplify the process of unzipping multiple nested zip files and unleash the power of automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*t-5bWmf2-p7pMmsuPpJrdg.jpeg" /></figure><h4>Understanding the Challenge of Nested Zip Files:</h4><p>Nested zip files are zip archives that contain other zip files, creating a complex hierarchy. Manually extracting these files can be time-consuming, error-prone, and tedious, especially when dealing with multiple layers of nesting. PowerShell provides an elegant solution to automate this process, streamlining nested zip file extraction.</p><h4>Introducing the PowerShell Script:</h4><p>To tackle the task of unzipping multiple nested zip files, we will utilize a PowerShell script. This script leverages PowerShell’s built-in functionality and .NET Framework libraries to traverse directories, identify zip files, extract their contents, and handle any level of nesting. The script is designed to automate the entire process, eliminating the need for manual intervention.</p><h3>PowerShell Script: Unzipping Multiple Nested Zip Files</h3><pre>function UnzipFiles($path) {<br>    Add-Type -AssemblyName System.IO.Compression.FileSystem<br><br>    $zipFiles = Get-ChildItem -Path $path -Filter &quot;*.zip&quot; -Recurse<br><br>    foreach ($zipFile in $zipFiles) {<br>        $zipFileDir = Split-Path -Path $zipFile.FullName -Parent<br>        Write-Host &quot;Extracting: $($zipFile.FullName)&quot;<br>        [System.IO.Compression.ZipFile]::ExtractToDirectory($zipFile.FullName, $zipFileDir)<br>        Remove-Item -Path $zipFile.FullName<br>    }<br><br>    $nestedZipFiles = Get-ChildItem -Path $path -Filter &quot;*.zip&quot; -Recurse<br><br>    if ($nestedZipFiles.Count -gt 0) {<br>        Write-Host &quot;Found nested zip files. Extracting...&quot;<br>        UnzipFiles($path)<br>    }<br>}<br><br># Provide the path where your zip files are located<br>$zipPath = &quot;C:\Path\To\Your\Zip\Files&quot;<br><br>UnzipFiles($zipPath)</pre><h4>Exploring the PowerShell Script:</h4><p>Walk readers through the provided PowerShell script, explaining its various components and their significance. Highlight the use of the Get-ChildItem cmdlet to recursively find zip files, the Write-Host cmdlet for displaying progress during extraction, and the System.IO.Compression.FileSystem class for unzipping files. Emphasize the recursive nature of the script, which enables it to handle nested zip files at any depth.</p><h4>Running the Script:</h4><p>Guide readers on how to execute the script by saving it with a .ps1 extension and running it in the PowerShell console. Demonstrate how to adjust the script to specify the path where the zip files are located. Encourage readers to test the script on a sample set of zip files to gain familiarity and confidence.</p><h4>Benefits of Automation:</h4><p>Discuss the advantages of using PowerShell for nested zip file extraction. Highlight the time-saving aspect, as the script automates the entire process, freeing up valuable time for other critical tasks. Mention the reduction in human errors and increased efficiency achieved through automation. Share personal anecdotes or real-world scenarios to illustrate these benefits.</p><h4>Customizations and Advanced Functionality:</h4><p>Empower readers to explore further customization options based on their specific requirements. For example, they can enhance the script to handle password-protected zip files, add error handling, or log the extraction process. Encourage them to dive deeper into PowerShell’s capabilities, such as integrating the script into larger automation workflows or utilizing advanced PowerShell modules.</p><h4>Conclusion:</h4><p>By leveraging the power of PowerShell, unzipping multiple nested zip files becomes a breeze. PowerShell’s automation capabilities, versatility, and extensibility empower IT professionals and system administrators to streamline complex file extraction tasks. Embrace PowerShell’s elegance and harness the power of automation to unlock productivity gains and simplify your workflow.</p><p>Please feel free to leave a comment or your feedback if you enjoyed what you read in the meantime :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fa35e3849e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with User-Defined Functions in SQL Server]]></title>
            <link>https://ajithnagarajan21.medium.com/working-with-user-defined-functions-in-sql-server-e51ed202fdc0?source=rss-4a72af06361------2</link>
            <guid isPermaLink="false">https://medium.com/p/e51ed202fdc0</guid>
            <category><![CDATA[scalar-function]]></category>
            <category><![CDATA[table-valued-function]]></category>
            <category><![CDATA[function]]></category>
            <category><![CDATA[sql-functions]]></category>
            <category><![CDATA[user-defined-functions]]></category>
            <dc:creator><![CDATA[Ajith Nagarajan]]></dc:creator>
            <pubDate>Fri, 21 Apr 2023 04:58:47 GMT</pubDate>
            <atom:updated>2023-04-21T04:58:47.433Z</atom:updated>
            <content:encoded><![CDATA[<p>User-defined functions in SQL Server will be covered in this tutorial. We’ll learn how to use user-defined functions, which come in two types: scalar-valued functions and table-valued functions.</p><p>Scalar valued function always returned a scalar value</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*IdE_D8fI-n643NFwuKmxFw.png" /><figcaption><strong>Scalar Function</strong></figcaption></figure><p><strong>Lets go to create a scalar value function</strong></p><pre>Create function add_ten(@num int) Returns int As<br>BEGIN Return( @num+10)<br>end</pre><p><strong>Select the function</strong></p><pre>select dbo.add_ten(5);</pre><p>I used the function, and it produced results that were 15, so it was effective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*adSPBj8fIluggW1FqpyVbQ.png" /><figcaption>Result 1</figcaption></figure><p>Following that, we’ll examine the table value function.</p><p><strong>Table Valued Function</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*astKsvASWZTkWP-GvtiMQw.png" /><figcaption><strong>The table value function returns a table instead of a scala</strong></figcaption></figure><p>In this article we will see the Azure Sql Functions (Create, Alter and Drop) Statements</p><p>Below I mentioned the format of all statements, please find the below statements</p><pre>CREATE FUNCTION [database_name.]function_name (parameters)<br>RETURNS data_type AS<br>BEGIN<br>    SQL statements<br>    RETURN value<br>END;</pre><pre>ALTER FUNCTION [database_name.]function_name (parameters)<br>RETURNS data_type AS<br>BEGIN<br>    SQL statements<br>    RETURN value<br>END;</pre><pre>DROP FUNCTION [database_name.]function_name;</pre><p>Lets see with the examples</p><p>Step 1 : Create the Function</p><p>Before I have create a simple employee table and insert two records</p><pre>CREATE TABLE [dbo].[employee](<br>    [EmpID] [int] IDENTITY(1,1) NOT NULL,<br>    [EmpName] [nvarchar](128) NOT NULL<br>);</pre><pre>insert into employee values (&#39;Ajith&#39;)<br>insert into employee values (&#39;Aarthy&#39;)<br>insert into employee values (&#39;Nagarajan&#39;)<br>insert into employee values (&#39;Kala&#39;)</pre><p>Now I will create a Function</p><pre>Create FUNCTION Employee_details (<br>    @employee_id int<br>)<br>RETURNS TABLE AS<br>RETURN<br>    SELECT *<br>    FROM [dbo].[employee]<br>    WHERE EmpID = @employee_id;</pre><p>Call the Function</p><pre>Select * from Employee_details(2)</pre><p>It will return the only one record which contain the empid number is 2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*XU0J5Wu8FV049YTEqauYFA.png" /></figure><p>Alter the function change filter and parameter condition for empName instead of empid</p><pre>Alter FUNCTION Employee_details (<br>    @empName varchar(20)<br>)<br>RETURNS TABLE AS<br>RETURN<br>    SELECT *<br>    FROM [dbo].[employee]<br>    WHERE EmpName = @empName;</pre><p>Call Statement for the new alter function</p><pre>Select * from Employee_details(&#39;Ajith&#39;);</pre><p>It will return the record which record contain the empname is Ajith</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*0TlgIOqnsC_J5c-OVmfXYg.png" /><figcaption><strong>Result</strong></figcaption></figure><p>Here we can add 10 in all user id using the scalar function and return the value in table structure</p><pre>Create function add_ten(@num int)<br>Returns int <br>As <br>BEGIN <br>Return(<br>@num+10<br>)<br>End</pre><p>call statement:</p><pre>select *,dbo.add_ten(empid) as emp_add_10 from employee;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*3SjE6dY5opbpzIq4hM0oTg.png" /><figcaption><strong>Result</strong></figcaption></figure><p><strong><em>Conclusion:</em></strong></p><p><em>User-defined functions are a very powerful tool. You should use them when you’ll have a calculation you’ll repeat throughout your database. E.g. calculating the tax on different products based on predefined rules (that can change during the time), is one good candidate for the function. You put all rules there, pass parameters to the function, and as a result get the desired number. But, as with everything else, do not overuse them.</em></p><p>Please feel free to leave a comment or your feedback if you enjoyed what you read in the meantime :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e51ed202fdc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Essential Azure Data Factory Interview Questions]]></title>
            <link>https://ajithnagarajan21.medium.com/10-essential-azure-data-factory-interview-questions-c1115831f4e4?source=rss-4a72af06361------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1115831f4e4</guid>
            <category><![CDATA[azure-data-factory]]></category>
            <category><![CDATA[azure-interview-question]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[azure-interview]]></category>
            <category><![CDATA[adf-interview-questions]]></category>
            <dc:creator><![CDATA[Ajith Nagarajan]]></dc:creator>
            <pubDate>Wed, 26 Oct 2022 08:14:31 GMT</pubDate>
            <atom:updated>2022-10-26T08:29:20.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*lXXE8XIb1XfhmotB4AmcmQ.png" /></figure><ol><li><strong>Is Azure Data Factory ETL or ELT ?</strong></li></ol><p>Azure data factory is a managed cloud service that’s build for these complex hybrid extract transform load (ETL) and extract load transform(ELT) and data integration project</p><p>With Azure Data Factory, it is fast and easy to build code-free or code-centric <strong>ETL and ELT processes</strong>.</p><p>2. <strong>what is global parameters in azure data factory ?</strong></p><p>Global parameters are constants across a data factory that can be consumed by a pipeline in any expression. They’re useful when you have multiple pipelines with identical parameter names and values</p><p>3. <strong>What is parameters in azure data factory ?</strong></p><p>You can use parameters <strong>to pass external values into pipelines, datasets, linked services, and data flows</strong>. Once the parameter has been passed into the resource, it cannot be changed. By parameterizing resources, you can reuse them with different values each time</p><p><strong>EX : </strong>“name”: “<a href="http://twitter.com/pipeline">@pipeline</a>().parameters.password”</p><p>4. <strong>What is the use of variable in azure data factory ?</strong></p><p>Variables in the adf pipeline <strong>provide the functionality to temporary hold the values</strong>. They are used for similar reason like we do use variables in the programming language. Variables are available inside the pipeline and it can be set from inside the pipeline.</p><p>5.<strong> What are the advantages of Microsoft Azure?</strong></p><p>Scalability on Demand,<br>Cost-efficiency,<br>Data Backup and Disaster Recovery,<br>Secure Identity &amp; Access Management (IAM),<br>Data Security</p><p>6. <strong>Can i pass parameters to a pipeline run ?</strong></p><p>Users can pass parameters into their pipelines when triggering a new run of a pipeline through the API.</p><p>7. <strong>What does lookup activity do in Azure Data Factory?</strong></p><p><strong>Lookup activity can retrieve a dataset from any of the data sources supported by data factory and Synapse pipelines</strong>. You can use it to dynamically determine which objects to operate on in a subsequent activity, instead of hard coding the object name. Some object examples are files and tables.</p><p><strong>Lookup activity reads and returns the content of a configuration file or table</strong>. It also returns the result of executing a query or stored procedure. The output can be a singleton value or an array of attributes, which can be consumed in a subsequent copy, transformation, or control flow activities like ForEach activity.</p><p>8.<strong> How does Azure optimize costs?</strong></p><p>Shut down unused resources<br>Set up budgets and allocate costs to teams and projects<br>Right-size underused resources<br>Clean up the unwanted datas</p><p>9.<strong> Is rerun the particular activity in azure data factory ?</strong></p><p><strong>Azure Data Factory now allows you to rerun activities inside your pipelines</strong>. You can rerun the entire pipeline or choose to rerun downstream from a particular activity inside your data factory pipelines. You can also view the rerun history for all your pipeline runs inside the data factory.</p><p>10. <strong>How much is the limit on the number of integration runtime?</strong></p><p>There is no hard limit on the number of integration runtime instances you can have in a data factory. There is, however, a limit on the number of VM cores that the integration runtime can use per subscription for SSIS package execution</p><p>There you have it, then. I sincerely hope that you were able to benefit in some manner from reading the questions and answers. I will continue to post additional questions about Azure Storage Accounts, Logic Apps and the rest of the resources in Azure’s ecosystem.</p><p>Please feel free to leave a comment or your feedback if you enjoyed what you read in the meantime :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1115831f4e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Azure Logic Apps, automate data loading from email attachments.]]></title>
            <link>https://medium.com/bi3-technologies/using-azure-logic-apps-automate-data-loading-from-email-attachments-20af8b4fe646?source=rss-4a72af06361------2</link>
            <guid isPermaLink="false">https://medium.com/p/20af8b4fe646</guid>
            <category><![CDATA[attachment]]></category>
            <category><![CDATA[azure-logic-apps]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[outlook]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Ajith Nagarajan]]></dc:creator>
            <pubDate>Fri, 05 Nov 2021 07:51:18 GMT</pubDate>
            <atom:updated>2022-01-21T05:59:31.602Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLx_2AotQZZR-_dqBfncZQ.jpeg" /></figure><ul><li>Azure Logic apps to read an email, get its attachment</li><li>Save the attachment into the Azure Storage container blob</li><li>Send email confirmation once the attachment is uploaded to the Azure container</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KqEmqlPgJXGVvYpQVuPpUw.png" /></figure><h3>Extract Email attachment</h3><p>Let’s assume that we received a CSV file for import in the outlook.com mailbox. To create a workload, we can use a suitable template, or we can start with a blank logic app template, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kIqZs07av7_rvW_7-piFdg.png" /></figure><p>In the app designer, search for Outlook. It returns all matched components for it. Click on the <strong>Outlook.com</strong> component as a source component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*1_aS7yBAGaWzublHCV2aJA.png" /></figure><p>It opens a list of items in the triggers. We want to generate an action when a new email arrives in the Inbox of outlook.com. Therefore, click on <strong>When a new email arrives</strong> from the <strong>Triggers</strong> menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*QqE5ALltyD7FTjEPPh5REg.png" /></figure><p>You need to sign in to Outlook.com with your credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*L_TdG810huoRLFsD7JzUVA.png" /></figure><p>In the configuration, enter the following details:</p><ul><li>Folder: Inbox</li><li>Importance: Any</li><li>Only with Attachments: Select Yes because we wanted to upload email attachments into the Azure blob container</li><li>Include attachments: Yes</li><li>From: Usually, we receive an email from a specific email address such as vendor email id. Therefore, enter the email id in the field</li><li>Subject filter: We can further filter emails from the Inbox using a specific subject filter. Here, we want to check emails with the subject line — Azure Data Import CSV</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*30QNCFw1dDICelfwz65vyA.png" /></figure><p>Click on +New step. Now, we need to define what action you need to take once a new email arrives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*5P-OOT2rnk7yplpMQdvavw.png" /></figure><p>Click on Outlook.com and navigate to actions, select <strong>Get attachment.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*eEKvkk0r1DzfpNtF-8TL_A.png" /></figure><p>In the <strong>Get attachment</strong> configuration, it requires configuration for Message Id and Attachment Id.</p><ul><li><strong>Message Id</strong>: Click on the Add dynamic content and select <strong>Message id</strong> as shown below</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-qAXkdU1IVgLwESe2XYfpg.png" /></figure><p><strong>Attachment Id</strong>: Here, we need to map the id of the attachment we want to download. Click on Add dynamic content and select <strong>Attachments Attachment id.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2KI9wlX_p5UZUrhBNW4_4A.png" /></figure><p>It displays <strong>For each</strong> block for attachments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*YyrCBi49Ky9L7Ze80JeZMg.png" /></figure><h3>Configure Azure Blob Storage destination</h3><p>Next, click on <strong>Add an action</strong>. In the next step, we define the target storage location for storing these email attachments. In this demo, my destination storage in an Azure blob container. We already configured the input container for storing these files. Therefore, search for <strong>Azure Blob Storage.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*eUUT78cAGj2_ZlxbGcV__g.png" /></figure><p>To upload a file into the Azure blob, select the <strong>Create blob</strong> from the actions list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*Sh-dP3UKksQNa-ibC4Mzqw.png" /></figure><p>It automatically lists the azure storage account with the resource group and location. If you want a different storage account, you can enter the details manually as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*bxSzxCxre5Fi1JRsvCRlLw.png" /></figure><p>Select your azure storage account and enter a connection name, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*LP4tudHbkuNnxC5-lqN96g.png" /></figure><p>It asks for the following configuration of creating the blob action item:</p><ul><li><strong>Folder path: </strong>Click on the folder icon and select the container to save the email attachment. Here, we want to save these files into the /input container</li><li><strong>Blob Name: </strong>In this configuration, we specify the blob container file format. For this purpose, I use the dynamic content option — Attachment Name</li></ul><p>Click on the blob name text box and click on Add dynamic content and select Attachment Name</p><ul><li><strong>Blob content: </strong>In the blob content, select Attachment Content from the dynamic content.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*sjgu8NoVthrWpFbyTg0Xtg.png" /></figure><p>Let’s execute this azure logic app to validate things are working fine as expected. Until now, we implemented the following logic.</p><ul><li><em>When a new email arrives in specified Outlook.com id, and it has a subject — Azure Data Import CSV, the logic app saves its attachment into an azure blob storage container</em></li></ul><p>For demonstration purposes, I created the following CSV file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BWR9kcun2U9Q9yJeKL5cjQ.png" /></figure><p>Click on Run in the logic apps designer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*rZISnYaaUwELzcbKY9jx7g.png" /></figure><p>Create an email with the subject line that we specified during logic app configuration and send it to the configured email address. Here, you can see the email I sent with the Products.csv file as an attachment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J7ypHHw2HrvJNmYB5PIKIg.png" /></figure><p>We received the email in my configured email Inbox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6ctFKvdgfN9BB3rXBAAXQ.png" /></figure><h3>About Us</h3><p>Bi3 has been recognized for being one of the fastest-growing companies in Australia. Our team has delivered substantial and complex projects for some of the largest organizations around the globe and we’re quickly building a brand that is well known for superior delivery.</p><p><em>Website : </em><a href="https://bi3technologies.com/"><em>https://bi3technologies.com/</em></a></p><p>Follow us on,<br><em>LinkedIn : </em><a href="https://www.linkedin.com/company/bi3technologies"><em>https://www.linkedin.com/company/bi3technologies</em></a><em><br>Instagram : </em><a href="https://www.instagram.com/bi3technologies/"><em>https://www.instagram.com/bi3technologies/</em></a><em><br>Twitter : </em><a href="https://twitter.com/Bi3Technologies"><em>https://twitter.com/Bi3Technologies</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20af8b4fe646" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bi3-technologies/using-azure-logic-apps-automate-data-loading-from-email-attachments-20af8b4fe646">Using Azure Logic Apps, automate data loading from email attachments.</a> was originally published in <a href="https://medium.com/bi3-technologies">BI3 Technologies</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing a Microservice using ASP.NET with MySQL]]></title>
            <link>https://ajithnagarajan21.medium.com/developing-a-microservice-using-asp-net-with-mysql-fcbf7c749c96?source=rss-4a72af06361------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcbf7c749c96</guid>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[microservice-architecture]]></category>
            <dc:creator><![CDATA[Ajith Nagarajan]]></dc:creator>
            <pubDate>Sat, 30 Jan 2021 07:17:53 GMT</pubDate>
            <atom:updated>2021-01-30T07:17:53.241Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating an ASP.NET Core Application Solution</h3><ol><li>Open Visual Studio.</li><li>On the start window, choose to <strong>create a new project</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jOR1n4lIlO6HMzLiqbhziA.png" /></figure><p>3. On the <strong>Create a new project</strong> window, enter or type <em>ASP.NET</em> in the search box. Next, choose <strong>C#</strong> from the Language list, and then choose <strong>Windows</strong> from the Platform list.</p><p>4. After you apply the language and platform filters, choose the <strong>ASP.NET Core Web Application</strong> template, and then choose <strong>Next</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tkL9S0PEgBs2gh-HZMulZw.png" /></figure><p>5. In the <strong>Configure your new project</strong> window, type or enter SampleMicroservice in the <strong>Project name</strong> box. Then, choose <strong>Create</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wX63_IpWLooK7MeIcAIhOQ.png" /></figure><p>6. Next, choose API as the type of the project and make sure that the “Enable Docker Support” option is selected with OS type as Linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvRmRtfayj8sq0XmiiSo1A.png" /></figure><p>7. The solution will look as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bvgpvOcA3hCH3b1bQO6bUQ.png" /></figure><h3>Adding Models</h3><ol><li>Add a new folder named “Model” to the project.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCQ7lTmJtUial6xXFJUDhg.png" /></figure><p>2. In the Models folder, add a class named user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3bBOFkMYy7yUv5jiRyfj-g.png" /></figure><p>3. Choose the class and enter the class name, then click the add button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FzNJ8Kwvc9bWQsPc-WytyA.png" /></figure><p>4. Add a few properties like user Id, log_id, first_name, last_name, age, role_id to the user class</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AzHME6kiZlxXCYU0h-fRQg.png" /></figure><h3>Adding EF Core DbContext</h3><p>A database context is needed so that the models could interact with the database.</p><ol><li>Add a new folder named DBContexts to the project.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dWmDBi2VA3StW-y9gKoOlw.png" /></figure><p>2. Add a new class named userContext which includes the DbSet properties</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*33dSJkR73qFxjyccjYgGfQ.png" /></figure><p>3. Install Microsoft entityframework core</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cYEtG26EElA8oK9lToUmBg.png" /></figure><p>4. Add DbContext and entity to table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYMGFi6UmopknZJ-qVgmAg.png" /></figure><p>5. Add a connection string in the appsettings.json file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WP4osJLZ6Kw8uI_37AgUhA.png" /></figure><p>6. Open the Startup.cs file to add the MYSQL db provider for EF Core. Add the code services.AddEntityFrameworkMySQL().AddDbContext&lt;userContext&gt;(options =&gt;{options.UseMySQL(Configuration.GetConnectionString (“DefaultConnection”));});under ConfigureServices method. Note that in the GetConnectionString method the name of the key of the connection string is passed that was added in appsettings file.</p><p>Install Mysql data EnitityFrameWorkcore</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmneHLtBRMq_ZIkKsEabng.png" /></figure><h3>Adding Repository</h3><ol><li>Add a new folder named Repository in the project and add an Interface name IUserRepository in that folder. Add the methods in the interface that performs CRUD operations for User microservice.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EmpeY4KtBQBqb6rrJ9RcaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mvh1D1rQL5KANWjuVlMldg.png" /></figure><p>2. Add a new concrete class named UserRepository in the same Repository folder that implements IUserRepository. All these methods need implementation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nfanEBjfcqfF6GlZmUduLA.png" /></figure><p>Open the Startup class in the project and add the code as services.AddScoped&lt;IUserRepository, UserRepository&gt;(); inside the ConfigureServices method so that the repository’s dependency is resolved at run time when needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3MsoDOpVssHbpSN34jZUtA.png" /></figure><h3>Adding Controller</h3><ol><li>The microservice should have an endpoint for which a controller is needed, which exposes the HTTP methods to the client as endpoints of the service methods.</li><li>Right-click on the Controllers folder and add a new Controller as shown below:</li></ol><p>Step -1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AQ7BhJhk5vRqqGoMGygtcw.png" /></figure><p>Step -2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26v7L8nyOKJhjD1hRJR-Bw.png" /></figure><p>Step -3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uoJZ_a3QjpH3XJ3TnCMqsw.png" /></figure><p>Step -4</p><p>A controller can be deleted as it is not needed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VpCTpUqtLUpjP4IcAaDY2w.png" /></figure><p>Step -5</p><p><strong>Run the Microservice</strong></p><p>The service could be run via IIS Express i.e. Visual Studio default</p><p>Choose IIS Express in the Visual Studio as shown below and press F5 or click that IIS Express button itself</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rW9B8aFp_MrWMFfiPE6ceA.png" /></figure><p>Step -6</p><p><strong>GET</strong></p><p>Perform a GET request now with the records are shown as a JSON result response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rTSIFH6oNFgkGBwYrKa8YA.png" /></figure><p>Thanks for reading my story, Happy learning :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcbf7c749c96" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>