<?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 Sherifkunch on Medium]]></title>
        <description><![CDATA[Stories by Sherifkunch on Medium]]></description>
        <link>https://medium.com/@sherifkunch?source=rss-aaed242b970a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sMwI7cU1vHlkufQr5vDRFg@2x.jpeg</url>
            <title>Stories by Sherifkunch on Medium</title>
            <link>https://medium.com/@sherifkunch?source=rss-aaed242b970a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 19:44:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sherifkunch/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[Symphony of Efficiency: DevOps and DataOps]]></title>
            <link>https://medium.com/@sherifkunch/symphony-of-efficiency-devops-and-dataops-for-technological-symphony-e28e43b276f0?source=rss-aaed242b970a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e28e43b276f0</guid>
            <category><![CDATA[dataops]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Sherifkunch]]></dc:creator>
            <pubDate>Thu, 13 Jul 2023 13:27:17 GMT</pubDate>
            <atom:updated>2023-11-17T09:38:20.350Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you observed the increase of trending buzzwords in the IT industry, characterized by the common suffix “Ops”? <br>Notably, terms like <strong>DevOps</strong>, <strong>DataOps</strong>, <strong>MLOps</strong>, and many others have emerged as prominent examples of this phenomenon.</p><p>By writing this article I aim to provide an in-depth comparison analysis between <strong>DevOps</strong> and <strong>DataOps</strong>, two illustrious methodologies in the technology industry. I would like to explore the fundamental concepts, principles, and practices associated with each approach, highlighting their similarities and differences.</p><p>By examining their objectives, workflows, tooling, and cultural aspects, this article seeks to shed light on the distinct roles of <strong>DevOps</strong> and <strong>DataOps</strong> and how they contribute to the efficient delivery of software and data-driven projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DGqmrjt_u1VTLEeG85pO4Q.jpeg" /></figure><h3>DevOps</h3><p>DevOps is a set of practices, principles, and cultural philosophies that focus on improving collaboration and communication between software development (Dev) and IT operations (Ops) teams.</p><p>The primary goal of DevOps is to automate and streamline the software delivery process, enabling organizations to build, test, and release software more efficiently and reliably.</p><h3>What are the best practices of DevOps?</h3><p>In the amazing world of <strong>DevOps</strong>, applications no longer move slowly during deployment.</p><p>Instead, they rapidly update, thanks to the numerous practices including:</p><ul><li>Agile Project Management Methodologies,</li><li>Continuous Integration/Continuous Deployment (CI/CD) pipeline</li><li>Continuous Monitoring</li><li>Continuous Feedback</li><li>Automated Routine Tasks</li><li>Automated Testing</li></ul><p>Having all the above implemented will guarantee that DevOps has changed how we turn tech dreams into reality.</p><h3>Is DevOps a bunch of tools? 🛠️</h3><p>For me, DevOps is a work philosophy followed by an IT organization that incorporates many best practices like those listed above. And in order to establish a stable and scalable DevOps environment, tools are needed.</p><p>Based on what I’ve observed, numerous teams implement effective <strong>DevOps </strong>principles and practices, using tools like:</p><ul><li>Terraform</li><li>Git</li><li>ArgoCD</li><li>GitHub Workflows</li><li>Docker Containers</li><li>Kubernetes</li><li>Grafana and Prometheus</li><li>SonarQube</li><li>Ansible</li><li>Cloud Technologies</li></ul><p>Example of a CICD process that is crucial for the <strong>DevOps</strong> methodology:</p><p>CI/CD stands for Continuous integration.</p><p>This is a software development practice where code changes are frequently and automatically integrated into a shared repository.</p><p>The primary goal of CI is to detect and address integration issues early in the development cycle.</p><p>Continuous Deployment is an extension of CI.</p><p>It involves automatically deploying code changes to production or staging servers after they pass the CI tests.</p><p>Let’s assume that we already have a GitHub repository established with all the needed configurations. Our repository is configured to avoid committing large files in order to ensure the reliable performance of the GitHub service.</p><p>To ensure that we have a high level of security we would also have two-factor authentication. To avoid committing sensitive files we follow the recommended way from Github by adding .gitignore file.</p><blockquote>Read more about <a href="https://docs.github.ncsu.edu/github-best-practices/">GitHub Best Practices</a></blockquote><p>In our example, the infrastructure will be deployed via Terraform. It is a widely used infrastructure as code (IaC) tool that helps automate and manage the provisioning of infrastructure resources in a declarative and consistent manner.</p><pre>locals {<br>  tf_config = jsondecode(file(var.config_file_location))<br>}<br><br>module &quot;azure-aks-private&quot; {<br>  source = &quot;./modules/azure-aks-private&quot;<br>  resource_group_location             = local.tf_config.azure-aks-private.resource_group_location<br>  resource_group_name                 = local.tf_config.azure-aks-private.resource_group_name<br>  aks_cluster_name                    = local.tf_config.azure-aks-private.aks_cluster_name<br>  aks_node_pool_name                  = local.tf_config.azure-aks-private.aks_node_pool_name<br>  aks_node_pool_name_worker           = local.tf_config.azure-aks-private.aks_node_pool_name_worker<br>  aks_k8s_version                     = local.tf_config.azure-aks-private.aks_k8s_version<br>  aks_node_pool_vm_size               = local.tf_config.azure-aks-private.aks_node_pool_vm_size<br>  aks_node_pool_vm_size_worker        = local.tf_config.azure-aks-private.aks_node_pool_vm_size_worker<br>  aks_node_pool_enable_node_public_ip = local.tf_config.azure-aks-private.aks_node_pool_enable_node_public_ip<br>  aks_node_pool_max_pods              = local.tf_config.azure-aks-private.aks_node_pool_max_pods<br>  aks_node_pool_node_count            = local.tf_config.azure-aks-private.aks_node_pool_node_count<br>  aks_node_pool_node_count_worker     = local.tf_config.azure-aks-private.aks_node_pool_node_count_worker<br>  ....<br>  ....<br>}</pre><p>The tf_config file is a simple JSON file that contains all the values for the variables. Such files can be created for each stage with different values. The benefit here is that we specify the values in one place as a single source of truth.</p><pre>    &quot;azure-aks-private&quot;: {<br>        &quot;aks_cluster_name&quot;: &quot;cluster-name&quot;,<br>        &quot;aks_k8s_version&quot;:  &quot;1.25&quot;, <br>        &quot;aks_node_pool_name&quot;: &quot;sharedsvc&quot;,<br>        &quot;aks_node_pool_vm_size&quot;: &quot;Standard_F4s_v2&quot;,<br>        &quot;aks_node_pool_name_worker&quot;: &quot;worker&quot;,<br>        &quot;aks_node_pool_vm_size_worker&quot;: &quot;Standard_F16s_v2&quot;,<br>        &quot;aks_node_pool_enable_node_public_ip&quot;: false,<br>        &quot;aks_node_pool_max_pods&quot;: 30,<br>        &quot;aks_node_pool_node_count&quot;: 2,<br>        &quot;aks_node_pool_node_count_worker&quot;: 2,<br>        &quot;aks_node_pool_os_disk_size_gb&quot;: 512,<br>        &quot;aks_identity_name&quot;: &quot;aks-weu-ioi_bss_dtp&quot;<br>         ....<br>         ....<br>    }<br> <br></pre><p>A good practice to implement along with the infrastructure is the so-called GitOps approach. While it’s primarily used for deploying and managing applications in Kubernetes clusters, it can be used to manage infrastructure as code (IaC) projects.</p><p>Here’s how you can use ArgoCD to manage your Terraform infrastructure:</p><ol><li>Install ArgoCD</li><li>Set Up a Git Repository: Create a Git repository to store your Terraform configuration code. This Git repository will serve as the source of truth for your infrastructure code.</li><li>Structure Your Repository: Organize your Terraform code in a way that makes sense for your project.</li><li>Define ArgoCD Applications: In ArgoCD, you’ll define applications that correspond to your Terraform projects. These applications will specify the Git repository, path to the Terraform code, and other settings.</li><li>Sync Applications: ArgoCD will periodically sync the state of your applications with the state defined in your Git repository. When you make changes to your Terraform code and push them to your Git repository, ArgoCD will automatically apply those changes to your infrastructure.</li></ol><p>Now we need our CICD tool to be configured. We take the decision to incorporate GitLab as our CICD tool. You can use shared runners provided by GitLab or set up your own runners on your infrastructure.</p><p>GitLab CI/CD is configured using .gitlab-ci.yml files placed in the root directory of your GitLab project. This YAML file defines jobs, stages, runners, and other settings for your CI/CD pipeline.</p><p>In this example of .gitlab-ci.yml:</p><ul><li>We define a single stage called “build” using the stages keyword.</li><li>We define a job called build_docker_image within the &quot;build&quot; stage.</li><li>Inside the script section, we specify the commands to be executed as part of the job. In this case, we&#39;re building a Docker image with the tag &quot;my-app:latest&quot; using the docker build command.</li><li>We use the tags keyword to specify that this job should be executed on GitLab Runners with the &quot;docker&quot; tag. You&#39;ll need to have a GitLab Runner with the &quot;docker&quot; tag available to execute this job.</li><li>We store sensitive data, such as an API key, in GitLab Vault. GitLab Vault is a secure way to store and manage secrets. Alternatively, you can use different from GitLab Vault such as Azure key vault.</li><li>We define a job named docker_login that logs in to the GitLab Container Registry using the Docker credentials. This job will execute only on the master branch.</li></ul><pre><br># Define the stages of your CI/CD pipeline<br>stages:<br>  - build<br>  - test<br>  - push<br><br># Define your job to build a Docker container<br>build_docker_image:<br>  stage: build<br>  script:<br>    - echo &quot;Building Docker image...&quot;<br>    - docker build -t my-app:latest .<br><br># Define CI/CD variables for secrets<br>variables:<br>  DOCKER_USERNAME: $CI_REGISTRY_USER  # GitLab CI/CD provides predefined variables<br>  DOCKER_PASSWORD: $CI_JOB_TOKEN     # GitLab CI/CD provides predefined variables<br>  API_KEY:<br>    vault: my-vault-name              # Store sensitive data in GitLab Vault<br><br># Define Docker login job<br>docker_login:<br>  stage: build<br>  script:<br>    - echo &quot;Logging in to Docker Registry...&quot;<br>    - echo &quot;$DOCKER_PASSWORD&quot; | docker login -u &quot;$DOCKER_USERNAME&quot; --password-stdin $CI_REGISTRY<br><br># Define a SonarQube job to analyze the code<br>sonarqube_analysis:<br>  stage: test<br>  script:<br>    - echo &quot;Running SonarQube analysis...&quot;<br>    - sonar-scanner  # Make sure you have SonarQube Scanner installed and configured<br><br># Define a job to run tests (replace with your specific testing framework)<br>run_tests:<br>  stage: test<br>  script:<br>    - echo &quot;Running tests...&quot;<br>    # Add your testing commands here<br>  dependencies:<br>    - sonarqube_analysis  # Ensure SonarQube analysis is completed before testing<br><br># Define a job to push the Docker image to the registry<br>push_docker_image:<br>  stage: push<br>  script:<br>    - echo &quot;Pushing Docker image to GitLab Container Registry...&quot;<br>    - docker push $CI_REGISTRY_IMAGE:&lt;the-best-version&gt;-&lt;unique-id&gt;<br>  dependencies:<br>    - build_docker_image  # Ensure the Docker image is built before pushing</pre><p>The above pipeline will push the new version of the code only when build and test steps are successful. ✅ (steps 2,3,4,6)</p><p>Having a Kubernetes deployment.yaml manifest:</p><pre>apiVersion: apps/v1<br>kind: Deployment<br>metadata:<br>  name: my-app-deployment<br>spec:<br>  replicas: 3<br>  selector:<br>    matchLabels:<br>      app: my-app<br>  template:<br>    metadata:<br>      labels:<br>        app: my-app<br>    spec:<br>      containers:<br>      - name: my-app-container<br>        image: registry.gitlab.com/your-project-name/my-app:&lt;the-best-version&gt;-&lt;unique-id&gt;<br>        ports:<br>        - containerPort: 80<br><br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: my-app-service<br>spec:<br>  selector:<br>    app: my-app<br>  ports:<br>  - protocol: TCP<br>    port: 80<br>    targetPort: 80<br>  type: LoadBalancer</pre><p>We can add this step in the .gitlab-ci.yml, to be able to deploy (steps 7,8,9 in the diagram):</p><pre>deploy_to_kubernetes:<br>  stage: deploy<br>  script:<br>    - echo &quot;Deploying to Kubernetes...&quot;<br>    - kubectl apply -f deployment.yaml -f service.yaml<br>  environment:<br>    name: production  # Set the environment name for this deployment (optional)</pre><p>Alternatively, this deployment can be implemented via ArgoCD.</p><p>Analogically, this can be done in the sequence DEV-&gt;TEST-&gt;PROD.</p><p>The above pipeline will push the new version of the code only when the build and test steps are successful. (steps 2,3,4,6)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKXph5TKPaipMTxPsHt82Q.png" /></figure><blockquote>Here in step 5, you might ask me: <br>“We already did tests, during step 3, why do we need to test again?“<br>The tests in step 5 are the so called “integration tests”, which aim to ensure that these components work together correctly as a unified system.</blockquote><h3>DataOps</h3><p>DataOps, short for Data Operations, is a set of practices, principles, and technologies aimed at improving the collaboration, integration, and automation of data workflows within an organization.</p><p>Its primary goal is to streamline and accelerate the process of collecting, processing, and delivering data to various stakeholders, including data analysts, data scientists, and business users.</p><p>DataOps is often considered the evolution of traditional data management and analytics practices, just as DevOps revolutionized software development and IT operations.</p><p>What are the best practices of <strong>DataOps</strong>?</p><ul><li>Automate data ingestion, transformation, and deployment processes.</li><li>Apply version control practices to data artifacts, scripts, and configurations.</li><li>Use version control systems like Git to track changes, collaborate on data code, and maintain a history of modifications.</li><li>Implement CI/CD pipelines for data. This allows for automated testing, validation, and deployment of data pipelines, ensuring that changes are thoroughly tested before being deployed to production.</li><li>Build data quality checks and validation into your data pipelines</li></ul><h3>Example:</h3><p>Looking closely at the following diagram we have a common scenario in the world of data. We have 2 departments being in collaboration about data.</p><ol><li>The Business department usually asks for Data, so they can produce robust and adaptive analytics. The IT department on the other hand has to perform numerous steps to provide that data.</li></ol><p>2. They try to access data from a legacy system or a production system.</p><p>3. They need to add a copy of this data to a data warehouse.</p><p>4. Then provide it back to the business.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jAMGtjbFZj0tLYoo_LEUWw.png" /></figure><p>This sounds simple, right?</p><p>Unfortunately, in the real world it is not that simple, and here is the <strong>DataOps</strong> approach to resolve the following challenges:</p><ul><li>Traditional data management processes can be slow and time-consuming, delaying data delivery to business users. <strong>DataOps</strong> focuses on automating and streamlining data pipelines to accelerate data delivery.</li><li>Many organizations have data stored in different systems and formats, creating data silos. <strong>DataOps</strong> promotes the integration of data from various sources to provide a unified and consistent view of data.</li><li><strong>DataOps</strong> incorporates data quality checks and validation into the data pipeline to ensure high-quality data.</li><li>Many organizations often neglect data security and compliance. Ensuring data security and compliance with regulations like GDPR and HIPAA is a significant challenge. <strong>DataOps</strong> incorporates security and compliance practices into data pipelines to protect sensitive information.</li><li>Manual data extraction, transformation, and loading (ETL) processes are error-prone and time-consuming. <strong>DataOps</strong> automates these processes to reduce errors and increase efficiency.</li><li>Integrating data from diverse sources with different structures can be complex. <strong>DataOps</strong> uses tools and techniques to simplify data integration and transformation.</li><li>As organizations collect more data, they need to scale their data processes. <strong>DataOps</strong> provides scalability through automation and cloud-based solutions.</li><li>It can be difficult to monitor the health and performance of data pipelines and data assets. <strong>DataOps</strong> incorporates monitoring and logging to provide visibility into the data ecosystem.</li><li>Establishing and enforcing data governance policies can be challenging. <strong>DataOps</strong> helps organizations define and implement data governance practices to ensure data consistency and compliance.</li><li>Understanding the lineage of data, including its source and transformations, is crucial for data governance and auditing. <strong>DataOps</strong> tools often provide data lineage and traceability features</li></ul><h3><strong>BUSINESS CASE</strong></h3><p>Let’s assume that we have to create a data pipeline with an ETL process. For the purpose of the demo, we will be using Azure cloud provider as our primary base for the services that we will use to perform our tasks.</p><h4>What services do we need?</h4><ul><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/concepts-integration-runtime">Integration Runtime</a></li><li><a href="https://learn.microsoft.com/en-us/azure/data-factory/">Azure Data Factory</a></li><li><a href="https://learn.microsoft.com/en-us/azure/azure-functions/functions-overview?pivots=programming-language-csharp">Function apps</a></li><li>Destination data warehouse</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j1Wa1YCEdvV4cWhomrj_YQ.png" /></figure><p>When it comes to infrastructure, it is always a good practice to use the Infrastructure as Code approach. So, here again, I would recommend deploying all the needed Azure components via Terraform.</p><p>It ensures the Azure resources are provisioned consistently across different environments (e.g., development, staging, production), reducing the risk of configuration drift and errors caused by manual setup.</p><h3>Integration Runtime</h3><p>Provides data integration capabilities across different network environments. It could be self-hosted or fully in Azure. Integration Runtimes provide the necessary compute resources to execute activities such as:</p><h4>Tests</h4><p>To be certain that the data analytics pipeline is functioning properly, it must be tested. Testing of inputs, outputs, and business logic must be applied at each stage of the data analytics pipeline. Tests catch potential errors and warnings before they are released so the quality remains high.</p><p>For instance:</p><ul><li><strong>Validating Data Types</strong></li></ul><pre>SELECT * FROM orders_received WHERE quantity::text !~ &#39;^[0-9]+$&#39;;</pre><ul><li><strong>Counting Distinct Values</strong></li></ul><p>This technique helps you count the product codes in the “orders_received” table. It allows you to identify if there are multiple occurrences of the same product code, which could indicate data entry errors or duplicates.</p><pre>-- Getting all values appearing more than once<br>SELECT product_code, COUNT(*) AS count<br>FROM orders_received<br>GROUP BY product_code<br>HAVING COUNT(*) &gt; 1;</pre><ul><li><strong>Identifying Duplicates</strong></li></ul><p>This query helps find duplicate order numbers in the “orders_received” table. It allows you to spot any orders that might have been recorded multiple times, ensuring data accuracy and preventing potential errors.</p><pre>SELECT order_number, COUNT(*) AS duplicate_count<br>FROM orders_received<br>GROUP BY order_number<br>HAVING COUNT(*) &gt; 1;</pre><p>By implementing these data quality checks, you can trust the accuracy of your data and make reliable decisions based on high-quality information. Data quality is an ongoing process, and these techniques serve as essential tools to ensure the integrity and usefulness of your datasets.</p><h4>Reuse &amp; Containerize</h4><p>Data analytics team members typically have a difficult time leveraging each other’s work. Code reuse is a vast topic, but the basic idea is to componentize functionalities in ways that can be shared.</p><p>Complex functions, with lots of individual parts, can be containerized using a container technology like Docker. Containers are ideal for highly customized functions that require a skill set that isn’t widely shared among the team.</p><h4>Parameterize Your Processing</h4><p>The data analytics pipeline should be designed with run-time flexibility. Which dataset should be used?</p><p>Is a new data warehouse used for production or testing?</p><p>Should data be filtered?</p><p>Should specific workflow steps be included or not?</p><p>These types of conditions are coded in different phases of the data analytics pipeline using parameters. In software development, a parameter is some information (e.g. a name, a number, an option) that is passed to a program that affects the way that it operates.</p><p>With the right parameters in place, accommodating the day-to-day needs of the users and data analytics professionals becomes a routine matter</p><h3>Azure Data Factory</h3><p>In the world of big data, raw, unorganized data is often stored in relational, non-relational, and other storage systems.</p><p>However, on its own, raw data doesn’t have the proper context or meaning to provide meaningful insights to analysts, data scientists, or business decision-makers.</p><p>Big data requires a service that can orchestrate and operationalize processes to refine these enormous stores of raw data into actionable business insights.</p><p>Azure Data Factory is a managed cloud service that’s built for these complex hybrid extract-transform-load (ETL), extract-load-transform (ELT), and data integration projects.</p><p>More about Data Flow <a href="https://learn.microsoft.com/en-us/azure/data-factory/introduction">here</a>.</p><h3>Data Transformation (function apps)</h3><p>The data transformation could be achieved via Azure function apps.</p><p>The Azure function allows you to run automation for event-triggered code using fewer coding efforts without maintaining infrastructure in a serverless model. You can start deploying your code in up-to-date Azure cloud infrastructure resources.</p><ul><li>Azure functions support languages like C#, F#, JavaScript, node.js, and PowerShell.</li><li>You can use Azure Functions for any configured trigger — HTTPTrigger, TimerTrigger, QueueTrigger.</li><li>It supports deployment options such as tool-based (Visual Studio Code, Visual Studio), App Service managed (CI/CD pipelines, Container), and External pipelines (Azure pipelines, GitHub actions).</li><li>It supports cross-platform local development and hosting on both Windows and Linux.</li><li>We can monitor Azure functions using Application Insights and Azure Monitor.</li></ul><p>This is a simple example of such a function which simply returns the row count:</p><pre>using System;<br>    using System.Data.SqlClient;<br>     <br>    public static void Run(TimerInfo myTimer, ILogger log)<br>    {<br>        string SqlConnectionString =&quot;place your connection string;&quot;;<br>         SqlConnection conn = new SqlConnection(SqlConnectionString);<br>        conn.Open();<br>         SqlCommand command = new SqlCommand(&quot;TestSP&quot;, conn);<br>        command.CommandType = System.Data.CommandType.StoredProcedure;<br>        using (SqlDataReader reader = command.ExecuteReader())<br>        {<br>        if (reader.Read())<br>        {<br>            log.LogInformation($&quot;Successfully Executed Azure Function at:<br>     {DateTime.Now}&quot;);<br>            log.LogInformation($&quot;Row count processed: &quot;+ <br>    reader.GetInt32(0).ToString());<br>        }<br>        }<br>         conn.Close();<br>            <br>    }</pre><p>The function app can be scheduled to run at a certain time, for example, every 30 minutes. The Azure functions are event-based serverless options. Therefore, you can configure the events, and functions based on your requirement for running queries.</p><p>Why do we need stored procedures?</p><ul><li>Stored procedures can be used to perform data transformations and enrichment as part of ETL (Extract, Transform, Load) processes. By encapsulating data transformation logic in stored procedures, you can ensure consistency and reusability of transformation steps.</li></ul><p>More about Integration Runtime <a href="https://learn.microsoft.com/en-us/azure/data-factory/concepts-integration-runtime">here</a>.</p><h3>Data Warehouse</h3><p>While a data lake holds data of all structure types, including raw and unprocessed data, a data warehouse stores data that has been treated and transformed with a specific purpose in mind, which can then be used to source analytic or operational reporting.</p><p>This makes data warehouses ideal for producing more standardized forms of BI analysis, or for serving a business use case that has already been defined.</p><p>More About Data Warehouse <a href="https://learn.microsoft.com/en-us/azure/architecture/data-guide/relational-data/data-warehousing">here</a>.</p><h3>To summarize:</h3><p><strong>DevOps</strong> is important because it streamlines software development and operations, enabling faster delivery of software, while <strong>DataOps</strong> is crucial for efficient data management, ensuring high-quality data for informed decision-making.</p><h3><strong>OUTCOME</strong></h3><p><strong>DevOps</strong> and <strong>DataOps</strong> differ in their core <strong>focus</strong> areas, but there is one crucial common thread that unites them both — their work philosophy:</p><ul><li>Both <strong>DataOps</strong> and <strong>DevOps</strong> rely on automation to streamline processes and reduce manual effort</li><li>Both methodologies emphasize the importance of collaboration and effective communication between teams</li><li>Both <strong>DataOps</strong> and <strong>DevOps</strong> embrace the concept of continuous integration and delivery (CI/CD).</li><li><strong>DataOps</strong> and <strong>DevOps</strong> often align with Agile methodologies, which promote iterative and incremental development.</li><li>Both <strong>DataOps</strong> and <strong>DevOps</strong> prioritize quality assurance and testing</li><li>Continuous improvement is a core principle shared by both <strong>DataOps</strong> and <strong>DevOps</strong>.</li></ul><blockquote><em>“If a human operator needs to touch your system during normal operations, you have a bug.” — Carla Geiser, Google SRE</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e28e43b276f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to securely connect to your isolated VMs via Bastion host]]></title>
            <link>https://medium.com/@sherifkunch/how-to-securely-connect-to-your-isolated-vms-via-bastion-host-dce720d2be39?source=rss-aaed242b970a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dce720d2be39</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[bastion-host]]></category>
            <category><![CDATA[terraform]]></category>
            <dc:creator><![CDATA[Sherifkunch]]></dc:creator>
            <pubDate>Thu, 30 Mar 2023 14:50:33 GMT</pubDate>
            <atom:updated>2023-03-30T15:08:17.404Z</atom:updated>
            <content:encoded><![CDATA[<h4>Sourced from history a Bastion is a place that gives protection against an attack. This is the fortress from which one can resist attack.</h4><p>When it comes to Software Development, ensuring a high level of security is crucial. A lack of security measurements can cause extreme damage to any piece of software while compromising integrity, authentication, and availability.</p><p>We may face various use cases where we need to place instances in a private network. For example, if we want to avoid access to our backend server from the internet we can place it in a private subnet. But still, we will need a way to interact with this backend server even though it is placed inside a private network.</p><p>Deciding to use <strong>Azure Bastion Server</strong> is one reasonable way to manage access to an internal or private network from an external network. Bastion is also sometimes called a<em> </em><strong><em>“jump box” </em></strong>or<em> </em><strong><em>“jump server”</em></strong><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9TveX1zz2XqpEeIPMCChsA.jpeg" /></figure><p>Moreover, Azure Bastion is a fully managed service that provides secure and seamless Remote Desktop Protocol (<strong>RDP</strong>) and Secure Shell Protocol (<strong>SSH</strong>) access to <strong>VMs</strong> without any exposure through public IP addresses.</p><p>In this article, I’ll show you how to have a complemented secure SSH connection to a VM in a private subnet.</p><h3>Let’s dive in more technically</h3><p>Starting from scratch, I am about to create the following resources in Azure:</p><ul><li>Resource group</li><li>Vnet</li><li>BastionHostSubnet</li><li>Public and Private subnets</li><li>Bastion host</li><li>Virtual Machine</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*hnHu4o1363OLkCFmj6lTbA.png" /></figure><h4>Provision of the infrastructure using Terraform Modules</h4><p>Usually, new projects contain a small number of resources and files. But, after some releases and improvements, more resources and files are added to the projects. Having different infrastructure resources grouped into just one unified resource gives us the advantage of reusing them later with possible customizations without duplicating the resource blocks each time you require them.</p><p>All the modules are stored in a folder named<em> “modules”. </em>Every module is in a separate folder and contains 4 different files:</p><ul><li>main. tf</li><li>variables. tf</li><li>providers.tf</li><li>output.tf</li></ul><p>Moreover, outside the module folder, there is also the global <strong><em>main.tf</em></strong> terraform file which is the starting point when we trigger a terraform command.</p><pre># GLOBAL MAIN.TF FILE<br>module &quot;azure-core-infra&quot; {<br> source = &quot;./modules/azure-core-infra&quot;<br> ...<br>}<br><br>module &quot;bastion-host&quot; {<br>  source = &quot;./modules/bastion-host&quot;<br>  ...<br>} <br><br>module &quot;virtual-machine&quot; {<br> source = &quot;./modules/virtual-machine&quot;<br> ...<br>}</pre><h4>1. The “<strong>azure-core-infra</strong>” module.</h4><p>This module contains all the networking components and I would like to emphasize the attention to the “<strong>bastion_subnet</strong>” resource.</p><pre>resource &quot;azurerm_subnet&quot; &quot;bastion_subnet&quot; {<br>  name                 = var.bastion_subnet_name<br>  resource_group_name  = var.resource_group_name<br>  virtual_network_name = var.vnet_network_name<br>  address_prefixes     = var.bastion_address_prefix<br>  depends_on = [<br>    azurerm_virtual_network.vnet<br>  ]<br>}</pre><p>The Subnet used for the Bastion Host must have the name <strong>“AzureBastionSubnet”,</strong> the subnet mask must be at least a /26, and the subnet cannot contain additional resources. This “<strong>AzureBastionSubnet</strong>” is an important piece of the puzzle here since it acts as a <strong>DMZ</strong>.</p><p>The so-called “<strong>Demilitarized Zone</strong>” (<strong>DMZ</strong>) contains an organization’s exposed, outward-facing services, in our case the <strong>Bastion Host</strong>. The end goal of a demilitarized zone network is to allow an organization to access untrusted networks, such as the internet while ensuring its private network remains secure.</p><p>You may be wondering where are those <strong>var.tf_config </strong>variables are coming from. All the variables are loaded from a JSON file, where the exact values are specified. This approach is quite handy because you need to pass values in one place and just reuse them whenever else is needed.</p><pre>locals {<br>  tf_config = jsondecode(file(var.config_file_location))<br>}</pre><h4>2. Тhe “<strong>bastion-host</strong>” module.</h4><pre>resource &quot;azurerm_public_ip&quot; &quot;example&quot; {<br>  name                = var.public_ip_name<br>  location            = var.resource_group_location<br>  resource_group_name = var.resource_group_name<br>  allocation_method   = var.public_ip_allocation_method<br>  sku                 = var.public_ip_sku<br>}<br><br><br>resource &quot;azurerm_bastion_host&quot; &quot;example&quot; {<br>  name                = var.bastion_name<br>  location            = var.resource_group_location<br>  resource_group_name = var.resource_group_name<br>  tunneling_enabled   = var.bastion_tunneling_setting<br>  sku                 = var.bastion_sku<br>  ip_configuration {<br>    name                 = var.public_ip_configuration<br>    subnet_id            = var.subnet_id<br>    public_ip_address_id = azurerm_public_ip.example.id<br>  }<br>}</pre><p>For this demo, our Bastion requires a public IP with a standard <strong><em>SKU</em></strong> and the<strong><em> tunneling_enabled</em></strong> option. This will allow us to connect to the VM via the CLI afterward.</p><h4>3. The “virtual-machine” module</h4><p>The module contains all the needed stuff for the virtual machine. The flavor of the machine, a Network Security Group which contains all the allowed connections, os_disk, ssh keys, and other stuff.</p><pre># Create virtual machine<br>resource &quot;azurerm_linux_virtual_machine&quot; &quot;dtp_server&quot; {<br>  name                  = var.dtp_vm_name<br>  location              = var.resource_group_location<br>  resource_group_name   = var.resource_group_name<br>  network_interface_ids = [var.network_interface_id]<br>  size                  = var.dtp_vm_size<br><br>  os_disk {<br>    name                 = var.os_disk_name<br>    caching              = var.os_disk_caching<br>    storage_account_type = var.os_disk_storage_account_type<br>  }<br><br>  source_image_reference {<br>    publisher = var.source_image_publisher<br>    offer     = var.source_image_offer<br>    sku       = var.source_image_sku<br>    version   = var.source_image_version<br>  }<br><br>  computer_name                   = var.computer_name<br>  admin_username                  = var.admin_username<br>  disable_password_authentication = var.disable_password_authentication<br><br>  admin_ssh_key {<br>    username   = var.admin_ssh_key_username<br>    public_key = tls_private_key.example_ssh.public_key_openssh<br>  }  <br>}<br><br>resource &quot;azurerm_network_security_group&quot; &quot;my_terraform_nsg&quot; {<br>  name                = var.nsg_name<br>  location            = var.resource_group_location<br>  resource_group_name = var.resource_group_name<br><br>  security_rule {<br>    name                       = var.nsg_ssh_rule_name<br>    priority                   = var.nsg_ssh_rule_priority<br>    direction                  = var.nsg_ssh_rule_direction<br>    access                     = var.nsg_ssh_rule_access<br>    protocol                   = var.nsg_ssh_rule_protocol<br>    source_port_range          = var.nsg_ssh_rule_source_port_range<br>    destination_port_range     = var.nsg_ssh_rule_destination_port_range<br>    source_address_prefix      = var.nsg_ssh_rule_source_address_prefix<br>    destination_address_prefix = var.nsg_ssh_rule_destination_address_prefix<br>  }<br>}<br># Connect the security group to the network interface<br>resource &quot;azurerm_network_interface_security_group_association&quot; &quot;vmToNsg&quot; {<br>  network_interface_id      = var.network_interface_id<br>  network_security_group_id = var.network_security_group_id<br>}<br><br># Create (and display) an SSH key<br>resource &quot;tls_private_key&quot; &quot;example_ssh&quot; {<br>  algorithm = &quot;RSA&quot;<br>  rsa_bits  = 4096<br>}<br><br># Provide the ssh locally<br>resource &quot;local_sensitive_file&quot; &quot;admin_private_sshkey&quot; {<br>  content = tls_private_key.example_ssh.private_key_pem<br>  filename = &quot;./files/ssh-key&quot;<br>  file_permission = &quot;0400&quot;<br>}<br><br>resource &quot;local_file&quot; &quot;admin_public_sshkey&quot; {<br>  content = tls_private_key.example_ssh.public_key_pem<br>  filename = &quot;./files/key.pub&quot;<br>  file_permission = &quot;0400&quot;<br>}</pre><p>Terraform is creating public and private keys for us which are created locally in a specified path.</p><p>The keys could be stored more securely in Azure KeyVault or maybe Hashicorp Vault, depending on the use case.</p><p>After the infra is successfully provisioned, we can test the connection via the following commands:</p><pre>az network bastion tunnel --name &quot;&lt;name&gt;&quot; --resource-group &quot;&lt;resource-group-name&gt;&quot; --target-resource-id &quot;&lt;id&gt;&quot; --resource-port &quot;22&quot; --port &quot;50022&quot;  &gt; /dev/null 2&gt;&amp;1 &amp;<br>ssh -i &quot;&lt;key-path&gt;&quot; azureuser@127.0.0.1 -p 50022</pre><p>If you run the<em> </em><strong><em>az network bastion </em></strong>command for the first time, it may prompt you to install the bastion extension.</p><p>We can also run the SCP command like this:</p><pre>scp -i &quot;&lt;key-path&gt;&quot; -P 50022 some-file.txt azureuser@127.0.0.1:~</pre><p>I have created an <em>upload-via-bastion.sh </em>script which demonstrates the above commands:</p><pre>#!/bin/bash<br><br>az network bastion tunnel --name &quot;examplebastion&quot; --resource-group &quot;POC-Bastion-Host&quot; --target-resource-id &quot;/subscriptions/4307d060-3d4f-42dd-a5f8-5d44cd11f167/resourceGroups/POC-Bastion-Host/providers/Microsoft.Compute/virtualMachines/my-server&quot; --resource-port &quot;22&quot; --port &quot;50022&quot; &gt; /dev/null 2&gt;&amp;1 &amp; <br><br>echo &quot;sleep 3 seconds&quot;<br>sleep 3<br><br>echo &quot;Executing secure copy&quot;<br>scp -i &quot;files/ssh-key&quot; -P 50022 README.md azureuser@127.0.0.1:~<br>scp -i &quot;files/ssh-key&quot; -P 50022 variables.tf azureuser@127.0.0.1:~<br><br>echo &quot;sleep 1&quot;<br>sleep 1<br><br>kill -9 $(lsof -i -P -n | grep &quot;$(whoami)&quot; | grep &quot;50022&quot; | grep &quot;TCP&quot; | tr -s &quot; &quot; | cut -d &quot; &quot; -f 2)<br><br><br>#sudo lsof -i -P -n | grep LISTEN</pre><p>The script aims to:</p><ol><li>Establish the tunnel connection. (The connection needs some time, so we need to wait 3 seconds</li><li>Execute SCP command copying files locally to the virtual machine</li><li>Closes the tunnel connection by killing the process listening on port 50022 with TCP connection and started by $(whoami)</li></ol><p><strong>Link to my GitHub repository:</strong></p><ul><li><a href="https://github.com/sherifkunch/bastion-terraform">https://github.com/sherifkunch/bastion-terraform</a></li></ul><p>Opposite to the Bastion host approach is the following one:</p><p><a href="https://henriksylvesterpedersen.medium.com/you-dont-need-that-bastion-host-cd1b1717a9e7">You don&#39;t need that Bastion host</a></p><p>#DevOps #Azure #AzureBastion #Terraform</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dce720d2be39" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Personal impression why you should visit Galata, Istanbul]]></title>
            <link>https://medium.com/@sherifkunch/personal-impression-why-you-should-visit-galata-istanbul-d8d83968a859?source=rss-aaed242b970a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8d83968a859</guid>
            <dc:creator><![CDATA[Sherifkunch]]></dc:creator>
            <pubDate>Sun, 29 May 2022 09:25:49 GMT</pubDate>
            <atom:updated>2022-05-29T09:25:49.610Z</atom:updated>
            <content:encoded><![CDATA[<p><em>If one had but a single glance to give the world one should gaze on Istanbul.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2o2sTE6-gjrzw66Qh_tgw.jpeg" /></figure><p>It is not a secret that Istanbul itself is more like a country rather than a city. A huge ocean, with a vast variety of modernistic and historical perspectives.</p><blockquote>“If Istanbul was country itself, <strong>Galata</strong> would be its capital.”</blockquote><p>Located on the Europe continent, <strong>Galata</strong> is amazing place for visiting. There are many young people, many, many nice cafés with amazing drinks and food, huge diversity of craftsman shops and more.</p><h3><strong>1. Galata Itself</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dd5ygErt6N0SvI1WSpK7PQ.jpeg" /></figure><p>This is what is this article all about. This is the iconic tower called <strong>Galata</strong>.</p><p><strong>Galata</strong> Tower was built in 528 by the Byzantine emperor Anastasius Oilosuz, next to the Bosphorus, to guide the sailors.</p><p>There are many legends about the <strong>Galata</strong> tower.</p><p>For example, in Roman times, it was believed that couples who loved each other would get married when they first went up to the <strong>Galata</strong> tower. But if any of the couples had climbed to the tower before, this talisman would be broken.</p><h3><strong>2. Athmosphere</strong></h3><p>The all famous French fashion and shoe designer <strong>Christian Louboutin</strong> said:</p><blockquote>“Istanbul is inspiring because it has its own code of architecture, literature, poetry, music.”</blockquote><p><strong>Galata</strong> would be one of the biggest contributors to inspire people. I cannot lie, it inspired me as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGwubWOVGzPfzoQ_Uk16hQ.jpeg" /></figure><p>There are many craftsman shops where you find big assortment of handmade goods, like:</p><ul><li>Musical instruments</li><li>Knifes</li><li>Coffeé Clay cups</li><li>Clothes</li><li>Wooden souvenirs</li></ul><h3><strong>3. Restaurants and Cafés</strong></h3><blockquote>Laughter is brightest when food is best.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CilZbhVrvFWh99BIF8_G_A.jpeg" /></figure><p>Personal recommendations:</p><ul><li>Vitavien</li><li>Viyana Kahvesi</li><li>Saltbae Burger Galata</li><li>Georges Hotel Galata</li><li>Salon Galata</li></ul><h3><strong>4. Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_lDgpCaCfUWfrOQCPllmA.jpeg" /></figure><p>The neighborhood of <strong>Galata</strong> is built on the top of a hill, with a narrow cobblestones streets and mixture of tiny and colourful buildings.</p><p>Tip: <br>Airbnb offers an array of affordable and really nice appartments, meters from the tower itself.</p><h3><strong>5. Taksim Square</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N-lTY72FaXzJjR3SqEj1jA.jpeg" /></figure><p>Istanbul’s most famous street, pedestrianized Istiklal Caddesi (Independence Avenue), throbs day and night and offers a fantastic array of architectural sights, shops, treats, and throngs upon teeming throngs of people. At the avenue’s northeastern end is expansive Taksim Square, thought by many to be the very heart of the city, with many of Turkey’s most renowned restaurants and some of Europe’s most happening nightlife in close proximity. In striking contrast, Beyoglu’s less trafficked areas — such as the affluent Cihangir and the antiques district of Cukurcuma — exude Old World charm and provide contemplative calm and splendid diversion via an assortment of cozy cafes, attractive boutiques, and quiet lanes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8d83968a859" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>