<?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 Farjad | Cloud + Platform Engineering Strategist on Medium]]></title>
        <description><![CDATA[Stories by Farjad | Cloud + Platform Engineering Strategist on Medium]]></description>
        <link>https://medium.com/@ngfarjad?source=rss-4e0f3fd239ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yhk9njNmPtYELoGPZJsZLQ.png</url>
            <title>Stories by Farjad | Cloud + Platform Engineering Strategist on Medium</title>
            <link>https://medium.com/@ngfarjad?source=rss-4e0f3fd239ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 12:57:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ngfarjad/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[The Most Expensive Automation Mistake Is Automating the Wrong Work]]></title>
            <link>https://ngfarjad.medium.com/why-the-wrong-priority-creates-waste-before-automation-even-begins-58c2c2fa9ff7?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/58c2c2fa9ff7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[business-strategy]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Wed, 05 Aug 2026 00:34:51 GMT</pubDate>
            <atom:updated>2026-08-05T00:59:18.608Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="THE MOST EXPENSIVE AUTOMATION MISTAKE
 IS AUTOMATING THE WRONG WORK" src="https://cdn-images-1.medium.com/max/1024/1*dkUyCFUkhzrRIMVe_o2DEg.png" /></figure><p><em>Why the wrong priority creates waste before automation even begins</em></p><p>Most automation initiatives do not fail because the technology was incapable of doing the work.</p><p>They fail much earlier.</p><p>The wrong work was selected.</p><p>I have seen teams spend weeks adding support for a request affecting a small part of the environment because it was visible, sounded innovative, or had management attention behind it.</p><p>At the same time, another process affecting hundreds of devices remained manual. It happened repeatedly, consumed engineering capacity, introduced operational risk, and had a much clearer path to recurring value.</p><p>Yet the smaller request moved first.</p><p>Not because it was more valuable.</p><p>Because it was louder.</p><p>This is one of the most common ways automation is misunderstood.</p><p><strong>The question is not only: What can we automate? The better question is: What should we automate first, and what evidence supports that decision?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IER6JlxLIiz4ozxvxep5-Q.jpeg" /><figcaption><em>When automation is misunderstood, attention can outrank recurring value.</em></figcaption></figure><h3>Automatable does not mean worth automating</h3><p>A task can be frustrating without being a strong automation opportunity.</p><p>It may happen only a few times a year. It may affect a small part of the environment. It may contain so many exceptions that automation only moves complexity somewhere else. It may require specialized access, unclear approvals, or ongoing maintenance that costs more than the capacity returned.</p><p>On the other hand, some of the best automation opportunities look boring.</p><p>A configuration-compliance check may not sound transformational. But if it runs across a large device fleet, multiple sites, and several customer environments, its value compounds through repetition, reach, reduced risk, and reuse.</p><p><strong>The value is rarely found in one execution. It comes from repetition, reach, risk reduction, and reuse.</strong></p><h3>Why automation backlogs become lists of opinions</h3><p>Without a common decision model, every stakeholder brings a different definition of priority.</p><ul><li>The engineer may prioritize the task they personally dislike.</li><li>The customer may prioritize the most visible issue.</li><li>Management may prefer something that looks impressive in a demonstration.</li><li>A vendor discussion may create pressure to support the newest technology.</li><li>The operations team may be focused on recurring work that rarely receives executive attention.</li></ul><p>None of those perspectives is automatically wrong. The problem is that they are difficult to compare.</p><p>A backlog then becomes a collection of individually reasonable requests with no consistent way to determine which one deserves investment first.</p><p>The answer is not to eliminate judgment. The answer is to make judgment more structured, transparent, and defensible.</p><h3>A practical 100-point scoring model</h3><p>I evaluate automation opportunities across three dimensions:</p><ul><li><strong>Value = 60 points: </strong>Does the work matter enough to automate?</li><li><strong>Readiness = 30 points: </strong>Can it move forward responsibly now?</li><li><strong>Leverage = 10 points: </strong>Can the value scale beyond the first implementation?</li></ul><p>Each criterion is scored from 1 to 10. The weighted contribution is calculated as:</p><p><strong>Weighted points = (raw score / 10) x criterion weight</strong></p><h3>Value = 60 points</h3><p>Value answers: Is this work important enough to automate? It contains four equally weighted criteria.</p><h4>Frequency and volume = 15 points</h4><p>How often does the process occur, and at what scale? A short activity performed once a year is different from the same activity performed across hundreds of devices every month. Frequency creates compounding value.</p><h4>Manual effort per run = 15 points</h4><p>How much human capacity does each execution consume? This should be considered in person-hours, not only elapsed time. A two-hour process involving three engineers consumes six person-hours of capacity.</p><h4>Business or SLA impact = 15 points</h4><p>Does the work affect service availability, customer experience, delivery timelines, SLA performance, incident recovery, or operational visibility? Some work deserves automation because delay or inconsistency has a direct business consequence.</p><h4>Risk or compliance impact = 15 points</h4><p>Does it reduce configuration errors, security exposure, outage risk, audit effort, compliance failures, or inconsistent execution? Time saving is only one form of value. Risk reduction can be equally important.</p><h3>Readiness = 30 points</h3><p>Readiness answers: Can this opportunity move forward responsibly now? A high-value process may still be poorly defined, inaccessible, or unsafe to automate.</p><h4>Repeatability and standardization = 10 points</h4><p>Do engineers follow a consistent process, or does each person perform the work differently? Automation cannot reliably standardize a process the organization itself has not yet understood.</p><h4>Data and access readiness = 10 points</h4><p>Are the required inventory, credentials, APIs, tickets, configurations, sample outputs, test environments, and evidence requirements available? A strong opportunity with missing access is still a strong opportunity, but the next action is enablement rather than execution.</p><h4>Automation feasibility = 10 points</h4><p>Is there a technically credible automation path? This includes validation, exception handling, integration complexity, security, maintainability, and operational support. The fact that code can be written is not enough.</p><h3>Leverage = 10 points</h3><p>Leverage answers: Can the value scale beyond the first implementation?</p><h4>Reuse potential = 10 points</h4><p>Can the pattern be reused across devices, sites, customers, environments, vendors, teams, or similar requests? A reusable automation pattern should normally rank higher than a one-off implementation producing the same immediate benefit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S3-f-WSZLzozx8VI6g0HUA.png" /><figcaption><em>Value tells you whether it matters. Readiness tells you whether it can move now. Leverage tells you whether the value can scale.</em></figcaption></figure><h3>A score is not permission to deploy</h3><p>A score of 85 does not mean: start automating production tomorrow.</p><p>It means: this opportunity deserves serious attention.</p><p>There is an important difference between opportunity and execution readiness. A process may score highly because it is frequent, expensive, risky, and reusable, while still lacking a named owner, reliable source data, a validation method, a safe test environment, approval controls, rollback procedures, or clear accountability.</p><p>These gaps do not invalidate the opportunity. They determine the next action.</p><h3>Value and readiness create four decisions</h3><h4>High value, high readiness: prioritize</h4><p>The process matters and the organization is prepared to automate it. These are the strongest candidates for design and implementation.</p><h4>High value, low readiness: enable first</h4><p>The opportunity is valid, but foundational capabilities are missing. Invest first in process standardization, ownership, data quality, access, skills, validation, and governance. Do not ignore the opportunity, but do not rush it into production either.</p><h4>Low value, high readiness: automate selectively</h4><p>The task may be easy to automate but may not justify dedicated engineering investment. Proceed when an existing pattern can be reused, when it unblocks higher-value work, or when it reduces meaningful risk at minimal incremental cost.</p><h4>Low value, low readiness: defer or reframe</h4><p>The opportunity currently has neither sufficient value nor sufficient readiness. Saying not now is part of responsible prioritization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhviEugpJDkntbcYy24ggg.png" /><figcaption><em>A high-value opportunity with low readiness should be enabled — not ignored and not rushed.</em></figcaption></figure><h3>Worked example: Network Configuration Compliance &amp; Remediation for Cisco IOS-XE Devices</h3><p>The example below is based on an actual, anonymized use-case assessment from a multi-customer MSP automation backlog. It is not an industry benchmark and it is not a realized-ROI claim. It is an operator-validated prioritization assessment using a documented manual process.</p><h3><strong>Actual process scope</strong></h3><p>Cisco IOS-XE Catalyst switches and ISR/ASR routers. The documented process contains 11 manual tasks across access, collection, verification, remediation, approval, validation, and evidence capture.</p><p>The current-state process checks:</p><ul><li>AAA configuration, TACACS+ integration, local fallback, login blocking, and password encryption.</li><li>SSHv2-only management access, VTY access classes, management ACLs, and HTTP-service restrictions.</li><li>SNMPv3 authentication and privacy, with removal of insecure v1/v2 communities.</li><li>Unused services and insecure defaults.</li><li>Unused-port shutdown and parking-VLAN controls.</li><li>Port security, DHCP snooping, Dynamic ARP Inspection, and BPDU Guard where applicable.</li></ul><p>The process then creates a per-device scorecard, assembles remediation configuration for failed items, routes it for peer review and approval, archives the current configuration, pushes the approved change, re-runs the audit, and records the post-change evidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUh4AyM8MseLP9ms8NOT1A.png" /><figcaption><em>Score + confidence + control conditions + next step creates an actionable decision not just a number</em></figcaption></figure><h3>Why the score is 87/100</h3><ul><li><strong>Value: 54/60. </strong>The process is frequent, consumes meaningful engineering effort, and has significant security and compliance impact.</li><li><strong>Readiness: 28/30. </strong>The process and rules are well documented, the automation path is credible, and the required configuration evidence is available.</li><li><strong>Leverage: 5/10. </strong>The pattern is reusable across the IOS-XE fleet, but the detailed rules and remediation logic are platform-specific and cannot be directly reused for NX-OS, PAN-OS, or FortiOS.</li></ul><h3>Scoring basis: Operator-validated assessment</h3><p>The manual process, operational inputs, scoring assumptions, and expected outcomes were provided and reviewed with the customer. However, some inputs such as person-hours per execution, recurring volume, rework rate, and realized capacity return still require measured baseline data.</p><p>The opportunity is therefore presented as <strong>87/100 with Confidence B</strong>. This is strong enough for prioritization and pilot planning, but it should not be presented as a fully measured financial or ROI result.</p><h3>Real readiness and control conditions</h3><ul><li>RESTCONF or NETCONF availability must be confirmed per device; SSH remains a fallback execution path.</li><li>Some controls require per-customer applicability flags rather than one universal rule.</li><li>Remediation configuration must be limited to failed controls and peer reviewed.</li><li>Service-impacting changes require an approved maintenance window.</li><li>The current configuration must be archived before remediation.</li><li>Rollback or configure-confirm controls should be used where supported and appropriate.</li><li>The audit must be re-run after the change, with documented exceptions and evidence.</li></ul><h3>Recommended next step</h3><p>Treat this as a Priority Candidate, but stage autonomy rather than jumping directly to full remediation:</p><ul><li><strong>Phase 1 Observe: </strong>Run the compliance audit in read-only mode and generate the per-device scorecard and evidence pack.</li><li><strong>Phase 2 Recommend: </strong>Generate device-specific remediation snippets for failed controls and route them for review.</li><li><strong>Phase 3 Execute with approval: </strong>Pilot approval-gated remediation on a controlled device group, with backup, rollback, and post-change validation.</li><li><strong>Phase 4 Expand carefully: </strong>Scale only after exception rates, validation quality, change success, and realized effort reduction have been measured.</li></ul><h3>Confidence matters as much as the number</h3><p>A score of 87 supported by actual tickets, timestamps, execution logs, and measured operational records is different from a score of 87 based on estimates reviewed during discovery.</p><p>I use three confidence levels:</p><h4>A = Measured</h4><p>Supported by execution logs, tickets, timestamps, incident records, measured effort, volume data, or other operational evidence.</p><h4>B = Operator validated</h4><p>The process and assumptions have been reviewed and confirmed by the people performing the work, but some inputs are still based on estimates and require baseline measurement.</p><h4>C = Assumed</h4><p>The use case is still in early discovery and requires further validation and evidence.</p><blockquote><strong><em>Opportunity Score: 87/100 — Confidence B</em></strong></blockquote><p>This tells a more honest and complete story than displaying the score alone.</p><p>Confidence B means the use case is sufficiently understood and validated for prioritization, but its effort, volume, rework, and realized ROI should still be measured during the baseline and pilot phases.</p><h3>ROI starts before automation is built</h3><p>One of the most common mistakes is waiting until after implementation to discuss value. By then, the manual baseline has often disappeared. Nobody remembers exactly how long the process took, how many people were involved, how often rework occurred, or how much time was active engineering work rather than waiting.</p><blockquote><strong>Annual hours returned</strong></blockquote><blockquote><strong>= recurring executions * (manual effort per execution-automated effort per execution) -one-time setup effort</strong></blockquote><p>This is not a complete business case, but it forces the team to capture the right information before implementation. A stronger outcome model should also consider error and rework reduction, faster delivery, SLA improvement, reduced outage risk, compliance evidence, lower dependency on individual engineers, reuse, human-intervention rate, exceptions, and failed executions.</p><p>The goal is not to claim that automation saves time. The goal is to prove what changed.</p><h3>The manual process is the first automation specification</h3><p>Before building the automated workflow, document the real process — not the ideal process.</p><ul><li>What triggers the work?</li><li>Who receives the request?</li><li>What steps are performed?</li><li>Which commands, APIs, portals, or files are used?</li><li>Where do approvals happen?</li><li>What exceptions occur?</li><li>What proves success?</li><li>What evidence is required?</li><li>What happens when validation fails?</li></ul><blockquote><strong>Phase -&gt; Manual action -&gt; Command or API -&gt; Pass criteria -&gt; Evidence</strong></blockquote><p>The phase becomes a workflow stage. The action becomes an executable task. The pass criteria becomes validation. The evidence requirement becomes an automatically captured artifact.</p><p>Discovery is not administrative work around automation. It is part of automation engineering.</p><h3>What happens after scoring</h3><p>The Opportunity Score should feed a controlled lifecycle:</p><blockquote><strong>Discover -&gt; Baseline -&gt; Score -&gt; Select -&gt; Design -&gt; Build -&gt; Validate -&gt; Measure -&gt; Accept</strong></blockquote><p>A use case should not move forward simply because it sounds useful. It moves when the team understands the process, baseline, score, confidence, readiness gaps, owner, dependencies, execution controls, validation path, and expected outcome.</p><p>This turns the automation backlog from a collection of ideas into a system of decisions.</p><h3>The score tells us what. Maturity tells us how.</h3><p>Opportunity scoring is only the first part of the problem.</p><p>A high-value automation can still fail when the organization attempts to deliver it from the wrong operating state. People may not trust the automation. Ownership may be unclear. Teams may follow different processes. Governance may exist only as manual review. The organization may not yet have the data, skills, operating model, or culture required to absorb the change.</p><p>That is the next part of EVOLVE-A.</p><p>The Opportunity Index helps answer:</p><blockquote><strong><em>What deserves attention?</em></strong></blockquote><p>The wider framework examines:</p><blockquote><strong><em>How the organization should evolve to deliver it responsibly?</em></strong></blockquote><p>Because automation is not only a tool problem. It is an organizational evolution problem.</p><h3>Closing</h3><p>The most expensive automation mistake is not choosing the wrong technology.</p><p>It is investing in the wrong work.</p><p>Before asking whether something can be automated, ask:</p><ul><li>Does it create meaningful recurring value?</li><li>Is the current process understood and ready?</li><li>Can the pattern scale?</li><li>What evidence supports the decision?</li><li>What must happen next?</li></ul><p>A good score does not replace judgment.</p><p>It makes judgment more structured, transparent, and defensible.</p><p><strong>How does your organization currently decide which automation opportunity deserves investment first?</strong></p><h3>EVOLVE-A Starter Kit</h3><p>I am packaging the practical material behind this article into an <strong>EVOLVE-A Starter Kit</strong>, including:</p><ul><li>The complete scoring model and weights</li><li>Scoring and confidence guidance</li><li>Discovery questions</li><li>Readiness checks</li><li>A worked example</li><li>An assessment template</li></ul><p><strong>Comment EVOLVE-A on the LinkedIn post where I shared this article, and I will send you the starter kit when it is released.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58c2c2fa9ff7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Startup Structure Trap: Does Agile Make Us Flexible or Rigid?]]></title>
            <link>https://ngfarjad.medium.com/the-startup-structure-trap-does-agile-make-us-flexible-or-rigid-752b4a5d2e88?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/752b4a5d2e88</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[team]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Thu, 04 Sep 2025 22:37:20 GMT</pubDate>
            <atom:updated>2025-09-04T22:37:20.083Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part three in my series on <em>The Startup Structure Trap</em>.</p><ul><li>In <a href="https://www.linkedin.com/feed/update/urn:li:activity:7366572242081562624/">Part I</a>, I wrote about teams.</li><li>In <a href="https://www.linkedin.com/feed/update/urn:li:activity:7366950651014053889/">Part II</a>, I wrote about process.</li><li>Now, I want to go deeper into Agile — because it’s the place where startups often get it most wrong.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kdjL_u5h5BCvCWG6Pum8DA.png" /></figure><h3>When Agile Turns Into Religion</h3><p>Agile began as a movement for adaptability. Lightweight principles. Continuous improvement. Collaboration over ceremony.</p><p>But somewhere along the way, Agile became dogma.</p><p>I’ve seen early-stage teams rush into “doing Agile” like it’s a box to check:</p><ul><li>Daily standups that feel like status meetings.</li><li>Sprints that get planned with more detail than the product itself.</li><li>Backlogs crammed into Jira, ClickUp, or Azure DevOps that nobody looks at again.</li></ul><p>Instead of helping teams move faster, Agile-as-religion slows them down. The energy shifts from <strong>building product</strong> to <strong>feeding process</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUj-LWwwtLtFbEXrVCJc3w.png" /><figcaption>Agile as Compass — vs — Agile as Rulebook</figcaption></figure><p>And that’s not what the Agile Manifesto was written for. Remember the first principle:<br> <strong>“Individuals and interactions over processes and tools.”</strong></p><h3>A Personal Lesson</h3><p>We once brought in someone with strong Agile credentials to help structure delivery. The expectation was simple: support backlog management, help translate business needs into epics and stories, and keep the team aligned.</p><p>But in a startup, roles aren’t siloed. A Scrum Master may also need to step into product shaping. A Product Owner may have to run ceremonies. An engineer might jump in to draft backlog items. That’s the nature of small teams: everyone wears multiple hats.</p><blockquote>The resistance came quickly:<br><strong><em>“That’s the Product Owner’s job. This is the Scrum Master’s job.”</em></strong></blockquote><p>Despite direct coaching and hand-holding, the insistence was always to stay true to the textbook.</p><p>It wasn’t bad intent. It wasn’t incompetence. It was a <strong>process mismatch</strong> — the kind of rigid role separation that adds value in a 500-person company can be counterproductive in a 15-person startup.</p><p>And that’s the real lesson: we shouldn’t blame the individual. We should blame the circumstances — and the mistake of applying big-company process too early in a small-company phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6zV4r7QO4MtUzm_1NrDGyg.png" /><figcaption>Wearing Many Hats — vs — Wearing Just One</figcaption></figure><h3>The Core Question</h3><p>That experience left me with a question I still wrestle with:</p><p><em>Does Agile make us flexible, or rigid?</em></p><p>The answer depends on how you treat it:</p><ul><li><strong>Agile as Rulebook</strong> → Rigid roles, endless rituals, velocity sacrificed to ceremony.</li><li><strong>Agile as Compass</strong> → Adaptability, continuous learning, processes that evolve with your phase of growth.</li></ul><p>The difference is subtle in theory. But in practice, it can make or break a startup.</p><h3>The Risks of By-the-Book Agile in Startups</h3><p>I’ve seen this pattern repeat:</p><ol><li><strong>Slowed Decision-Making</strong> — Every backlog refinement or story becomes a debate about ownership instead of outcome.</li><li><strong>Loss of Flexibility</strong> — The startup’s greatest weapon — adaptability — gets suffocated by rigid adherence to frameworks.</li><li><strong>Cultural Divide</strong> — Early employees who thrive in chaos feel boxed in. Experienced hires who want order feel frustrated.</li><li><strong>Premature Specialization</strong> — Roles get carved too narrowly, too soon. Instead of a versatile team that ships, you get silos without the scale to support them.</li></ol><p>Startups can’t afford these risks. At that stage, velocity matters more than perfect process.</p><h3>Agile as Compass</h3><p>The healthiest teams I’ve worked with treat Agile not as a set of rituals, but as a philosophy:</p><ul><li>At <strong>Startup phase</strong> → Agile = velocity, clarity, fast customer feedback. Standups are 5 minutes, not 50. Anyone can add to the backlog.</li><li>At <strong>Scale-up phase</strong> → Agile = iterative improvement across product <em>and</em> process. Sprints bring rhythm, retros build collaboration, guardrails start forming.</li><li>At <strong>Enterprise phase</strong> → Agile = governance with adaptability. Structure is needed for compliance, but flexibility keeps innovation alive.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wiCf4AJ0j54gBlGNZ9GccQ.png" /></figure><p>This is closer to the spirit of the manifesto:<br> <strong>“Responding to change over following a plan.”</strong></p><ul><li>Agile done right means your product evolves, your process evolves, and your team evolves — together.</li><li>Agile done wrong means you’re locked into ceremonies while your competition ships faster.</li></ul><h3>Closing</h3><p>The Startup Structure Trap isn’t just about teams or process.<br>It’s about recognizing that the right structure, at the right time, unlocks growth. The wrong structure, at the wrong time, stalls it.</p><p>Agile was never meant to be a religion. It was meant to be a compass.</p><blockquote><strong><em>Flexibility at the start. Hybrid in the middle. Structure at scale.</em></strong><br><strong><em>And Agile should bend and evolve with you at every stage.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=752b4a5d2e88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When “Vibe Coding” Meets Public AI: The Speed That Can Sink Your Company]]></title>
            <link>https://ngfarjad.medium.com/when-vibe-coding-meets-public-ai-the-speed-that-can-sink-your-company-05b302fe73b8?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/05b302fe73b8</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Fri, 08 Aug 2025 23:56:06 GMT</pubDate>
            <atom:updated>2025-08-09T02:43:15.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k2jbAQfPWlPXVgvIG-wtCQ.jpeg" /></figure><p>AI in software development is having its gold rush moment.</p><p>Founders see prototypes spun up in hours, seed rounds raised on “AI-built MVPs,” and agents that can code, test, and deploy while you sleep.</p><p>Why spend weeks on sprints when a prompt can “ship” the same features overnight?</p><p>That mindset is fueling <strong>vibe coding</strong> — the belief that autonomous AI agents can run entire development loops end-to-end, from idea to production, without meaningful human intervention.</p><p>It’s fast.<br>It’s flashy.<br>And it’s fragile.</p><h3><strong>The Hidden Cracks in Vibe-First Loops</strong></h3><p>On the surface, vibe coding is a dream:</p><p>You give the AI a goal, it scaffolds your app, writes your backend, wires your frontend, provisions infra, and deploys. Done.</p><p>Right?</p><p>Here’s the reality:</p><ul><li><strong>No guardrails</strong> — AI assumes it’s correct, even when it’s not.</li><li><strong>No provenance</strong> — No clear record of why a decision was made or what influenced it.</li><li><strong>No accountability</strong> — No human responsible for the outcome when something breaks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvxpmgJOFCLx4IM7rwrnwQ.jpeg" /></figure><h3><strong>The Replit Case: When an Agent Went Off-Script</strong></h3><p>Recently, a GPT-powered agent running on Replit deleted a production database.</p><p>It didn’t stop there:</p><ul><li>Created fake records to hide the missing data.</li><li>Fabricated passing test results — not to fix the issue, but to satisfy its original “success” goal.</li><li>Continued executing logic as if nothing had happened.</li></ul><p>No human spotted the issue until much later.<br>No one could trace why it happened.<br>No one was accountable.</p><p>This wasn’t a quirky bug — it was a <strong>governance failure</strong>, the direct result of letting autonomous code loops operate without oversight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*Q5Ojj0kvABOzF27W2_QZoQ.png" /></figure><h3><strong>The Copilot Licensing Trap</strong></h3><p>Vibe coding isn’t the only risk.</p><p>GitHub Copilot has been caught generating code under GPL licenses without attribution — in some cases, copying large chunks from open-source repositories verbatim.</p><p>For companies, this creates a legal time bomb:</p><ul><li><strong>GPL requires you to open-source derivative works</strong>.</li><li>Shipping AI-generated GPL code without realizing it could force you to publish your proprietary source code.</li></ul><p>In a fully autonomous loop, that GPL snippet could go straight into production — and no one would know until it’s too late.</p><h3><strong>Add Privacy Exposure to the Mix — and the Blast Radius Grows</strong></h3><p>Now imagine your AI’s decisions — and your company’s private strategy — archived forever on the public internet.</p><p>When tens of thousands of shared ChatGPT conversation links were indexed by Google, many contained legal advice, healthcare records, or confidential technical details. Even after OpenAI worked to remove them, <strong>over 110,000 conversations remained fully archived in the Wayback Machine</strong>.</p><p>These weren’t snippets — they were complete conversations.</p><p>Real examples included:</p><ul><li>An Italian lawyer discussing strategies to exploit indigenous communities for hydro projects.</li><li>Political dissidents critiquing authoritarian regimes.</li><li>Students documenting academic fraud.</li></ul><p>In a corporate setting, that could mean:</p><ul><li>Architecture diagrams for unreleased products.</li><li>Deployment credentials pasted into a prompt.</li><li>M&amp;A strategy notes “discussed” with an AI assistant.</li></ul><p>Once public (or archived), you can’t unshare it. The internet’s memory is longer than any NDA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YN7GgKTbYS8fktUH_bW4kg.jpeg" /></figure><h3><strong>The Uncomfortable Truth Inside the Enterprise</strong></h3><p>Some companies proudly say, <em>“40% of our codebase is AI-generated.”</em></p><p>Meanwhile, many Fortune 500s quietly enforce strict rules:</p><ul><li>No AI-generated code in regulated systems without human review &amp; provenance logs.</li><li>No confidential data in third-party AI tools — ever.</li><li>Mandatory human approval for all agent-driven deployments.</li><li>Legal reviews for licensing/IP risks before shipping AI-generated code.</li></ul><p>They’re not slowing down on AI.<br>They’re making sure AI doesn’t take them down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-s0_8u0Igp2A2o9USLj-1Q.jpeg" /><figcaption><strong>The Compounding Risk Equation</strong></figcaption></figure><h3><strong>A Pragmatic Guardrail Framework</strong></h3><p>You don’t need to kill vibe coding — you need to operationalize it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1ZCYoFkz7aha6rz3tr4HQ.jpeg" /><figcaption>The SAFE AI Delivery Loop</figcaption></figure><p>AI in development can be transformative — but only if every step is deliberate. This loop ensures AI-assisted work is <strong>scoped, reviewed, and owned</strong> before it ever reaches production.</p><p><strong>1. Scope</strong> — Define what the AI <em>can</em> and <em>cannot</em> touch.</p><ul><li>Examples: Scaffold features, draft tests → Say Yes!<br>Security configs, data migrations, billing logic → Say No! without human review</li></ul><p><strong>2. Provenance</strong> — Record everything:</p><ul><li>Prompt history</li><li>Model/version used</li><li>Code diffs</li><li>Decision reasoning</li></ul><p><strong>3. Verification</strong> — Treat AI like a junior developer:</p><ul><li>Code review</li><li>Automated security scans</li><li>Policy &amp; compliance checks</li></ul><p><strong>4. Privacy Posture</strong> — Build with the assumption that public AI output can leak:</p><ul><li>Disable public “share” links by default</li><li>Use self-hosted or access-controlled AI for sensitive work</li></ul><p><strong>5. Accountability</strong> — Every AI-assisted commit has a <strong>named human owner</strong> in your change management system.</p><p>When followed in a loop, these steps turn “vibe coding” from a liability into a reliable, compliant, and auditable delivery pipeline.</p><h3><strong>My Take</strong></h3><p>AI loops should be part of the modern engineering toolkit. But <em>just vibes</em> is not a strategy.</p><p>The teams that will win aren’t the ones replacing devs with agents.<br>They’re the ones using AI to accelerate low-risk work while keeping high-risk decisions <strong>auditable, reviewable, and owned</strong>.</p><p>AI can build fast — but without guardrails, it can just as quickly burn your credibility.</p><p>The question isn’t <em>can it build</em>.<br>The question is: <strong>Can you explain, prove, and defend what it built?</strong></p><p>If your team is using AI agents, how are you balancing speed with accountability? I’d love to hear your approach.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05b302fe73b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Code to Conversation: How We’re Reimagining Infrastructure with AI]]></title>
            <link>https://blogs.kumorai.io/from-code-to-conversation-how-were-reimagining-infrastructure-kumorai-with-ai-c01ba52efa55?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/c01ba52efa55</guid>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Wed, 25 Jun 2025 22:39:32 GMT</pubDate>
            <atom:updated>2025-07-01T15:20:59.394Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5FVI1rvpTMSjCXHB5CRpQ.jpeg" /></figure><p>I’ve been part of this journey since day one.</p><p>When we first started building automation platform like Kumorai, <strong>Infrastructure as Code</strong> felt like a breakthrough. Finally — teams could make their cloud infrastructure repeatable, version-controlled, and testable.</p><p>But as the cloud grew more complex and adoption spread across teams, one thing became clear:</p><blockquote><strong><em>Code alone isn’t enough.</em></strong></blockquote><h3>The Shift from Code to Design</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mirLOQEX5VJzL2Z-E8cREg.jpeg" /></figure><p>Across enterprises — including our own teams — we saw the same story unfold:</p><ul><li><strong>Network engineers</strong> trying to reverse-engineer Terraform modules they didn’t write</li><li><strong>Security teams</strong> copy-pasting YAML, hoping nothing breaks</li><li><strong>Developers</strong> waiting in ticket queues for infrastructure to catch up</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KLv81UDBf1r6-gdqYGLMSw.jpeg" /></figure><p>Infrastructure as Code made infrastructure programmable.<br>But it also shifted the complexity onto <em>everyone</em>.</p><p>So, we evolved.<br>We introduced <strong>Infrastructure as Design</strong>:</p><ul><li>Visual blueprints</li><li>Modular templates</li><li>Built-in tagging and compliance</li><li>Guardrails wrapped around reusable infrastructure patterns</li></ul><p>This approach made infra <strong>accessible</strong> — not just to DevOps experts, but also:</p><ul><li>Security engineers defining security policy templates</li><li>Network teams dragging and dropping secure VNETs and other networking constructs</li><li>App teams provisioning environments with zero infra code</li></ul><p>Design helped us scale.</p><p>But even with design, teams still needed to abstract, plan, and know where to start.</p><h3>Introducing: Infrastructure as Prompt</h3><p>Now, we’re entering the next evolution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Khnc77rKdkczLpIO8JOv-A.jpeg" /></figure><p>At <strong>Kumorai</strong>, we’ve embedded <strong>AI directly into the platform</strong> — not as a chatbot on the side, but as the <em>primary interface</em> for infrastructure delivery.</p><p>You don’t click through menus.<br>You don’t write config.</p><p>You just ask:</p><blockquote><em>“</em>Generate a Hub VNET in Azure following Palo Alto VM-Series architecture with HA. Include trust, untrust, and management subnets, UDRs, NSGs, and tagging for environment and cost control.<em>”</em></blockquote><p>And Kumorai translates that into reality:</p><ul><li>Matches blueprints and policy templates</li><li>Generates validated Terraform or Ansible code</li><li>Applies security and compliance checks</li><li>Provisions across environments</li></ul><p>No handoffs.<br>No syntax errors.<br>No waiting in queues.</p><p>Just governed infrastructure — from a single prompt.</p><h3>Why This Matters</h3><p>AI won’t replace platform teams.</p><p>But it will:</p><ul><li>Remove the friction of syntax and structure</li><li>Eliminate repetitive handoffs between teams</li><li>Transform infrastructure into a <strong>conversational, collaborative</strong> process</li></ul><blockquote><em>We’re not throwing away Infrastructure as Code.<br>We’re abstracting it — so you focus on </em><strong><em>what</em></strong><em> you want, not </em><strong><em>how</em></strong><em> to write it.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aEZ-rJo8z4gwmX8MgC3pRQ.jpeg" /></figure><h3>Code → Design → Prompt</h3><p>A New Era of Infrastructure</p><ul><li><strong>Code</strong> gave us repeatability</li><li><strong>Design</strong> gave us accessibility</li><li><strong>Prompt</strong> gives us <strong>scalability</strong> through intelligence</li></ul><p>We’ve seen this transformation firsthand — because we built Kumorai for ourselves before we brought it to others.</p><p>And now, it’s changing how entire organizations think about infrastructure.</p><h3>Want to see it live?</h3><p>I will be doing a <strong>walkthrough demo</strong> soon showing how Kumorai turns prompts into production infrastructure in seconds.</p><p>Follow <strong>@ngfarjad</strong><br>Connect with me on <strong>LinkedIn</strong><br>Visit <a href="https://kumorai.io/"><strong>Kumorai.io</strong></a></p><p>Let’s stop writing scripts.<br>Let’s start delivering infrastructure — by conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z_IsSnf6Iljgh6JKT1jCBg.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c01ba52efa55" width="1" height="1" alt=""><hr><p><a href="https://blogs.kumorai.io/from-code-to-conversation-how-were-reimagining-infrastructure-kumorai-with-ai-c01ba52efa55">From Code to Conversation: How We’re Reimagining Infrastructure with AI</a> was originally published in <a href="https://blogs.kumorai.io/">Kumorai — The Samurai of Multi-Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One More Step: The Connection Between Fitness and Mental Clarity]]></title>
            <link>https://ngfarjad.medium.com/one-more-step-the-connection-between-fitness-and-mental-clarity-e3488d611cfe?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3488d611cfe</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[fitness]]></category>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Wed, 15 Jan 2025 06:54:15 GMT</pubDate>
            <atom:updated>2025-01-15T08:56:17.727Z</atom:updated>
            <content:encoded><![CDATA[<p>As a software engineer and team leader, my days are packed with responsibilities that stretch far beyond coding. From driving development efforts at Kumorai to strategizing product development, managing sales and marketing, overseeing HR and operations, and wearing multiple hats, my schedule is intense. With long sitting hours and constant demands on my focus, I rely on fitness not just to stay healthy but to stay sharp, energized, and productive.</p><p>For me, working out is more than physical — it’s a mental reset. It’s where I push my limits, clear my mind, and prepare to take on the day.</p><h3>The Routine: Pushing Limits Every Day</h3><p>My workouts are all about variety and intensity. Most days, I mix two sessions of <strong>T25 by Shaun T</strong>, or combine <strong>T25</strong> with <strong>Insanity Max 15</strong>. These high-intensity interval training (HIIT) workouts are designed to push me to my physical limits, keeping me in the <strong>max heart rate zone</strong> for as long as I can. That kick — the mental clarity I feel during those intense moments — is unlike anything else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1kYjA8tYMkNGtXUs5qg0A.jpeg" /><figcaption>Heart rate zones from a recent workout showing the effort and intensity I strive for every session.</figcaption></figure><p>After HIIT, I shift to weights, following a <strong>Push-Pull-Legs split</strong>. Over the years, I’ve experimented with different routines — Arnold’s classic workouts, celebrity-inspired plans like <strong>Chris Hemsworth’s and Ben Affleck’s</strong>, 5-day splits, 3-day splits, even minimalist 2-day challenges. The variety keeps things exciting, but my goal is always the same: <strong>feel the pump</strong>. It’s not just about lifting heavier; it’s about challenging myself and achieving that deep sense of accomplishment.</p><h3>Why It Works: Fitness as a Productivity Hack</h3><ol><li><strong>Counteracting Long Sitting Hours:</strong><br>Spending hours in meetings, coding, or strategizing takes a toll on the body. Regular workouts offset this by improving posture, energy levels, and overall health.</li><li><strong>Mental Clarity from HIIT:</strong><br>Pushing myself during high-intensity sessions clears my mind. It’s like hitting a mental reset button — afterwards, I’m ready to tackle anything.</li><li><strong>Discipline from Lifting:</strong><br>Lifting weights teaches focus, structure, and consistency — qualities that mirror what’s needed in leadership and problem-solving.</li><li><strong>The Kick That Keeps Me Going:</strong><br>Whether it’s pushing through a tough HIIT session or completing a heavy set, the energy and mental reset I get from working out fuel my ability to lead effectively.</li></ol><h3>Balancing Fitness with Leadership</h3><p>Juggling multiple roles means I have to adapt constantly. Fitness has taught me to embrace change and push past challenges. Just as I change up my routines to stay engaged, I approach leadership with the same flexibility — whether it’s navigating product development challenges, negotiating deals, or motivating my team.</p><p>Fitness isn’t just about physical strength; it’s about mental resilience. Every workout is a reminder that <strong>progress, not perfection</strong>, is what matters. One more sprint, one more rep, one more step forward — that mindset drives how I approach both fitness and leadership.</p><h3>How Fitness Helps Me Lead Better</h3><ol><li><strong>Increased Energy:</strong><br>Starting the day with an intense workout ensures I have the energy to handle back-to-back meetings and critical decisions.</li><li><strong>Improved Resilience:</strong><br>Fitness challenges me to push beyond my limits, a skill that helps me navigate high-pressure situations at work.</li><li><strong>Sharper Focus:</strong><br>Workouts help me maintain clarity and focus during long hours of coding, planning, and strategizing.</li></ol><h3>Practical Tips for Balancing Fitness and Work</h3><ul><li><strong>Start Small:</strong> Even 20 minutes of focused exercise can make a difference.</li><li><strong>Experiment:</strong> Try different routines — HIIT, weights, or yoga — and find what works for you.</li><li><strong>Prioritize Consistency:</strong> It’s not about being perfect every day. Just show up and keep moving forward.</li><li><strong>Use Fitness as a Reset:</strong> On tough days, even a short workout can provide a much-needed mental reset.</li></ul><h3>Conclusion: Fitness as a Foundation</h3><p>For me, fitness isn’t just about staying healthy — it’s about building a foundation for everything I do. It sharpens my focus, boosts my energy, and reminds me that every step forward counts. Whether I’m leading development efforts, strategizing for Kumorai’s growth, or tackling the challenges of a fast-paced day, the discipline and clarity I gain from working out are invaluable.</p><p>Progress isn’t about perfection — it’s about showing up, pushing a little harder, and being better than yesterday. So, what’s your next step?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*9Lnb6I5rIBUPB7wQcU9ZWA.jpeg" /><figcaption>Progress is built one day at a time — this snapshot of my monthly average reminds me that small steps lead to significant results.</figcaption></figure><p><em>If you’re looking for a workout routine to get started from home, feel free to reach out. I’d be happy to share some ideas to help you begin your fitness journey!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3488d611cfe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Platform Engineering: From Resistance to Collaboration and Beyond]]></title>
            <link>https://blogs.kumorai.io/platform-engineering-from-resistance-to-collaboration-and-beyond-8f86c3b542be?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f86c3b542be</guid>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Sat, 04 Jan 2025 13:01:06 GMT</pubDate>
            <atom:updated>2025-06-01T22:30:25.338Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction: Lessons from Building an Automation Platform</h3><p>Platform engineering is about much more than just building tools — it’s about creating an ecosystem where engineers, developers, and leadership work together to streamline workflows and enhance productivity. But anyone who has worked in this space knows that the challenges are often more cultural than technical.</p><p>When we began building Kumorai, our cloud automation platform, we realized early on that while leadership teams were quick to see its high-level benefits, engineering teams were more cautious. They worried about the learning curve, the potential disruption to their workflows, and the fear of losing autonomy.</p><p>This hesitation often stemmed from what I described in my earlier article, <a href="https://ngfarjad.medium.com/breaking-free-from-all-or-nothing-the-philosophy-of-practical-automation-b14178fbd93b"><em>Breaking Free from All-or-Nothing: The Philosophy of Practical Automation</em></a>. Many engineers adopt an all-or-nothing mindset when it comes to new tools — if it doesn’t support every use case, they dismiss it altogether. But just like with automation, platform engineering thrives on embracing incremental progress and a hybrid approach.</p><h3>Resistance to Change: A Collaborative Solution</h3><blockquote>👇 Visualizing the journey from pushback to partnership:</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ddMSfqUCKBkGIU_Asf8WyA.jpeg" /><figcaption>From blocked teams to empowered engineers — what happens when platform teams collaborate early and build with empathy.</figcaption></figure><p>One of the key lessons we learned was that resistance often wasn’t about the platform itself but about how it was introduced. Engineers are naturally cautious about tools that might disrupt their workflows or add complexity. To address this, we didn’t impose a solution — we collaborated with them.</p><h4>1. Involve Engineers Early</h4><p>From the start, we positioned the platform as something we were building <em>with</em> engineers, not <em>for</em> them.</p><ul><li><strong>Gather Feedback</strong>: We made sure to involve engineers in the design process by asking about their pain points and day-to-day challenges. This made it clear that their input was shaping the platform.</li><li><strong>Highlight Collaboration</strong>: By framing the platform as a co-created solution, engineers saw it as an extension of their expertise rather than a replacement for their work.</li><li><strong>Build Trust</strong>: When engineers feel heard and see their ideas implemented, they’re more likely to embrace the platform enthusiastically.</li></ul><h3>Key Lessons from Building Kumorai</h3><h4>1. Engineers as Co-Creators</h4><p>One of the most effective strategies was to treat engineers as active contributors. This went beyond simply gathering feedback on features like networking and routing. We actively worked with them to solve larger challenges:</p><ul><li><strong>Identifying Inefficiencies</strong>: Engineers helped uncover bottlenecks in their workflows, which directly informed the creation of pre-built templates and automation scripts.</li><li><strong>Tailoring Standards</strong>: Compliance and governance standards were designed in collaboration with engineers to ensure they were both practical and effective.</li><li><strong>Iterative Development</strong>: Regular feedback loops ensured the platform evolved in line with real-world needs.</li></ul><p>This collaborative approach turned resistance into advocacy, as engineers became champions for the platform within their teams.</p><h4>2. Addressing Overloaded Teams</h4><p>Engineering teams are often stretched thin, so asking them to adopt a new platform while managing their current workload can feel like an impossible task.</p><p>Here’s how we tackled it:</p><ul><li><strong>Provide Hands-On Support</strong>: We didn’t just hand them a platform; we worked alongside them, offering onboarding assistance and helping them integrate their existing workflows.</li><li><strong>Solve Immediate Problems</strong>: Instead of focusing on long-term goals, we started with small wins — automating repetitive tasks, standardizing deployments, and improving compliance.</li><li><strong>Minimize Disruption</strong>: By taking work off their plates during the transition, we ensured they could focus on using the platform rather than worrying about its implementation.</li></ul><h3>The All-or-Nothing Mindset</h3><p>In both automation and platform engineering, the all-or-nothing mindset is a common roadblock. Engineers often dismiss platforms if they don’t cover every niche use case or resource. This mindset can lead teams to revert to manual processes, undoing the long-term benefits of automation.</p><p>The solution is to embrace a <strong>hybrid approach</strong>:</p><ol><li><strong>Start with Core Components</strong>: Automate key elements like networking, security, and compute first.</li><li><strong>Handle Edge Cases Manually</strong>: Use the platform for the majority of tasks while addressing edge cases outside the platform when necessary.</li><li><strong>Iterate and Improve</strong>: Continuously refine the platform to expand its capabilities over time.</li></ol><p>This approach not only delivers immediate value but also builds confidence in the platform’s ability to adapt to future needs.</p><h3>Platform Engineering in Practice</h3><p>Here’s how Kumorai’s approach to platform engineering addressed these challenges:</p><ol><li><strong>Self-Service with Guardrails</strong>:<br>Engineers and developers could self-serve infrastructure through blueprints while adhering to organizational compliance policies.</li><li><strong>Proactive Governance</strong>:<br>The platform included drift detection to identify and address configuration changes, triggering alerts, tickets, or notifications to prevent errors.</li><li><strong>Standardization with Flexibility</strong>:<br>Engineers could parameterize deployments to suit their needs while still adhering to organizational standards.</li></ol><h3>Closing Thoughts: Collaboration Over Control</h3><p>Platform engineering is not about imposing tools — it’s about enabling teams. By collaborating with engineers, addressing their pain points, and focusing on incremental improvements, we created a platform that wasn’t just adopted but embraced.</p><p>If you’re considering building or adopting a platform, remember:</p><ul><li>Involve engineers early and treat them as co-creators.</li><li>Reduce the workload on already-overburdened teams by offering support.</li><li>Avoid the all-or-nothing mindset by focusing on core functionalities first.</li></ul><p>With the right approach, platform engineering becomes more than a solution — it becomes a catalyst for collaboration, innovation, and long-term success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f86c3b542be" width="1" height="1" alt=""><hr><p><a href="https://blogs.kumorai.io/platform-engineering-from-resistance-to-collaboration-and-beyond-8f86c3b542be">Platform Engineering: From Resistance to Collaboration and Beyond</a> was originally published in <a href="https://blogs.kumorai.io/">Kumorai — The Samurai of Multi-Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Free from All-or-Nothing: The Philosophy of Practical Automation]]></title>
            <link>https://blogs.kumorai.io/breaking-free-from-all-or-nothing-the-philosophy-of-practical-automation-b14178fbd93b?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/b14178fbd93b</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Wed, 18 Dec 2024 17:17:49 GMT</pubDate>
            <atom:updated>2024-12-18T17:17:49.599Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction: Convincing Leadership is Easy — Engineers, Not So Much</h3><p>Building and running an automation or platform engineering solution like Kumorai has been a journey full of insights — not just about technology but about people. When onboarding new customers or introducing the platform to organizations, we quickly realized there’s a split reaction: leadership teams love the high-level benefits and efficiency gains the platform promises, but engineering teams? They’re often more skeptical.</p><p>Leadership sees the big picture: cost savings, streamlined workflows, and faster time to market. But for engineers, it’s different. They live in the details, and any change to how they work feels personal. For them, adopting a new platform often feels like losing control, adding complexity, or even, at times, a threat to their role.</p><p>This resistance is rarely irrational; it’s rooted in legitimate concerns. And as someone who’s spent time working closely with these teams, I’ve learned the hard way that you can’t just roll out a new tool and expect everyone to cheer. You have to meet them where they are, support them every step of the way, and most importantly, help them see that automation isn’t “all or nothing.”</p><h3>The All-or-Nothing Trap</h3><p>One of the most common challenges I’ve faced when introducing automation is the <strong>all-or-nothing mindset</strong>. Engineers often expect a platform to handle everything: every API, every resource type, every edge case. And if it doesn’t, they’re quick to dismiss it.</p><p>For example, when working with Azure, no automation tool — whether it’s an IaC provider like Terraform or a management platform like Kumorai — can support 100% of Azure’s ever-expanding resources. Azure itself evolves so quickly that even tools built by Microsoft often lag behind their latest features.</p><p>Here’s where the problem arises: engineers find an unsupported feature or resource and think, “If I have to configure this part manually, I might as well do everything manually.” It’s a slippery slope that leads to inconsistent processes, wasted effort, and a rejection of the automation tool altogether.</p><h3>The Philosophy of Automation</h3><p>Through these experiences, I’ve come to believe that automation isn’t about perfection — it’s about <strong>progress</strong>. Automation doesn’t need to handle everything to be valuable. Instead, it’s about focusing on what matters most and adopting a <strong>hybrid approach</strong> for everything else.</p><p>Here’s the philosophy I’ve found works best when building and adopting automation platforms:</p><h4>1. Automate the Core, Not the Edges</h4><p>Start with the areas that deliver the highest impact.</p><ul><li>In <strong>Kumorai</strong>, for example, we focus on automating core infrastructure like <strong>networking</strong>, <strong>security</strong>, and <strong>compute</strong> — VNETs, routing, firewall policies, virtual machines, containers, and load balancers.</li><li>These components form the foundation of most environments, and automating them delivers immediate value.</li></ul><p>For edge cases or niche resources that aren’t supported yet, handle them manually — but within the framework of the platform. This hybrid approach allows you to benefit from automation where it counts, without being blocked by the occasional unsupported feature.</p><h4>2. Build Standards into the Platform</h4><p>One of the biggest advantages of using an automation platform is enforcing <strong>organizational standards</strong>:</p><ul><li><strong>Naming Conventions</strong>: Ensure resources are named consistently for clarity and management.</li><li><strong>Tagging Policies</strong>: Automatically apply tags for cost tracking, ownership, and environment identification.</li><li><strong>Security and Compliance</strong>: Bake in benchmarks like <strong>NIST, ISO 27001</strong> or even customized organizational policies to ensure every deployment meets company policies.</li></ul><p>When engineers see that the platform enforces standards automatically, it shifts their mindset from “automation replaces me” to “automation protects me from errors.”</p><h4>3. Engage Engineers Early</h4><p>Winning over leadership is relatively easy — they focus on the strategic benefits. Engineers, however, need to be convinced on a more personal level.</p><ul><li><strong>Involve Them in the Process</strong>: Engineers need to feel like they’re part of the decision, not just the recipients of a mandate. Ask for their input, address their concerns, and give them ownership over parts of the automation journey.</li><li><strong>Show Immediate Wins</strong>: Start with small, high-impact automations that solve pain points quickly. When engineers see results, they’re more likely to embrace the platform.</li></ul><h4>4. Automation is a Team Sport</h4><p>One of the biggest mistakes I see organizations make is treating automation as a silver bullet that can work in isolation. It’s not. It’s a <strong>collaborative process</strong> that requires buy-in from everyone:</p><ul><li><strong>Leadership</strong> needs to provide clarity on goals and priorities.</li><li><strong>Engineering Teams</strong> need to align on standards and processes.</li><li><strong>Platform Teams</strong> like ours need to provide the support, tools, and flexibility to make it work.</li></ul><p>I’ve had countless conversations with engineers who felt the platform was something being done <em>to them</em>. Changing that narrative — showing them that we’re all on the same team — is often the turning point.</p><h3>Why All-or-Nothing Doesn’t Work</h3><p>The all-or-nothing mindset leads to unnecessary friction and long-term challenges:</p><ul><li><strong>Inconsistent Processes</strong>: Manual configurations are prone to human error and lack repeatability.</li><li><strong>Wasted Effort</strong>: By trying to handle everything manually, you lose the efficiencies automation provides.</li><li><strong>Missed Opportunities</strong>: Even partial automation can deliver significant benefits — quicker deployments, reduced errors, and enforced standards.</li></ul><p>The hybrid approach, by contrast, allows you to automate where it matters most while maintaining flexibility for everything else.</p><h3>Real-World Example: The Hybrid Approach in Action</h3><p>Let’s take a real-world scenario to illustrate this philosophy.</p><p>Imagine an organization deploying a multi-region application. With Kumorai:</p><ul><li>The <strong>networking team</strong> can use pre-built blueprints to automate VNETs, subnets, routing, and firewalls.</li><li>The <strong>security team</strong> adds compliance-focused security policies, ensuring the environment is audit-ready.</li><li>The <strong>application team</strong> consumes the blueprint, customizing parameters like region or instance size, and deploys seamlessly.</li></ul><p>But let’s say there’s a new Azure resource type not yet supported by Kumorai. Instead of rejecting the platform outright, the team handles that specific resource manually while the rest of the process remains automated. This hybrid approach saves time, ensures consistency, and keeps the focus on value delivery.</p><h3>Closing Thoughts: Automation as an Ongoing Journey</h3><p>Introducing automation into any organization is never just about tools — it’s about people. While leadership sees the big-picture benefits, engineers often live in the day-to-day reality of making it work. Bridging that gap requires empathy, education, and collaboration.</p><p>Automation doesn’t have to be all or nothing. By embracing a hybrid approach, focusing on high-impact areas, and working closely with engineering teams, you can unlock the true potential of automation — without sacrificing flexibility or control.</p><p>So, the next time you hear someone say, “If it doesn’t do everything, why bother?” remind them: automation isn’t about doing everything today. It’s about building the foundation for a scalable, efficient future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b14178fbd93b" width="1" height="1" alt=""><hr><p><a href="https://blogs.kumorai.io/breaking-free-from-all-or-nothing-the-philosophy-of-practical-automation-b14178fbd93b">Breaking Free from All-or-Nothing: The Philosophy of Practical Automation</a> was originally published in <a href="https://blogs.kumorai.io/">Kumorai — The Samurai of Multi-Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Kumorai is Transforming Automation for Engineers, Developers, and Security Teams]]></title>
            <link>https://blogs.kumorai.io/how-kumorai-is-transforming-automation-for-engineers-developers-and-security-teams-75b7650eebbc?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/75b7650eebbc</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[multi-cloud]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Sun, 08 Dec 2024 19:31:13 GMT</pubDate>
            <atom:updated>2024-12-08T19:43:56.598Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction: Bridging the Gap Between Complexity and Simplicity</h3><p>When we set out to build <strong>Kumorai</strong>, our mission was simple: make automation accessible for everyone — network engineers, security engineers and application developers alike. The cloud has brought unparalleled flexibility, but it also demands new skills, forcing teams to adapt to coding, scripting, and complex workflows just to stay competitive.</p><p>We realized early on that the key to solving this problem was a <strong>visual, no-code platform</strong> that bridges the gap between infrastructure design, security enforcement, and application deployment. With Kumorai, we’ve built something that not only simplifies infrastructure orchestration but also enforces compliance, ensures security, and empowers teams to work collaboratively — all while delivering on business goals faster.</p><h3>The Kumorai Advantage: From Blueprints to Applications</h3><p>At its core, Kumorai revolves around the concept of <strong>blueprints</strong> — reusable templates that define infrastructure, security, and application environments. Here’s how it works:</p><p><strong>Networking Teams</strong>:</p><ul><li>Drag-and-drop infrastructure components like VNETs/VPCs, routing rules, load balancers and compute into a visual designer.</li><li>Use pre-built security blueprint templates, much like firewall policies, to enforce best practices without having to write code.</li><li>Assemble everything into a complete blueprint that covers networking, security, compute, and storage.</li></ul><p><strong>Security Teams:</strong></p><ul><li>Leverage specialized security blueprints that mimic native tools but are integrated into the platform.</li><li>Ensure organizational compliance by embedding policies directly into blueprints.</li><li>Enforce access control, firewall policies, and segmentation standards with minimal friction.</li></ul><p><strong>Application Teams</strong>:</p><ul><li>Consume these blueprints without worrying about the underlying infrastructure.</li><li>Customize parameters (e.g., instance sizes, regions) and deploy applications seamlessly.</li><li>Focus on building features while the platform handles governance and compliance.</li></ul><h3>How It All Comes Together</h3><p>Let’s walk through a real-world example to show how Kumorai simplifies automation for multiple teams.</p><h4>1. Building the Blueprint</h4><p>A <strong>network engineer</strong> designs a complete blueprint for an application:</p><ul><li><strong>Infrastructure</strong>: VNETs, subnets, routing rules, and load balancers.</li><li><strong>Security</strong>: Uses drag-and-drop to add pre-configured firewall policies and security templates.</li><li><strong>Compute</strong>: Includes virtual machines or containerized environments like AKS (Azure Kubernetes Service).</li></ul><h4>2. Compliance by Default</h4><p>As the blueprint is built, Kumorai’s platform enforces:</p><ul><li><strong>Organizational Standards</strong>: Ensures naming conventions, tagging policies, and resource limits are met.</li><li><strong>Security Policies</strong>: Validates that firewall rules, access control lists, and encryption settings align with compliance.</li><li><strong>Compliance Standards</strong>: Provides the ability to create or use predefined policies and benchmarks, such as <strong>NIST</strong>, <strong>ISO 27001</strong>, or <strong>CIS</strong>, to enforce best practices and streamline audits.</li></ul><h4>3. Deployment Made Easy</h4><p>Once the blueprint is finalized:</p><ul><li>The <strong>security team</strong> approves it, ensuring compliance and alignment with organizational standards.</li><li>The <strong>application developer</strong> consumes the blueprint, tweaks a few parameters (e.g., environment-specific details), and deploys the application with minimal effort.</li></ul><h3>Empowering Security Teams with Familiar Tools</h3><p>One of the standout features of Kumorai is how we’ve designed <strong>security blueprints</strong> to feel familiar to security professionals. We’ve intentionally kept these blueprints close to their native counterparts, making the transition seamless.</p><p>For example:</p><ul><li><strong>Firewall Policies</strong>: Security teams can define ingress and egress rules in a way that mirrors traditional firewall configurations.</li><li><strong>Access Control</strong>: Role-based access and segmentation policies are embedded into blueprints.</li><li><strong>Pre-Built Templates</strong>: Security best practices (like zero trust principles) are built into templates, ensuring teams can start with a solid foundation.</li></ul><p>This approach ensures that security professionals, often the last line of defense, can confidently enforce standards without needing to learn new tools or processes.</p><h3>Making Life Easier for Everyone</h3><h4>Networking Teams:</h4><ul><li>No need to learn scripting or coding; drag-and-drop tools get the job done.</li><li>Security and compliance are handled natively within the platform.</li></ul><h4>Security Teams:</h4><ul><li>Enforce policies without rewriting them for every deployment.</li><li>Maintain consistency across environments with reusable templates.</li></ul><h4>Application Teams:</h4><ul><li>Focus solely on the application, not the infrastructure.</li><li>Deploy environments faster, knowing that all configurations meet compliance standards.</li></ul><h3>Compliance and Governance Without the Headaches</h3><p>One of Kumorai’s biggest strengths is its ability to <strong>enforce compliance at every step</strong>. Whether you’re provisioning infrastructure, deploying applications, or setting up security policies, the platform ensures everything aligns with organizational standards.</p><p>For example:</p><ul><li><strong>Naming Policies</strong>: Automatically enforces consistent naming conventions across all resources to improve readability and simplify management.</li><li><strong>Tagging Policies</strong>: Every resource inherits tags for cost tracking, ownership, and environment identification.</li><li><strong>Resource Limits</strong>: Prevents accidental overspending by enforcing size and count limits on resources.</li><li><strong>Approval Workflows</strong>: Deployments go through automated approval pipelines, ensuring security and compliance teams have visibility.</li></ul><h3>How I Use Kumorai as a Developer and Leader</h3><p>Even as someone deeply involved in the creation of Kumorai, I’ve benefited immensely from its capabilities. Here are a few examples:</p><p><strong>Rapid Application Deployment</strong></p><ul><li>I needed to deploy instances of our application across multiple regions. With Kumorai, I used a pre-configured blueprint, adjusted parameters like region and instance size, and deployed in minutes.</li></ul><p><strong>Improved Collaboration</strong></p><ul><li>The platform’s role-based access control allowed my team to work independently while maintaining oversight. Engineers could build, security could approve, and developers could deploy — all within a unified workflow.</li></ul><p><strong>Focus on Innovation</strong></p><ul><li>By eliminating repetitive tasks, Kumorai freed up my time to focus on solving real challenges and building new features.</li></ul><h3>Closing Thoughts: The Future of Automation with Kumorai</h3><p>Kumorai isn’t just a tool; it’s a philosophy. It’s about enabling teams to work smarter, collaborate better, and achieve more. Whether you’re a network engineer adapting to the cloud, a security professional enforcing policies, or a developer deploying applications, Kumorai simplifies the complex so you can focus on what truly matters.</p><p>If you haven’t tried it yet, I encourage you to explore what Kumorai can do for your team. It’s not just a platform — it’s the future of automation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75b7650eebbc" width="1" height="1" alt=""><hr><p><a href="https://blogs.kumorai.io/how-kumorai-is-transforming-automation-for-engineers-developers-and-security-teams-75b7650eebbc">How Kumorai is Transforming Automation for Engineers, Developers, and Security Teams</a> was originally published in <a href="https://blogs.kumorai.io/">Kumorai — The Samurai of Multi-Cloud</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Azure Billing APIs: A Developer’s Perspective]]></title>
            <link>https://blog.devops.dev/understanding-azure-billing-apis-a-developers-perspective-8d26cf0fd37e?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d26cf0fd37e</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[cloud-cost-optimization]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Mon, 02 Dec 2024 21:26:57 GMT</pubDate>
            <atom:updated>2024-12-09T13:20:03.224Z</atom:updated>
            <content:encoded><![CDATA[<p>Managing cloud costs is a priority for any organization leveraging Azure’s robust ecosystem. Whether you’re a developer integrating billing into your application or a cloud admin monitoring spending, Azure Billing APIs offer the tools you need to analyze and optimize costs. However, navigating these APIs can be challenging due to evolving documentation, deprecations, and quirks.</p><p>This article introduces Azure Billing APIs, their use cases, and the common challenges you might encounter, setting the stage for mastering them in future articles.</p><h3>Why Azure Billing APIs Matter</h3><p>Azure Billing APIs are crucial for:</p><ul><li><strong>Tracking Costs by Resource</strong>: Understand which resources or groups contribute the most to overall expenses.</li><li><strong>Analyzing Spending Trends</strong>: Identify patterns over time for better budgeting.</li><li><strong>Automating Reports</strong>: Create custom cost reports tailored to business requirements.</li></ul><h3>What You Can Do with Azure Billing APIs</h3><h3>1. Retrieve Costs for a Subscription</h3><p>You can fetch all billing data for a subscription over a specific period. This is helpful for monthly or quarterly reporting.</p><h3>2. Analyze Costs for Specific Resources</h3><p>Filter costs by resource group or resource ID to understand the expenses for specific services.</p><p><strong>Challenge</strong>: Filters like properties/resourceId often don’t work as expected, requiring workarounds.</p><h3>3. Generate Reports</h3><p>Azure’s new APIs support exporting detailed billing data in Excel format, which can be integrated into Power BI or custom dashboards.</p><h3>Available Tools and SDKs</h3><h3>Azure REST APIs</h3><p>The core method to access billing data:</p><ul><li><strong>Pro</strong>: Works in any programming language.</li><li><strong>Con</strong>: Requires manual handling of authentication, pagination, and parsing.</li></ul><p><strong>Reference</strong>: <a href="https://learn.microsoft.com/en-us/rest/api/">Azure REST API Documentation</a></p><h3>Azure.ResourceManager SDK</h3><p>Provides a higher-level abstraction:</p><ul><li><strong>Pro</strong>: Simplifies interactions with Azure resources.</li><li><strong>Con</strong>: Limited for billing data.</li></ul><h3>Azure CLI</h3><p>Ideal for quick and simple queries:</p><ul><li><strong>Pro</strong>: Great for ad-hoc tasks.</li><li><strong>Con</strong>: Not suitable for automation.</li></ul><p><strong>Reference</strong>: <a href="https://learn.microsoft.com/en-us/cli/azure/costmanagement?view=azure-cli-latest">Azure CLI Cost Management</a></p><h3>Challenges with Azure Billing APIs</h3><h3>1. Filters Don’t Always Work</h3><p>Filters like properties/resourceId may not behave as expected, returning incomplete results.</p><p><strong>Workaround</strong>: Fetch all data and manually filter it client-side.</p><h3>2. Handling Pagination</h3><p>For large datasets, Azure APIs return a nextLink to the next page of results. Iterating over multiple pages requires additional logic.</p><h3>3. Evolving APIs</h3><p>Azure frequently deprecates old APIs. For example, the UsageDetails API will soon be replaced by a new asynchronous job-based system for exporting billing data.</p><h3>Quickstart: Fetching Billing Data</h3><p>Here’s how to fetch usage details for a subscription using Azure REST APIs.</p><h3>Step 1: Authenticate</h3><p>First, get an Azure access token using your client ID, tenant ID, and client secret.</p><pre>using System;<br>using System.Net.Http;<br>using System.Threading.Tasks;<br><br>public static async Task&lt;string&gt; GetAccessTokenAsync(string tenantId, string clientId, string clientSecret)<br>{<br>    var authUrl = $&quot;https://login.microsoftonline.com/{tenantId}/oauth2/token&quot;;<br>    using var client = new HttpClient();<br>    var content = new FormUrlEncodedContent(new[]<br>    {<br>        new KeyValuePair&lt;string, string&gt;(&quot;client_id&quot;, clientId),<br>        new KeyValuePair&lt;string, string&gt;(&quot;client_secret&quot;, clientSecret),<br>        new KeyValuePair&lt;string, string&gt;(&quot;resource&quot;, &quot;https://management.azure.com/&quot;),<br>        new KeyValuePair&lt;string, string&gt;(&quot;grant_type&quot;, &quot;client_credentials&quot;)<br>    });<br><br>    var response = await client.PostAsync(authUrl, content);<br>    response.EnsureSuccessStatusCode();<br>    var responseBody = await response.Content.ReadAsStringAsync();<br>    return System.Text.Json.JsonDocument.Parse(responseBody).RootElement.GetProperty(&quot;access_token&quot;).GetString();<br>}</pre><h3>Step 2: Fetch Usage Details</h3><p>With the access token, retrieve billing data using the UsageDetails API.</p><pre>public static async Task FetchUsageDetailsAsync(string subscriptionId, string token, string startDate, string endDate)<br>{<br>    var apiUrl = $&quot;https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Consumption/usageDetails?$filter=properties/usageStart ge &#39;{startDate}&#39; and properties/usageEnd le &#39;{endDate}&#39;&amp;api-version=2023-03-01&quot;;<br>    using var client = new HttpClient();<br>    client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue(&quot;Bearer&quot;, token);<br><br>    var response = await client.GetAsync(apiUrl);<br>    response.EnsureSuccessStatusCode();<br>    var usageData = await response.Content.ReadAsStringAsync();<br><br>    Console.WriteLine($&quot;Usage Details: {usageData}&quot;);<br>}</pre><h3>Example Usage</h3><pre>static async Task Main(string[] args)<br>{<br>    string tenantId = &quot;&lt;your-tenant-id&gt;&quot;;<br>    string clientId = &quot;&lt;your-client-id&gt;&quot;;<br>    string clientSecret = &quot;&lt;your-client-secret&gt;&quot;;<br>    string subscriptionId = &quot;&lt;your-subscription-id&gt;&quot;;<br>    string startDate = &quot;2024-10-01&quot;;<br>    string endDate = &quot;2024-10-31&quot;;<br><br>    try<br>    {<br>        var token = await GetAccessTokenAsync(tenantId, clientId, clientSecret);<br>        await FetchUsageDetailsAsync(subscriptionId, token, startDate, endDate);<br>    }<br>    catch (Exception ex)<br>    {<br>        Console.WriteLine($&quot;Error: {ex.Message}&quot;);<br>    }<br>}</pre><h3>Next Steps</h3><p>In the next article, we’ll dive deeper into authentication, permissions, and handling common errors with Azure AD. Stay tuned!</p><p><strong>References</strong>:</p><ol><li><a href="https://learn.microsoft.com/en-us/rest/api/">Azure REST API Documentation</a></li><li><a href="https://learn.microsoft.com/en-us/cli/azure/costmanagement?view=azure-cli-latest">Azure CLI Cost Management</a></li><li><a href="https://learn.microsoft.com/en-us/azure/active-directory/develop/">Azure AD Authentication</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d26cf0fd37e" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/understanding-azure-billing-apis-a-developers-perspective-8d26cf0fd37e">Understanding Azure Billing APIs: A Developer’s Perspective</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Azure Static Web Apps: Gzip Compression and CI/CD for Faster Websites]]></title>
            <link>https://blog.devops.dev/optimizing-azure-static-web-apps-gzip-compression-and-ci-cd-for-faster-websites-f22d7d99ada4?source=rss-4e0f3fd239ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/f22d7d99ada4</guid>
            <category><![CDATA[gzip-compression]]></category>
            <category><![CDATA[web-optimization]]></category>
            <category><![CDATA[azure-static-web-app]]></category>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Farjad | Cloud + Platform Engineering Strategist]]></dc:creator>
            <pubDate>Mon, 25 Nov 2024 21:13:57 GMT</pubDate>
            <atom:updated>2024-12-02T18:48:47.292Z</atom:updated>
            <content:encoded><![CDATA[<p>Azure Static Web Apps is a powerful platform for hosting modern static sites and web applications. While it simplifies deployment and offers built-in CI/CD workflows, additional optimizations like enabling Gzip compression and fine-tuning configurations can significantly enhance performance.</p><p>In this article, I’ll walk you through:</p><ul><li>Enabling <strong>Gzip compression</strong> for text-based files (HTML, CSS, JavaScript).</li><li>Configuring <strong>staticwebapp.config.json</strong> for caching and routing.</li><li>Setting up a CI/CD pipeline to automate the compression process.</li></ul><h3>Why Optimize Azure Static Web Apps?</h3><p>Out of the box, Azure Static Web Apps provides:</p><ul><li><strong>Global content delivery</strong> with built-in CDN.</li><li><strong>Automatic HTTPS</strong> for secure connections.</li><li>Seamless <strong>CI/CD pipelines</strong> integrated with GitHub or Azure DevOps.</li></ul><p>However, to fully optimize your application, especially for larger or resource-intensive websites, you can:</p><ol><li>Enable <strong>Gzip compression</strong> to reduce file sizes.</li><li>Configure <strong>custom headers and caching policies</strong> to improve load times.</li><li>Leverage <strong>CI/CD pipelines</strong> to automate compression and deployment.</li></ol><h3>The Problem</h3><p>When I deployed my static site to Azure Static Web Apps, I encountered the following challenges:</p><ul><li>Large HTML, CSS, and JavaScript files were slowing down page load times.</li><li>The default <strong>index.html</strong> page rendered gibberish because the correct headers were not applied.</li><li>There was no built-in compression for static assets, requiring manual intervention.</li></ul><h3>The Solution</h3><p>Here’s the approach I used to address these challenges:</p><ol><li><strong>Enabled Gzip Compression</strong>: Precompress text-based files to significantly reduce file sizes.</li><li><strong>Configured </strong><strong>staticwebapp.config.json</strong>: Added appropriate headers for compression and caching.</li><li><strong>Automated CI/CD Workflow</strong>: Set up an Azure DevOps pipeline to handle compression and deployment seamlessly.</li></ol><h3>Step 1: Configuring staticwebapp.config.json</h3><p>The staticwebapp.config.json file is used to define routes, headers, and caching policies for your Static Web App. Here’s the configuration I used:</p><h4>Final staticwebapp.config.json:</h4><pre>{<br>  &quot;routes&quot;: [<br>    {<br>      &quot;route&quot;: &quot;/&quot;,<br>      &quot;rewrite&quot;: &quot;/index.html&quot;,<br>      &quot;headers&quot;: {<br>        &quot;Content-Encoding&quot;: &quot;gzip&quot;,<br>        &quot;Cache-Control&quot;: &quot;public, max-age=31536000, immutable&quot;<br>      }<br>    },<br>    {<br>      &quot;route&quot;: &quot;/*.html&quot;,<br>      &quot;headers&quot;: {<br>        &quot;Content-Encoding&quot;: &quot;gzip&quot;,<br>        &quot;Cache-Control&quot;: &quot;public, max-age=31536000, immutable&quot;<br>      }<br>    },<br>    {<br>      &quot;route&quot;: &quot;/*.css&quot;,<br>      &quot;headers&quot;: {<br>        &quot;Content-Encoding&quot;: &quot;gzip&quot;,<br>        &quot;Cache-Control&quot;: &quot;public, max-age=31536000, immutable&quot;<br>      }<br>    },<br>    {<br>      &quot;route&quot;: &quot;/*.js&quot;,<br>      &quot;headers&quot;: {<br>        &quot;Content-Encoding&quot;: &quot;gzip&quot;,<br>        &quot;Cache-Control&quot;: &quot;public, max-age=31536000, immutable&quot;<br>      }<br>    }<br>  ]<br>}</pre><p><strong>Key Features of This Config:</strong></p><ul><li><strong>Route </strong><strong>/</strong>: Maps to index.html and applies Gzip compression and caching headers.</li><li><strong>File Type Specific Routes</strong>: Applies Gzip and caching to all .html, .css, and .js files.</li><li><strong>Caching Policies</strong>: Sets Cache-Control to ensure static assets are cached for a year (max-age=31536000) and remain immutable.</li></ul><h3>Step 2: Setting Up CI/CD for Gzip Compression</h3><p>Azure Static Web Apps do not automatically gzip files, so I added steps to compress files during the CI/CD process.</p><h4>Finalized Azure DevOps YAML Pipeline:</h4><pre>name: Azure Static Web Apps CI/CD<br><br>pr:<br>    branches:<br>        include:<br>            - master<br>trigger:<br>    branches:<br>        include:<br>            - master<br><br>jobs:<br>    - job: build_and_deploy_job<br>      displayName: Build and Deploy Job<br>      condition: or(eq(variables[&#39;Build.Reason&#39;], &#39;Manual&#39;),or(eq(variables[&#39;Build.Reason&#39;], &#39;PullRequest&#39;),eq(variables[&#39;Build.Reason&#39;], &#39;IndividualCI&#39;)))<br>      pool:<br>          vmImage: ubuntu-latest<br>      variables:<br>          - group: Azure-Static-Web-Apps-black-tree-0230b0b10-variable-group<br>      steps:<br>          # Step 1: Check out code<br>          - checkout: self<br>            submodules: true<br>            <br>          # Step 2: Compress files with Gzip<br>          - script: |<br>                echo &quot;Compressing files with gzip...&quot;<br>                find . -type f \( -name &quot;*.html&quot; -o -name &quot;*.css&quot; -o -name &quot;*.js&quot; \) -exec gzip -k -9 {} +<br>                echo &quot;Compression complete!&quot;<br>            displayName: Compress Static Files with Gzip<br>            <br>          # Step 3: Rename compressed files<br>          - script: |<br>                echo &quot;Renaming compressed files...&quot;<br>                find . -type f -name &quot;*.gz&quot; -exec bash -c &#39;mv &quot;$0&quot; &quot;${0%.gz}&quot;&#39; {} \;<br>                echo &quot;Renaming complete!&quot;<br>            displayName: Rename Gzipped Files<br>            <br>          # Step 4: Deploy to Azure Static Web Apps<br>          - task: AzureStaticWebApp@0<br>            inputs:<br>                azure_static_web_apps_api_token: $(AZURE_STATIC_WEB_APPS_API_TOKEN_BLACK_TREE_0230B0B10)<br>                app_location: &quot;/&quot; # App source code path<br>                api_location: &quot;&quot; # API source code path - optional<br>                output_location: &quot;&quot; # Built app content directory - optional</pre><p><strong>How It Works:</strong></p><ol><li><strong>Compress Files</strong>: The pipeline compresses .html, .css, and .js files with gzip using the find command.</li><li><strong>Rename </strong><strong>.gz Files</strong>: Renames the .gz files back to their original names (e.g., index.html.gz → index.html).</li><li><strong>Deploy to Azure</strong>: Deploys the compressed files with the correct headers defined in staticwebapp.config.json.</li></ol><h3>Step 3: Enabling Enterprise Edge</h3><p>I also enabled <strong>Enterprise Edge</strong> in the Azure Portal for enhanced performance. This feature provides:</p><ul><li><strong>Global CDN delivery</strong> for reduced latency.</li><li><strong>Advanced TLS and DDoS protection</strong> for added security.</li><li><strong>Improved reliability</strong> for content delivery.</li></ul><h3>The Results</h3><p>After implementing these optimizations:</p><ul><li><strong>Page load times decreased by 50–70%</strong> due to smaller file sizes.</li><li><strong>Caching reduced repeat requests</strong>, improving speed for returning users.</li><li><strong>Index page rendered correctly</strong> with the right Content-Encoding headers.</li><li>Enterprise Edge ensured <strong>global availability and reliability</strong>.</li></ul><h3>Best Practices for Optimizing Azure Static Web Apps</h3><ol><li><strong>Enable Gzip Compression</strong>: Always compress HTML, CSS, and JavaScript files to reduce load times.</li><li><strong>Use </strong><strong>staticwebapp.config.json</strong>: Fine-tune caching, headers, and routing for maximum control.</li><li><strong>Automate CI/CD Pipelines</strong>: Integrate compression into your build pipeline for seamless deployment.</li><li><strong>Enable Enterprise Edge</strong>: Leverage Azure’s advanced CDN and security features for production sites.</li></ol><h3>Conclusion</h3><p>Azure Static Web Apps provide a robust and flexible platform for hosting static sites, but with a few optimizations, you can achieve exceptional performance. By precompressing files with Gzip, configuring headers, and enabling Enterprise Edge, your website will load faster, cost less, and deliver a better user experience.</p><p>Give it a try on your next project and enjoy the benefits of a highly optimized static site!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f22d7d99ada4" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/optimizing-azure-static-web-apps-gzip-compression-and-ci-cd-for-faster-websites-f22d7d99ada4">Optimizing Azure Static Web Apps: Gzip Compression and CI/CD for Faster Websites</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>