<?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 Mariem Kharrat on Medium]]></title>
        <description><![CDATA[Stories by Mariem Kharrat on Medium]]></description>
        <link>https://medium.com/@kharrat-mariem?source=rss-7f839da06e00------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nZGMhyMq2pXwXScUFKTdkQ.jpeg</url>
            <title>Stories by Mariem Kharrat on Medium</title>
            <link>https://medium.com/@kharrat-mariem?source=rss-7f839da06e00------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:53:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kharrat-mariem/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[Customize your cloud-workstation with Microsoft DevBox]]></title>
            <link>https://kharrat-mariem.medium.com/customize-your-cloud-workstation-with-microsoft-devbox-da0f3c07e85c?source=rss-7f839da06e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/da0f3c07e85c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[microsoft-azure]]></category>
            <category><![CDATA[dev-box]]></category>
            <dc:creator><![CDATA[Mariem Kharrat]]></dc:creator>
            <pubDate>Mon, 01 Sep 2025 08:13:17 GMT</pubDate>
            <atom:updated>2025-09-01T08:13:17.715Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k49vQ4p0L2K0-TcSSLerPw.png" /></figure><p>Since the start of my career as a software engineer in 2014 and like many of you I’ve struggled to keep my development environment clean. The famous phrase <em>“it works in my laptop if it doesn’t work on the server it’s not my fault then</em> 😅<em>” </em>has lived on the back of every developer’s mind. As we grow and switch between projects (e.g., .NET, Java, legacy code) or juggle conflicting dependency versions ;Python, Node.js, etc. the challenge only intensifies. The worst part? When your manager ask you to <em>“help a new hire set up a development environment so they can get started on the project.” </em>Suddenly you’re in deep trouble and there’s no documentation to follow 😒.</p><p>Now that I’m a Solution Engineer, I see customers facing exactly those same challenges. Thankfully, technology has evolved and new services are available to help us overcome them. In the market today we have two main solutions: <strong>GitHub CodeSpaces</strong> and <strong>Microsoft DevBox</strong></p><p>In this article I’ll explain the differences between them and show how to deploy a DevBox for a specific project environment using a template.</p><h4>Github CodeSpaces</h4><p>I found GitHub CodeSpaces to be an incredibly efficient way to start development work without the usual setup hassle. It gives me a ready‑to‑code environment in the cloud that’s fully configured and connected to my GitHub repositories. Whether I’m working from my browser or using Visual Studio Code, everything is consistent and tailored to my project needs. It’s especially helpful when switching between tasks or onboarding new team members, everything just works out of the box.</p><p>When it comes to considerations, GitHub CodeSpaces projects run on Linux, which is very useful for projects like Angular, JavaScript frameworks, and .NET Core+.</p><h4>Microsoft DevBox</h4><p>After trying out GitHub CodeSpaces, I was curious to see how Microsoft DevBox compared and I have to say, I really liked the experience. Having a full cloud‑based workstation that’s already set up with everything I need for my project saved me a huge amount of time. I didn’t have to worry about configuring tools or syncing environments; I just launched a Dev Box and got straight to work. It felt like having a powerful, secure dev machine that I could access from anywhere, and it made switching between projects or collaborating with others incredibly smooth.</p><p>I was also exploring AI trends and installing tools such as LM Studio to run some Gen‑AI models. With DevBox I could install those tools on demand without worrying about messing up my local machine or impacting day‑to‑day work.</p><p>After eight months of experience, I found it to be a time‑saver and having a second workstation ready for your project is a huge benefit.</p><h4>Customising the image</h4><p>As part of my jobs is empowering my customers to enjoy their journey on the cloud and i had some special request to have specific custom image, and here where the fun begin :</p><p>First, everyone can built custom image where we can customize the OS version; the tools like M365 tools; Visual Studio Entreprise; Visual Studio Code and other..</p><p>Second, every developer gets a standalone Cloud PC that is billed by hour. If someone works on multiple projects (e.g., a .NET project and a Java project), they can spin up separate Dev Boxs perfect for legacy .NET Framework versions while you’re migrating to newer ones.</p><p>we spent somedays working on this request: “<em>We want a DevBox with VS Code pre‑loaded with specific extensions so the developer can sign in and start coding within the first hour.”</em></p><p>Before going into the solution i want to share with you some important information regarding customer images in Microsoft DevBox</p><p><strong>Configure Imaging for Dev Box Team Customisations</strong></p><ul><li>Use a YAML-based <strong>customisation file</strong> to define team-level configurations.</li><li>Attach a <strong>catalog</strong> containing the image definition to your Dev Center project.</li><li>Build <strong>reusable images</strong> to speed up Dev Box provisioning.</li><li>Permissions required include Platform Engineer and Project Admin roles.</li></ul><p>Learn more <a href="https://learn.microsoft.com/en-us/azure/dev-box/how-to-configure-dev-center-imaging">Configure Imaging for Dev Box Team Customizations — Microsoft Dev Box | Microsoft Learn</a></p><h4>YAML Example: VS Code with Python Extensions</h4><p>The VS Code extensions need to run in the user profile, so we use <em>user tasks</em> to install them.</p><pre>$schema: &quot;1.0&quot;<br>name: vscode-development-workstation<br>description: &quot;VS Code development environment with Python extensions and developer tools&quot;<br>image: microsoftwindowsdesktop_windows-ent-cpc_win11-22h2-ent-cpc-m365<br>tasks:<br>  - name: winget<br>    description: Install Visual Studio Code<br>    parameters:<br>      package: Microsoft.VisualStudioCode<br><br>  - name: winget<br>    description: Install Git<br>    parameters:<br>      package: Git.Git<br><br>  - name: winget<br>    description: Install Azure CLI<br>    parameters:<br>      package: Microsoft.AzureCLI<br><br>  - name: winget<br>    description: Install GitHub CLI<br>    parameters:<br>      package: GitHub.cli<br><br>  - name: winget<br>    description: Install Azure Developer CLI (azd)<br>    parameters:<br>      package: microsoft.azd<br><br>userTasks:<br>  - name: powershell<br>    description: Install VS Code extensions<br>    parameters:<br>      command: |<br>        code --install-extension ms-python.python<br>        code --install-extension ms-toolsai.jupyter<br>        code --install-extension ms-python.vscode-pylance</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*znYVe5Q-3ClU7ctEiU6BtQ.png" /></figure><p>This Solution was the outcome good collaboration with our Global Belt Team full of Experts and Special thanks to <a href="https://www.linkedin.com/in/eldrick-wega/"><strong>Eldrick</strong></a><strong> </strong>for his support and time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da0f3c07e85c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Application Landing Zone]]></title>
            <link>https://kharrat-mariem.medium.com/design-application-landing-zone-425738c08683?source=rss-7f839da06e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/425738c08683</guid>
            <category><![CDATA[application-modernisation]]></category>
            <category><![CDATA[azure-cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[landingzone]]></category>
            <dc:creator><![CDATA[Mariem Kharrat]]></dc:creator>
            <pubDate>Tue, 16 Jul 2024 20:06:10 GMT</pubDate>
            <atom:updated>2024-07-16T20:06:10.897Z</atom:updated>
            <content:encoded><![CDATA[<p>Last time I wrote about How to choose the right solution to deploy our application</p><p><a href="https://medium.com/@kharrat-mariem/how-to-choose-the-right-solution-to-deploy-my-application-8db413a57a6d">How to choose the right solution to deploy my application? | by Mariem Kharrat | Medium</a></p><p>In this article, I will look to necessary steps to design our web application landing zone;</p><p>The complexity of application deployment continues to grow in today’s rapidly evolving technology landscape. Factors such as application architecture, development technologies and deployment environments need to be carefully considered prior to release. One critical aspect that is often overlooked when considering the deployment environment is the design of the application landing zone (LZ). It is important to note that, although popularly considered, Landing Zones are not dependent on specific development technologies. They play a critical role in ensuring the smooth and efficient deployment of applications, regardless of the underlying technologies used.</p><p>Before we dive into the Application Landing Zone, let’s take a quick look at the <strong>Landing Zone</strong> (LZ) and why it’s a critical step in your environment design. In simple terms, an Azure Landing Zone is a foundational environment that provides the infrastructure, networking, security, and governance framework for you to host your applications in the cloud. It serves as the backbone of your Azure environment and lays the foundation for future deployments. The LZ plays a critical role in your environment design for several reasons, including standardisation, security, scalability, compliance, and cost management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_g2na8fS-TGM9onRhPyE2Q.png" /></figure><p><strong>Enterprise Landing zone architecture reference — </strong><a href="https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/landing-zone/design-areas"><strong>Azure landing zone design areas — Cloud Adoption Framework | Microsoft Learn</strong></a></p><p>Landing zone preparation and implementation is part of the first and the third phase(Ready) of the Cloud Adoption Framework; just right after the prioritization decisions made during strategy and plan conversation had a direct impact on the most appropriate Landing zone to support your application plan. The following are the most critical consideration when designing a Landing Zone for Web Application:</p><ul><li><strong>Application Architecture</strong>: Match the landing zone to the architecture of the application, whether monolithic, microservices or containerised.</li><li><strong>Dependencies</strong>: Ensure connectivity to external services or databases required by the application, taking into account containerised environments where applicable.</li><li><strong>Data Management:</strong> Choose the right data service for your storage needs like sql database, NoSQL DB or document DB; considering the evolution of the application on the future</li><li><strong>Performance</strong>: Optimize performance with caching, CDN usage, taking into consideration accessibility of the application .</li><li><strong>Compliance</strong>: Meet regulatory standards such as GDPR or HIPAA with proper security controls, ensuring compliance in both traditional and containerized environments.</li><li><strong>Authentication/Access</strong>: Implement authentication mechanisms such as B2C or MFA, ensuring compatibility with containerized environments if applicable.</li><li><strong>Monitoring</strong>: Use a monitoring solution for performance tracking, considering monitoring solutions suitable for containerized environments.</li><li><strong>Disaster Recovery:</strong> Plan for backup and disaster recovery with Azure Site Recovery, considering container-specific backup and recovery strategies if applicable.</li></ul><h3><strong>Web application Landing Zone Scenario:</strong></h3><p>A Company XYZ specialized on financial service has an application hosted on premise; the application has multiple component that we will look to together one by one</p><p>Application current architecture is as following</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJHnG9Bp8BC_Drl457dYzA.png" /><figcaption>XYZ current architecture</figcaption></figure><h3><strong>Let’s analyse what we have on the High level Architecture:</strong></h3><p>The application is multi-platform, with both Web and Mobile apps. It is container-based, featuring an API gateway along with 3 APIs and 2 databases. Here’s a closer look at each component:</p><p>When we took a closer look to the architecture with the Team we find the following:</p><p><strong>FrontEnd</strong>:</p><ul><li>Angular</li></ul><p><strong>API Gateway</strong></p><ul><li>API Gateway with Ocelot</li></ul><p><strong>Backend API</strong></p><ul><li>First API:.NET Core API focused on the business logic</li><li>Second API: NodeJS API focused on analytics logic</li><li>Third API : Utilized for static tasks and complex treatment</li></ul><p><strong>DataBases</strong></p><ul><li>First DataBase: MSSQL 2019 deployed on Windows server</li><li>Second DataBase: Mongodb deployed on Linux Server</li></ul><p>Upon inquiring with XYZ’s Team about their requirements for transitioning to the cloud, they responded:</p><p>“We aim to optimize our Ops and Dev team’s time and minimize changes to the environment while ensuring readiness for the cloud without compromising security aspects.”</p><p>Upon receiving this response, we began contemplating a landing zone architecture that we could propose to the team.</p><p><strong>As first step,</strong> we looked at the services that we can choose complying with XYZ’s Team requirement:</p><ol><li>We will propose keeping the K8S cluster and we will take advantage of the <strong>Azure K8S Service</strong> and deploy the container to the <strong>Azure container registry</strong></li><li>We will <strong>optimize the time of the administration</strong> of both Databases and we will propose modernisation by using PaaS services for <em>MSSQL </em>we take advantages of the <strong>Azure SQL Database </strong>and for the <em>MongoDB</em> we will propose <strong>Azure CosmosDB</strong></li></ol><p><strong>As second,</strong> step we need to look to the holistic landing zone from the consideration we earlier mention it on the article; we already treated <strong>the application architecture, the dependencies and the data management </strong>during the first step and now will go over the rest of the areas of focus:</p><ul><li><strong>Authentication/Access: </strong>To make sure the accessibility to our services secure; first we propose a Hub&amp; Spoke typologie to prevent direct access to the all services for administration, deployments, updates. since the application is accesible from external users we propose Application Gateawy WAF to manage and secure the traffic to the application</li><li><strong>Compliance: </strong>To meet regulatory standards that customer needs to follow; we proposed the use of Microsoft Defender for Cloud(Microsoft XDR solution) first to protect our applications from cyber threats and vulnerabilities and within Microsoft defender for cloud is highly recommended the use of the regulatory compliance feature in order to follow the environment compliance score.</li><li><strong>Monitoring: </strong>As we may all know that monitoring is critical component for application and cloud based solutions which will assure the continuity and evolvement of the solution. We propos Azure Monitor specifically; application insight, container, monitor for azure SQL and for Azure cosmos DB with this we have 4 monitoring solutions in one. where we can be also using azure Monitor to monitor VMs, Storage accounts , Key vaults, Azure Cache for redis and many more.</li><li><strong>Disaster Recovery : </strong>To ensure the continuity and availability of the application, we propose that the customer first secures a backup of all application data using Azure Backup. We also need to consider scenarios where the application may need to be available in a region other than the primary deployment region. To achieve this, for the databases, the customer can use the<strong> built-in replication features of Cosmos DB and SQL Database</strong>. For the <em>AKS cluster</em>, the customer has two options: implement an Active-Active environment (High Availability) with a <strong>multi-region deployment</strong> or use <strong>Velero</strong>, a VMware technology, for Kubernetes disaster recovery.</li></ul><p>And we that we can share the first draft for our application landing zone</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCJe_jqD4WI-P4JcH906PA.jpeg" /><figcaption>Application Landing Zone based on Scenario</figcaption></figure><p>The architecture we propose is flowing Microsoft Azure landing zone best practices and based on <a href="https://github.com/Azure/Enterprise-Scale/tree/main/docs/reference/treyresearch">Enterprise-scale for small enterprises landing zone</a> and <a href="https://learn.microsoft.com/en-us/azure/architecture/reference-architectures/containers/aks/baseline-aks">Baseline architecture for an AKS cluster — Azure Architecture Center | Microsoft Learn</a>.</p><p>Thank you for reading the article! I hope is useful for you and your business 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=425738c08683" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to choose the right solution to deploy my application?]]></title>
            <link>https://kharrat-mariem.medium.com/how-to-choose-the-right-solution-to-deploy-my-application-8db413a57a6d?source=rss-7f839da06e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/8db413a57a6d</guid>
            <category><![CDATA[application-architecture]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[application-modernization]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Mariem Kharrat]]></dc:creator>
            <pubDate>Sat, 30 Dec 2023 11:52:46 GMT</pubDate>
            <atom:updated>2024-11-15T10:20:37.561Z</atom:updated>
            <content:encoded><![CDATA[<p>When we start developing new application or maybe modernizing a legacy one, we always start asking ourselves as Cloud Solution Architect , Application Administrator or even product Manager; What is the right solution to deploy the application.</p><p>As part of my role as Technologies Specialist, I work closely with my customer to support them in the process of choosing the right solution for their application. My first best practice and what i would recommend is to take off the pressure of choosing the solution or type of the infrastructure and take our time to assess, evaluate and think about what we want to deliver through this application. It’s also mandatory that both sides internal(Developers and Administrators) and external(Customers and users) are involved in this phase</p><h3><strong>Internal side | Developers and Administrator</strong></h3><p>** First let’s check our team preference and environment requirements with some question that needs to be answered</p><ul><li>Does our application has legacy dependencies?</li><li>Does our application uses legacy technologies/Frameworks/APIs (net framework 3.5 / JRE 5….)</li><li>Does our team have the required skills to adopt and use new technologies.</li><li>Do we have limitation on the choice of the operating system.</li><li>Does our application needs to be portable(Container based)</li><li>Do we need the full control of the infrastructure (Internal network management, system service)</li><li>Does our application uses legacy technologies/Frameworks/APIs (net framework 3.5 ,JRE 5,…)</li><li>Does our application needs to be portable (container based)</li></ul><h3>External side | Customers and Users</h3><p>**Second we need to think about our customers and users needs and expected experience;</p><ul><li>Does our customer needs scalability and high performance Solution(a seamless scalability during working hours and out of them)?</li><li>Does our users are distributed geographically and multi-devices types of use (laptop/ Mobile — High bandwidth/metred connexion)?</li><li>Does our application is serving critical business data, does it allow downtime?</li></ul><p>Once we have the responses for those questions let’s take a look together to the available solutions and choose the ones that fulfil our need :</p><p>1. <strong>On-Premises Infrastructure</strong></p><p>Traditional on-premises deployment involves hosting our application on servers physically located within our organization.</p><ul><li><strong><em>Pros</em></strong><em>:</em> Maximum control and customization.</li><li><strong><em>Cons</em></strong><em>:</em> High upfront costs and maintenance requirements.</li></ul><p>2. <strong>Cloud Infrastructure</strong></p><p>Cloud computing has revolutionized application deployment. Cloud providers like <strong>Azure</strong>, AWS and Google Cloud offer Infrastructure-as-a-Service (<strong>IaaS</strong>) and Platform-as-a-Service (<strong>PaaS</strong>) options.</p><ul><li><strong><em>Pros</em></strong><em>:</em> Scalability, flexibility, and pay-as-you-go models.</li><li><strong><em>Cons</em></strong><em>:</em> Potential vendor lock-in and dependency on internet connectivity.</li></ul><p>3. <strong>Containers and Orchestration</strong></p><p>Containers, such as <strong>Docker</strong>, encapsulate an application and its dependencies, enabling consistent deployment across different environments. Container orchestration tools like <strong>Kubernetes</strong> automate deployment, scaling, and management of containerized applications, providing portability and efficiency.</p><ul><li><strong><em>Pros</em></strong><em>:</em> Portability and efficient management across environments.</li><li><strong><em>Cons</em></strong><em>:</em> Requires familiarity with container technologies.</li></ul><p>4. <strong>Serverless Computing</strong></p><p>Serverless architecture, offered by platforms like <strong>Azure Functions</strong>, AWS Lambda and Google Cloud Functions, abstracts infrastructure management entirely.</p><ul><li><strong><em>Pros</em></strong><em>:</em> Focus solely on code, automatic scaling, and cost-efficiency.</li><li><strong><em>Cons</em></strong><em>:</em> Limited control over underlying infrastructure.</li></ul><p>5. <strong>Hybrid and Multi-Cloud</strong></p><p>For applications requiring a mix of on-premises and cloud resources, hybrid deployment offers flexibility.</p><ul><li><strong><em>Pros</em></strong><em>:</em> Flexibility and redundancy across different environments.</li><li><strong><em>Cons</em></strong><em>:</em> Complexity in managing multiple infrastructures.</li></ul><p>Since we know the available solutions we need also to take in <strong>consideration some requirements:</strong></p><ul><li><strong><em>Scalability</em></strong>: Assess how easily each infrastructure option scales with your application’s growth.</li><li><strong><em>Security</em></strong>: Evaluate built-in security measures and compliance certifications offered by the infrastructure.</li><li><strong><em>Cost Management</em>:</strong> Consider the pricing models, operational costs, and potential savings each infrastructure option offers.</li><li><strong><em>Resource Management</em></strong><em>:</em> Analyse how effectively resources are utilized and managed within each infrastructure setup.</li><li><strong><em>Support and Maintenance</em></strong><em>:</em> Consider the level of support, maintenance, and updates required for each option.</li></ul><h3><strong>Choosing the Right Solution</strong></h3><p>The best choice will depends on our application’s specific needs. Consider factors such as workload demands, geographic distribution, compliance requirements, and budget constraints when making your decision.</p><p>The below flowchart Is a very handy when it comes to select a candidate compute services and it was prepared from Microsoft Azure documentation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XZQTJofnLGM2VBodroxEVg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8db413a57a6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to secure our web application]]></title>
            <link>https://kharrat-mariem.medium.com/how-to-secure-our-web-application-52a53bb31f92?source=rss-7f839da06e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/52a53bb31f92</guid>
            <category><![CDATA[web-application-security]]></category>
            <category><![CDATA[front-doors]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-application-gateway]]></category>
            <dc:creator><![CDATA[Mariem Kharrat]]></dc:creator>
            <pubDate>Wed, 11 May 2022 17:27:21 GMT</pubDate>
            <atom:updated>2022-05-11T17:27:21.451Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*dKA3FGud_EdZZffk.png" /><figcaption>Azure Web Application Firewall</figcaption></figure><h3>When we consider deploying our application to the cloud, the first thing that comes to our minds is how to secure it. Typically, we put the responsibility only on the development or networking teams, despite the fact that it should be considered during the architecture phase and the design of the deployment architecture.</h3><p>Before we start always keep in mind that <strong>SECURITY</strong> it’s a shared responsibility</p><p>I was working on an app modernization project for a customer solution and one of the major concerns was the security of the solution as a cloud solution architect I suggest that the first step to secure our web application is to deploy a <strong>Web Application Firewall(WAF) in order </strong>to filtering and monitoring HTTP traffic between their web application and the Internet.</p><p>And when it comes to deploying our solution to Microsoft Azure sure we will have multiple ways to deploy components and this depends on the requirement that we have.</p><p>Let’s discover how we can deploy <strong>WAF</strong> on Azure and secure our web application; two major ways to deploy it first is with Azure Application Gateway, second is with Azure front door.</p><p>In this article we will tackle the difference between them and which way we should choose and why?</p><p><strong>Let&#39;s start with Azure Application Gateway: </strong>As everyone knows, Gateway enables data to flow through one discrete network to another, and Azure Application Gateway is web traffic and a load balancer that enables you to manage traffic to your web applications. Application gateway has traditional load balancers operate at the transport layer and route traffic based on source IP address and port, to a destination IP address and port which will allow you to route to multiple web applications whatever is deployed on azure app service, Azure VM’s, open premises environment or even on another public cloud.</p><p>And if go deeper, WAF on the application gateway gives you the ability to protect, monitor, and analyze the traffic ongoing to your application, so you can detect all threats throw logging where you can also save it to log analytics and once you got an overall view on your web traffic who’s ongoing to the web application you can switch the WAF to the prevention mode and choose what instruction you will allow using the predefined WAF rules or your create your own custom rules</p><p>I suggest you go and take look at the Azure Application Gateway documentation</p><p><strong>Azure Front Door: </strong>If you have a global App and APIs, Azure Front Door will help you to ensure high availability, with multi-region deployment where you have a seamless user experience in case of failure in one of the regions by having an Active and a standby region.</p><p>Unlike the application gateway, WAF is not integrated into the front door and for that, you have to create a WAF policy Front Door.</p><h3><strong>Comparing Azure Application Gateway (WAF) and Azure Front Door:</strong></h3><ul><li><em>Azure Application Gateway (WAF): </em>Is the best way to route, filter and monitor traffic for multiple application from a central service and dashboard, support Load balancing with a Built-in WAF config based on OWASP_3.1 rule set and Minimum cost control</li><li><em>Azure front door: </em>Is highly recommended for multiregional deployment scenarios, didn’t support load balancing and when it comes <strong>WAF </strong>you should Create and configure WAF policy on Microsoft Default_RuleSet_1.1 and other defaultRuleSet and <em>It’s PAYG basis so cost is based on the configuration.</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52a53bb31f92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Azure container Instances using Azure DevOps CI/CD pipelines]]></title>
            <link>https://kharrat-mariem.medium.com/deploy-azure-container-instances-using-azure-devops-ci-cd-pipelines-e42b2fb252ce?source=rss-7f839da06e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/e42b2fb252ce</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[azure-pipelines]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[azure-container-instances]]></category>
            <dc:creator><![CDATA[Mariem Kharrat]]></dc:creator>
            <pubDate>Sun, 18 Apr 2021 19:22:17 GMT</pubDate>
            <atom:updated>2021-04-19T09:47:56.442Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*qoaVBY1hXLtZZ0Q-DfBYQQ.png" /></figure><p>In this article we are going to deploy our angular application to Azure Container instance using CI/CD pipelines from azure DevOps and Azure Container registry</p><p><strong>First</strong> we should push our application toAzure Repos so don’t forget to use the below git commands</p><pre>git remote add origin <a href="https://your-git-repo-adress/">r</a>epo-address<br>git push -u origin — all</pre><h3>Azure Devops CI Pipline</h3><p>Now we will start with the first step which is create our CI pipeline we will require two tasks: the first one is related to the angular project which is the npm install task and the second one is related docker task and it will be in charge for building and pushing our image to Azure registry</p><p>So first, we must connect to our Azure registry. In the settings, navigate to service connection New service connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vPBgFxoRQPl1oR3eLT_vQQ.png" /></figure><p>Then we choose<strong> Docker Registry</strong> Service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*rmGGaaUZgwUtCrkLDoTI_Q.png" /></figure><p>Next step is to setup the <strong>connection </strong>to our <strong>Azure container registry</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*4V9slo6om48sxoSXaaeTgQ.png" /></figure><p>Let’s take look to our docker file before we push our image to the registry;</p><pre># base image</pre><pre>FROM node:12.2.0</pre><pre># set working directory</pre><pre>WORKDIR /app</pre><pre># add `/app/node_modules/.bin` to $PATH</pre><pre>ENV PATH /app/node_modules/.bin:$PATH</pre><pre># install and cache app dependencies</pre><pre>COPY package.json /app/package.json</pre><pre>RUN npm install</pre><pre>RUN npm install -g @angular/cli@7.3.9</pre><pre># add app</pre><pre>COPY . /app</pre><pre># start app</pre><pre>CMD ng serve --host 0.0.0.0</pre><p>Now will create our pipeline, we have choose ubuntu as an agent;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ilRfb5c1a02Swmtjp9sVQA.png" /></figure><p>Now we setup the<strong> npm install</strong> Task as show on the sceenshoot</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kc6eDBtpHyLyrK9DrfMchg.png" /></figure><p>Next let add the docker task for build and push images</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tUbLbpa4PudwZRkcQgyGHg.png" /></figure><p>you should specify the<strong> container registry</strong>, the <strong>container repository</strong>, the <strong>command </strong>and the docker file then <strong>save and queue</strong></p><h3>Azure Devops CD Pipline</h3><p>After we’ve finished pushing our image to the azure container registry, we will use the Release Pipelines to deploy it to an azure container instances.</p><p>Once we create our release pipeline, we should choose the artifact as source of the deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*otINOWy9a3avImUID8IGrQ.png" /></figure><p>Next we have to add the stages; in our case, there is only one stage with one task which is the azure CLI Task, this task responsible for creating an Azure container instance .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wjVzW5VH8t_Nj3YZUCXyMg.png" /></figure><p>we will choose PowerShell as a script type and we will write our commands on the script inline.</p><pre>az container create -g aci-demo --name aci-demo-app --image $(acrLoginServer)/demo-aci:11 --cpu 1 --memory 1 --registry-login-server $(acrLoginServer) --registry-username $(acrName) --registry-password $(acrPassword)  --ports 80</pre><p>don’t forget to add your azure container registry login credentials in variables section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e42b2fb252ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WHY Azure Container Instances ?]]></title>
            <link>https://kharrat-mariem.medium.com/why-azure-container-instances-70b6c29f9de4?source=rss-7f839da06e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/70b6c29f9de4</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[azure-container-instances]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Mariem Kharrat]]></dc:creator>
            <pubDate>Thu, 25 Feb 2021 16:37:15 GMT</pubDate>
            <atom:updated>2021-02-25T16:42:24.717Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Azure Container Instances ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*nJhW4RFtSf2ZyFTp" /></figure><p>In this post i will share with you most of the reasons for choosing Azure Container Instances to deploy your application. Before we start let’s discover what is Azure Container Instances.</p><p>Azure Container Instances is a service that enables a developers to deploy containers on the Microsoft Azure public cloud without having to provision or manage any underlying infrastructure.</p><h3>Pricing</h3><p>One of the major reason to choose Azure Container Instances is the pricing; ACI is a per second Billings services as shown in the table Bellow a <strong>linux</strong> container with 1GB RAM and 1vCPU full used will cost you only $38.81 per month</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZosXgqt-XNcE2rurtfKhmA.png" /></figure><p>From <a href="https://azure.microsoft.com/en-us/pricing/details/container-instances/">https://azure.microsoft.com/en-us/pricing/details/container-instances/</a></p><p>This cost is the most minimal compared to AKS and Virtual Machines; one other thing is that ACI’s SKU is based on your application needs, while in other cases you have chosen one of the SKUs published by Microsoft that is not always profitable.</p><h3>Requirement</h3><p>The only prerequisite you need to publish your application to Azure Container Instances is a Container Registry, whether you already have a private registry that you can use or you can build an Azure Container Registry: a private Docker Registry in Azure where you can control your Docker Container Images and artifacts.</p><h3>Management</h3><p>Azure Container service as PaaS services, this will give you the ability&#39;s to concentrate more in your application because you will not have to maintain any infrastructure.</p><h3>Provisioning &amp; Deployment</h3><p>Azure Container Instance is one of the most easier service in the provisioning and deployment because there&#39;s different mode of provisioning &amp; deployment. the faster one is using <strong>Azure portal</strong> as shown in the <a href="https://docs.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-portal">documentation</a>.</p><p>And of course as all azure services Azure Container instance can be provisioning using <strong>Powershell</strong> and <strong>ARM Template.</strong></p><p>As well as we can deploy our Azure container Instances from Azure DevOps pipelines you can follow my next blog post <strong>Azure Container instances and DevOps.</strong></p><h3>Types &amp; Performance</h3><p>When we are talking about container first we get in our mind which system the container is running linux/ windows, for that reason Azure container instance is available on both linux and windows operating system. And Linux containers support GPU which will allow you to run workloads with intensive compute and we don’t forget the CPUs and RAMs for each container one of the most amazing things is there&#39;s no SKU for ACI you can choose the CPUs and RAMs based on the exact needs of your application.</p><h3>Security &amp; Networking</h3><p>Azure Container Instance is like VMs can be protected with Azure virtual network and it’s recommended to monitor and log the configuration and traffic of virtual networks, subnets… and one of the most important ways secure your applications is to use a private registry such as Azure Registry to protect your images.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70b6c29f9de4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Nginx and docker to CentOS 8 VM on azure]]></title>
            <link>https://kharrat-mariem.medium.com/deploy-nginx-and-docker-to-centos-8-vm-on-azure-91760d64e816?source=rss-7f839da06e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/91760d64e816</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[virtual-machine]]></category>
            <dc:creator><![CDATA[Mariem Kharrat]]></dc:creator>
            <pubDate>Tue, 16 Feb 2021 17:32:30 GMT</pubDate>
            <atom:updated>2021-02-17T11:51:08.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IynwXOIq5DJWgdC2-HbfdQ.png" /></figure><p>At Most of time to deploy our application we need a web server.</p><p>i was in a situation that my customer need to deploy their web application on Linux server; it was not easy to configure the server with all the component</p><p>Let’s start by creating our server in azure</p><ol><li><strong>Create Linux VM from Azure portal</strong></li></ol><p>First full , we need to have an Azure subscription if you don’t have one go and get a free subscription from this <a href="https://azure.microsoft.com/en-us/">link</a></p><p>Before create the virtual machine we will see how a virtual machine be on azure</p><p>Our resource group is composed by a virtual network , network security group , subnet and for sure our Virtual machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*lnDJ5ezzqXntF8hjssP4pg.png" /></figure><p>To create a virtual Machine we have to choice first to click on the <strong>create a resource</strong> or to click <strong>Virtual Machines</strong> then click <strong>Add </strong>as shown in the screenshots bellow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*aOeEEMCzvsZ2c-dFvqBSCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*ztzG5xL78eKUkptm3_PYpg.png" /></figure><p>Now we need to fill all the VM informations, i will choose <strong>CENTOS based 8.2 </strong>as an <strong>image</strong> and <strong>password </strong>as an <strong>authentication type</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*F7V2LMjFSfLA0OiNlxv9tA.png" /></figure><p>Let’s create our VM and start the configuration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*QWGDeYA1Y3xbUIMU.gif" /></figure><p>2. <strong>VM Configuration</strong></p><p>Let’s start the VM configuration, first of all we need to install Nginx</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-xpBBZKTpb6_Wli-.png" /></figure><p>To start execute commande as an admin we should first run sudo commande</p><pre><strong>sudo su -</strong></pre><p>then we should update the yum packages on the system:</p><pre><strong>yum -y update</strong></pre><p>It’s time to install Nginx server , we need to run this commande:</p><pre><strong>sudo dnf install nginx</strong></pre><p>Now we will enable Nginx</p><pre><strong>sudo systemctl enable nginx</strong></pre><pre><strong>sudo systemctl start nginx</strong></pre><p>and to check the installation we just need to go to our VM publique IP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WgWDr-pmnpvm9OWHVM3Sdg.png" /></figure><p>Now it’s time to install docker compose, first step is to add the docker repos to our system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WVIWqkYbU1KI__Qz.png" /></figure><pre>dnf config-manager --add-repo=<a href="https://download.docker.com/linux/centos/docker-ce.repo">https://download.docker.com/linux/centos/docker-ce.repo</a></pre><p>Then we install docker with the bellow</p><pre>dnf install docker-ce --nobest -y</pre><p>and to start docker and check his version we need to run the bellow commands</p><pre><strong>systemctl start docker</strong></pre><pre><strong>systemctl enable docker</strong></pre><pre><strong>docker --version</strong></pre><p>Time to finish our configuration with a last step wish is installing docker compose with the bellow commands, in our cas we will install 1.24.1 version</p><pre><strong>dnf install curl -y</strong></pre><pre><strong>curl -L </strong><a href="https://github.com/docker/compose/releases/download/1.24.1/docker-compose-%60uname"><strong>https://github.com/docker/compose/releases/download/1.24.1/docker-compose-`uname</strong></a><strong> -s`-`uname -m` -o /usr/local/bin/docker-compose</strong></pre><pre><strong>chmod +x /usr/local/bin/docker-compose</strong></pre><pre><strong>docker-compose --version</strong></pre><p>don’t forget to create user for each team member with specific access using the <strong>adduser</strong> command.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91760d64e816" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Manage Azure Active Directory Users using .Net Core application]]></title>
            <link>https://kharrat-mariem.medium.com/manage-azure-active-directory-users-using-net-core-application-4cee5ba0288e?source=rss-7f839da06e00------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cee5ba0288e</guid>
            <category><![CDATA[user-management]]></category>
            <category><![CDATA[net-core]]></category>
            <category><![CDATA[azure-active-directory]]></category>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[graph-api]]></category>
            <dc:creator><![CDATA[Mariem Kharrat]]></dc:creator>
            <pubDate>Fri, 15 May 2020 23:58:34 GMT</pubDate>
            <atom:updated>2020-05-16T00:31:14.234Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Manage Azure Active Directory Users using .Net Core application</strong></h3><p>I have been working on project which we need to manage azure active directory from external app based on .net core and I have started looking to use <a href="https://docs.microsoft.com/en-us/graph/use-the-api"><strong>Graph API</strong></a> and it takes from me a lot of time to make it ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*JQK13LPjUCT3YSCfPvKR9g.png" /></figure><p>First, we start by some configuration on <a href="https://azure.microsoft.com/">azure portal</a></p><p><strong>Step 1 — Register your application</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*PKzmdhsNeQYEFRZQP2hYZQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*jXB8DmCf7EzQp65KOXvllw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*9Fb9waM4R9kuCje9Xnhgqw.png" /></figure><p><strong>Step 2 — Get application information</strong></p><p>For this step we need to save some information related to the application <strong>client ID, Tenant ID</strong> and <strong>the client secret</strong> as shown in the next figures</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*Wkr_gT3HqOdOh-pLNYuVsQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*obghWYT66tp1OihC2l8wEg.png" /></figure><p>Obviously, when we talk about user management we need to think about permission and what kind of permission are necessary for each action needed.</p><p><strong>Step 3 — Permissions</strong></p><p>Before we set permissions, we need to know which permission is required for each action on our directory</p><p>At first we will take look to getting users list, user information and adding new users in Azure AD we need those application permission: <br> User.ManageIdentities.All , User.ReadWrite.All and Directory.ReadWrite.All</p><p>Applications permissions allow us to manage Azure Active directory users without a signed user and don’t forget to grant admin for your permissions<br> Secondly if we need to delete or reset password for specified user those actions are allowed only for Global Administrator</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*wBr5S4V9-XLb2nlmammXeg.png" /></figure><p>after making our application ready it’s time to start coding for that i have created an open source nuget package called <a href="https://www.nuget.org/packages/AzureAD.UserMangment/">AzureAD.UserMangment</a> go and install it throw nuget package manager</p><p>follow the steps to user the nuget package</p><ul><li>Initialize the Graph Client</li></ul><pre>var graphClient = new GraphClient(&quot;clientId&quot;,<br>                &quot;clientSecret&quot;,<br>                &quot;tenant&quot;);</pre><ul><li>GET all users on azure active directory</li></ul><pre>var users = graphClient.GetAllUsers().Result.ToString();<br>            List&lt;User&gt; usersLi = JsonConvert.DeserializeObject&lt;List&lt;User&gt;&gt;(users.ToString());</pre><ul><li>GET user by email</li></ul><pre>var userResult = graphClient.GetAllUsers(&quot;john.doe@domain.com&quot;).Result.ToString();<br>            List&lt;User&gt; user = JsonConvert.DeserializeObject&lt;List&lt;User&gt;&gt;(userResult.ToString());</pre><ul><li>Disable user</li></ul><pre>var Disablereslt = graphClient.DisableUser(user.First().objectId).Result;</pre><ul><li>Enable user</li></ul><pre>var enablereslt = graphClient.EnableUser(user.First().objectId).Result;</pre><ul><li>Check if user exist</li></ul><pre>var exist = graphClient.Exist(c.userPrincipalName).Result;</pre><ul><li>Create new user</li></ul><pre>var user = new User()<br>            {<br>                accountEnabled = true,<br>                displayName = &quot;displayName&quot;,<br>                mailNickname = &quot;mailNickname&quot;,<br>                passwordProfile = new Passwordprofile()<br>                {<br>                    forceChangePasswordNextLogin = false,<br>                    password = &quot;password&quot;</pre><pre>                },<br>                userPrincipalName = &quot;john.doe@domain.com&quot;<br></pre><pre>            };<br>            var d = graphClient.CreateUser(c).Result;</pre><p>You can find the nuget source code <a href="https://github.com/MariemKharrat/AzureAD.UserMangment">here</a>.</p><p>Nuget package name is AzureAD.UserMangment <a href="https://www.nuget.org/packages/AzureAD.UserMangment/">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cee5ba0288e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>