<?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 Dimitri Koens on Medium]]></title>
        <description><![CDATA[Stories by Dimitri Koens on Medium]]></description>
        <link>https://medium.com/@dimitrikoens?source=rss-17f5566986fb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*4ZzIgHHHwCpcHo1m</url>
            <title>Stories by Dimitri Koens on Medium</title>
            <link>https://medium.com/@dimitrikoens?source=rss-17f5566986fb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:58:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dimitrikoens/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[Complete guide to Azure cost management]]></title>
            <link>https://medium.com/@dimitrikoens/complete-guide-to-azure-cost-management-294c69d7991f?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/294c69d7991f</guid>
            <category><![CDATA[azure-cost-optimization]]></category>
            <category><![CDATA[azure-portal]]></category>
            <category><![CDATA[azure-cost-management]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Fri, 29 Nov 2024 15:39:38 GMT</pubDate>
            <atom:updated>2024-11-29T20:26:47.544Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_dM_3YMvB_YbDTxMsfi6YQ.png" /><figcaption>Example of a lack of cost management</figcaption></figure><p>Managing cloud costs can make or break your budget. Azure offers great tools and incredible flexibility, but without proper oversight, spending can quickly spiral. This guide shows you how to cut waste, optimize resources, and take control of your Azure costs. Let’s dive in.</p><p>Table of contents:</p><ul><li>Principles and key concepts</li><li>Cost optimization strategies</li><li>Choosing resources: focusses on deployment</li><li>Managing resources: focusses on daily activities</li><li>Automation and advanced tools</li><li>Conclusion</li></ul><h3>Principles</h3><p>Let’s start with some basic principles.</p><h4>1. Visibility</h4><p>Cost Management identifies Azure costs and who is responsible for the spending. Azure tools help locate underused resources, eliminate waste, and maximize cost-saving opportunities. Visibility into cost allocation ensures that teams and departments understand their contributions to overall spending.</p><h4>2. Accountability</h4><p>Attributing costs to specific teams or projects ensures accountability for cloud expenditures. Organizing resources effectively — using resource tagging, management groups, and cost allocation rules — enhances insight into who spends what and why.</p><h4>3. Optimization</h4><p>Based on insights gathered through cost visibility, organizations can:</p><ul><li>Optimize purchases (e.g., Reserved Instances, Savings Plans).</li><li>Evaluate licensing options (e.g., Azure Hybrid Benefits).</li><li>Choose cost-effective service tiers (e.g. Basic vs Premium).</li></ul><h4>4. Iteration</h4><p>Cost management is an ongoing process. Organizations should make cost optimization a key pillar of their cloud governance and engage all teams in the lifecycle of cost evaluation and reduction.</p><h4>Key concept: Azure subscriptions</h4><p>The most important concept is the subscription. Azure subscriptions act as boundaries for both costs and security:</p><ul><li><strong>Cost Management:</strong> Subscriptions help set spending limits and track expenses, ensuring no project overspends and affects others.</li><li><strong>Security:</strong> Subscriptions create a clear barrier between company resources, making it easier to manage access control and protect sensitive resources.</li></ul><h3>Cost Optimization Strategies</h3><h4>Leverage Enterprise Agreements</h4><p>Azure Enterprise Agreements (EAs) are licensing contracts offered by Microsoft to large organizations for purchasing Azure services at scale. These agreements are designed to provide cost flexibility, discounts, and centralized billing for companies that require a substantial amount of cloud resources.</p><p>Enterprise Agreements (EA) offer major cost advantages:</p><ul><li><strong>Volume Discounts:</strong> Save money when purchasing large quantities of resources.</li><li><strong>License Mobility:</strong> If covered by Software Assurance (SA), you can transfer existing Microsoft software licenses to Azure, reducing costs. This includes Windows Server, SharePoint and SQL Server.</li></ul><h4>Use Azure Hybrid Benefit</h4><p>Azure Hybrid Benefit allows organizations to apply on-premises Windows Server or SQL Server licenses to Azure virtual machines, significantly reducing costs. Organizations can save on compute costs while migrating on-premises workloads to Azure. Microsoft offers 180 days of concurrent usage rights during migration.</p><p>Please note: this benefit is not available at competing cloud providers, like Amazon Web Services (AWS) or Google Cloud Platform (GCP).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*38qpVGLtsXJHVhklHcrIxw.png" /><figcaption>Azure hybrid benefit example of a SQL Server</figcaption></figure><h4>Use the TCO Calculator</h4><p>The Azure Total Cost of Ownership (TCO) calculator estimates the cost savings of migrating on-premises infrastructure to Azure. This tool helps quantify cost reductions and Return-On-Investment (ROI), enabling data-driven decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*rtolcDsbWUFd6XbP_hEfrg.png" /><figcaption>Example of a NoSQL TCO comparison</figcaption></figure><h4>Use the Pricing Calculator</h4><p>The Azure pricing calculator is a tool that allows users to estimate the cost of Azure services based on their specific requirements. It is an invaluable tool during the design and deployment phases. Users can select the Azure services they plan to use, configure the settings, and get an estimated monthly cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*otrcd5jAZBDvbDHY0PfIww.png" /><figcaption>Azure pricing calculator showing a storage account configured with a cold access tier</figcaption></figure><h4><strong>Use Azure Advisor</strong></h4><p>Azure Advisor is a service that provides recommendations to optimize Azure resources for improved performance, security, and cost efficiency. It analyzes workloads and configurations, offering advice and best practices tailored to the specific needs of the environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DFHctMQuLg8Ds74cE0ymCg.png" /><figcaption>Azure advisor</figcaption></figure><h4><strong>Set budgets</strong></h4><p>An Azure budget allows you to set spending limits and track cloud expenses. With Azure budgets, users can define specific cost thresholds and receive alerts when spending approaches the defined limits. These alerts can be configured to send notifications via email, SMS, or webhook integration. Azure budgets can help with controlling cloud costs, ensuring financial accountability, and preventing unexpected overages in Azure cloud usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lbfdpOwuGpR_z21o5IiuwQ.png" /><figcaption>Creating an Azure budget</figcaption></figure><h4><strong>Set billing alerts</strong></h4><p>Azure billing alerts are notifications that can be set up in Microsoft Azure to monitor cloud spending and receive alerts when specific billing thresholds are reached or exceeded. These alerts help you manage your Azure costs and stay within your budget. Compared to budgets, billing alerts tend to be more reactive, where budgets aim to give more insight information.</p><p>It is advised to implement billing alerts on a subscription level and re-adjust every month.</p><h3>Choosing resources</h3><p>Picking the right service is a lot harder than it sounds. General best practices can be followed in choosing the right service.</p><h4>Service Type</h4><p>Prioritize SaaS over PaaS, and PaaS over IaaS. For example, choose Azure SQL Database (PaaS) instead of deploying a SQL Server VM (IaaS). Or choose App Service instead of deploying and maintaining a VM-based web server.</p><p>PaaS simplifies operational processes by providing a managed environment with pre-configured tools and infrastructure, reducing the need for extensive server management and allowing ICT personnel to focus more on innovation.</p><p>SaaS eliminates the need for software installation and maintenance, providing immediate access to applications via the internet, which enhances scalability, reduces IT costs, and improves accessibility and collaboration.</p><p>Both transitions can lead to increased operational efficiency, faster time-to-market, and greater flexibility in managing and scaling applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yKHWRj0Q7MlL98MspaXsIg.png" /><figcaption>On-Premises vs IaaS vs PaaS vs SaaS</figcaption></figure><h4>Choose the right SKU</h4><p>Avoid over-provisioning by selecting appropriate SKUs for services. For example: an Azure service bus has a premium SKU, which might introduce unneeded features. Many times, an expensive SKU has been chose, where a cheaper SKU might be adequate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*ko0wPHCTYLIL9Pj3d293ig.png" /><figcaption>Azure service bus pricing tiers. Notice the extreme difference.</figcaption></figure><h4>Region Selection</h4><p>Resources can be deployed in different regions around the globe. Resource cost depends on region. Regions can be constrained in resource availability for different reasons: popularity, physical sizing limits, energy supply, and others. This can result in higher or lower prices for azure resources.</p><p>Choosing remote regions to optimize cost can introduce higher latency for services. Also, geopolitical factors should be considered when choosing a region.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*ShH4le72kCOibe_oZwVRdg.png" /><figcaption>Example of price differences for a VM running in different regions.</figcaption></figure><h4>Choose the correct storage tier</h4><p>A storage account has four access tiers: hot, cool, cold and archive. Choose the best access tier depending on access patterns.</p><p>For example: the archive storage tier is a very cheap storage tier. It is great for storing infrequently accessed files for a long time. Retrieval costs are relatively high, so any other access tier might be better a option.</p><p>For files stored in a storage account a storage tier needs to be configured. Normally this is set to a default tier for the storage account, where all files inherit the specified tier. For storage accounts, folders, and individual items, a specific storage tier can be selected, which might result in a cost benefit.</p><ul><li>Hot: frequently accessed and critical data, providing high-performance and low-latency access but often at a higher cost.</li><li>Cool: for data that is accessed less frequently. Offers a balance between performance and cost.</li><li>Cold: offers a balance between cool and archive.</li><li>Archive: for long-term storage of rarely accessed data, providing the lowest cost but with slower retrieval times.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*ATV9fSCZaZo_Mz1EcLoUtw.png" /><figcaption>Azure storage account with a hot default access tier</figcaption></figure><h4>Storage pricing</h4><p>As a rule of thumb: hot relates to cool relates to cold relates to archive access tiers in a 20:10:5:1 pricing ratio. So, storing seldomly used backup files in hot or cool access tiers can have a major impact on cost. In general, storage costs are very low, so large cost optimizations can only be achieved when moving large amounts of data to cheaper access tiers.</p><h3>Managing Resources</h3><h4>Identify and Deallocate Unused Resources</h4><ul><li>Use Azure tools like the Azure portal or PowerShell to detect underutilized virtual machines, orphaned disks, and unused storage.</li><li>Deallocate stopped VMs to release CPU and memory, reducing costs by up to 95%.</li></ul><h4>Optimize storage tiers</h4><p>Match storage tiers to data access needs (Hot, Cool, Cold and Archive) as discussed in the previous section. Please note that individual folders and files can be configured with a specific access tier, which can be different than the default access tier of the storage account.</p><h4>Minimal storage duration</h4><p>The cold, cool and archive access tiers implement a minimum storage duration of respectively 30, 90 and 180 days. This means that if data is deleted within that period, the client is billed for the minimum storage duration. Deleting files from a cool access tier within 30 days is not recommended from a cost perspective. This works the same for an archive access tier but for a 180-day duration. Hot would be best for normal read/write workloads. Cool would be best for storing and reading data for a longer period. Archive data is best for data that needs to be stored for several months or more and is rarely retrieved.</p><h4>Orphaned disks</h4><p>Orphaned disks are disks that are not connected to any virtual machine. This is easily identified in several ways. You can use the Azure portal, as pictured below, or other ways, like PowerShell.</p><p>Since some orphaned disks might serve a purpose, they need to be identified as such. For example, an orphaned disk might serve as a base image for other virtual machines to be deployed. Use resource tags to tag the VHD accordingly and exclude it from any reports or notification methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PRg5q5rmupBNBRVoZSuqJQ.png" /></figure><h4>Auto-Shutdown</h4><p>Virtual machines can be automatically shut down by a job in the Azure control plane. This results in a VM which is in the deallocated state, which results in the largest cost benefit.</p><p>Virtual machines that are used by personnel at predictable moments (e.g., working hours) might benefit the most from an auto-shutdown job. A tag on the properties of the VM might identify its eligibility for auto-shutdown.</p><p>Virtual machines in a scale set (VMSS) will never be controlled with an auto-shutdown job. This is handled by the scale set itself.</p><h4>VM Start</h4><p>If virtual machines need to start from a stopped state this can be performed in several ways.</p><ul><li>If the VM is used by technical personnel which has access to the Azure management interface, they can start the VM themselves. A jump server might be an example.</li><li>If the VM is used at predicable moments, a job might start the VM automatically at the specified moment. This can be configured through the use of resource tags in combination with a tool like Azure Automation, Azure Functions or Azure Logic App.</li></ul><h4>Implement Elastic Pooling and Autoscaling</h4><p>Many resources in Azure can scale automatically depending on demand. This reduces waste during low-usage periods and ensures optimal performance during spikes.</p><p>For example, a website can deploy more instances to manage the load. And a SQL database can use more CPU capacity to manage the load.</p><p>Many services can be used in a serverless fashion. CosmosDB and SQL Server database are good examples of this. If your application is compatible with a serverless database server, this might be a very cost-effective solution.</p><p>Whether you enable auto-scaling or not, monitoring is always needed. If resources are not set to scale automatically, performance monitoring is needed. If resources are set to scale automatically, cost monitoring is needed.</p><h3>Automation and advanced tools</h3><h4>Azure Monitor</h4><p>Azure Monitor is a monitoring service that provides insights into performance, availability, and security of applications and resources. It collects telemetry data from various sources, including applications, infrastructure, and network resources, and offers powerful tools for visualizing, analyzing, and acting upon this data. Azure Monitor helps the organization proactively identify and resolve issues, optimize resource utilization, and ensure the reliability and security of their Azure workloads by providing real-time monitoring, alerting, and deep insights into the health and performance of their cloud environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9NMWxYpdiFcGkr7ezzecbw.png" /><figcaption>A dashboard showing different Azure resources</figcaption></figure><h4>Azure Automation</h4><p>Azure Automation can run different automated tasks that can have a positive effect on expenses. Here are some examples:</p><ul><li><strong>Inventory Reports:</strong> Provide regular updates on resource usage. A nice example is Azure Resource Inventory (ARI). More on this later.</li><li><strong>Scheduled Start/Stop:</strong> Automate VM shutdowns and startups to align with predictable usage patterns.</li><li><strong>Orphaned Disk Cleanup:</strong> Disks might become orphaned if the corresponding virtual machine is deleted. Orphaned disks can be reported on using the portal and PowerShell. Move orphaned disks to a dedicated resource group for evaluation or deletion. Optionally a backup can be made to cheap storage before orphaned disks are deleted.</li></ul><h4>Azure Policies</h4><p>Azure Policies enforce governance to prevent cost overruns. For example:</p><ul><li>VM size: policies can be used to ensure that only specific VM sizes or configurations are used. By restricting the use of expensive VM sizes, cost is controlled, and over-provisioning is prevented.</li><li>Like VM size, you can restrict premium resource SKUs for many resources.</li><li>Policies can restrict the creation of resources in specific regions. This can help ensure resources are deployed in cost-effective regions and prevent the accidental creation of resources in expensive locations.</li><li>Finally, policies can require the tagging of resources with information like ownership and purpose to ensure accountability.</li></ul><h4>Azure Savings Plans</h4><p>Azure Savings Plans provide flexible, discounted pricing for compute resources, allowing cost reductions without rigid time commitments required by Reserved Instances.</p><h4>Spot Instances</h4><p>Spot instances in Azure offer a cost-effective option for running workloads that can tolerate interruptions. These instances utilize unused Azure capacity at a significantly reduced price compared to regular rates. The pricing for spot instances fluctuates based on supply and demand, making them ideal for flexible, non-critical applications such as batch processing jobs, development and testing environments, or large-scale stateless applications.</p><p>However, because Azure can reclaim these instances at any time when the demand for capacity increases, it’s important to only use workloads that are resilient to sudden terminations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*3uN4un5bOOL97g9os5Vfyg.png" /><figcaption>Creating a VM using spot instance discount</figcaption></figure><h3>Conclusion</h3><p>By following these principles and leveraging Azure’s tools and services, organizations can effectively manage, optimize, and reduce cloud costs. Regular reviews, automation, and governance are essential for maintaining financial efficiency in the dynamic cloud environment.</p><p>Microsoft has documented a lot on cost management. More information can be found by clicking the following link.</p><p><a href="https://learn.microsoft.com/en-us/azure/cost-management-billing/">Cost Management + Billing - Microsoft Cost Management</a></p><h4>Bonus tip on resource inventory</h4><p>Microsoft has a great tool called Azure Resource Inventory (ARI). It is a powerful PowerShell module that generates an Excel report of any Azure Environment you have read access to. It is intended to help anyone that needs an easy and fast way to build a full Excel report of an Azure environment.</p><p>Get it here:</p><p><a href="https://github.com/microsoft/ARI">GitHub - microsoft/ARI: Azure Resource Inventory - It&#39;s a Powerful tool to create EXCEL inventory from Azure Resources with low effort</a></p><h4>Final tip on sustainability</h4><p>When optimizing costs, consider Azure’s carbon-aware tools to deploy resources in regions with lower environmental impact. This aligns financial efficiency with sustainability goals.</p><p><a href="https://learn.microsoft.com/en-us/azure/carbon-optimization/overview">What is Azure carbon optimization (Preview)</a></p><p><strong><em>Think I missed something? Got ideas to make this article even better? Or maybe there’s still something unclear? Share your thoughts in the comments — I’d love to hear from you!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=294c69d7991f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows Server is dead!]]></title>
            <link>https://medium.com/@dimitrikoens/windows-server-is-dead-e806ce607534?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e806ce607534</guid>
            <category><![CDATA[satya-nadella]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[windows-server]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sat, 11 Nov 2023 23:28:03 GMT</pubDate>
            <atom:updated>2023-11-17T08:36:43.461Z</atom:updated>
            <content:encoded><![CDATA[<h3>Windows Server is dead</h3><p>Windows Server is a terrific operating system. I have been working with it since Windows NT 3.1 back in 1993. I had to collect RAM modules from several expensive computers to get it running, but that’s a different story.</p><p>The latest release of Windows Server has been the best that Microsoft ever produced. But there are many indicators for its decline. Here’s an analysis.</p><h3>Features</h3><p>With every major release Microsoft provides us with new features. With new features they try to persuade new clients to start using Windows, or keep existing clients from moving to other operating systems.</p><p>It’s easy to see that the latest releases contain a minimum of new features as compared to earlier releases. I hand-picked the most important new features per release.</p><ul><li>2022: optimization for Azure, VM hotpatch, several security features.</li><li>2019: shielded VMs, Windows Defender Advanced Threat Protection, inclusion of Windows Admin Center (also offered as a separate download).</li><li>2016: Failover clustering rolling upgrades, Windows containers, Nano server, Network Controller, Hyper-V production checkpoints/snapshots, Storage Spaces Direct.</li><li>2012 and R2: Storage spaces (tiering), PowerShell Desired State Configuration, Windows Defender, IP address management (IPAM), major SMB improvements, Hyper-V Network Virtualization, VM capacity improvements, VHDx disk format, Resilient File System (ReFS).</li><li>2008 and R2: PowerShell, Hyper-V, Live Migration (similar to VMware vMotion), Cluster Shared Volumes (CSV), Server Core (GUI-less).</li></ul><p>As you can see from the previous listing, major new features can be found in older operating systems. Since 2019 you can see that new features are brought back to a bare minimum. Some new features from the last two releases may as well have been introduced by updates, instead of a complete OS release.</p><p>Can we conclude Microsoft is not trying to persuade clients to use Windows Server anymore? Or is it just a shift to something else? Let’s investigate further.</p><h3>Training</h3><p>Microsoft used to have an extensive training catalog for Windows Server. Primary server training typically comprised three courses, each lasting five days, for a total of 15 days.</p><p>Training was mostly available before product launch, so you could prepare for the new product before it was even on the market. Not so for the last two releases: training for the 2019 and 2022 server products was remarkably late.</p><p>Here’s an overview of the primary Windows Server training for the last major releases:</p><ul><li>2022 and 2019: two trainings for a total of seven days. Lots of focus on the hybrid (combined with Azure) use of Windows Server.</li><li>2016 and 2012: three courses, each 5 days, for a total of fifteen (!) days.</li></ul><p>Besides the late releases of product training for Windows Server 2019 and 2022, Microsoft also limits the total time spend during training by cutting out a lot of material.</p><h3>SQL Server for Linux</h3><p>It used to be an important strategy for Microsoft: only release server products that run on Windows Server exclusively. Typical examples are Active Directory Domain Services, Exchange Server, SharePoint and SQL Server. But since 2017 SQL Server can run on Linux.</p><figure><img alt="Microsoft CEO Satya Nadella is on stage. Behind him a picture showing “Microsoft love Linux”." src="https://cdn-images-1.medium.com/max/776/1*BCD3PEdhfCuamcLFQkuhAA.png" /><figcaption>Microsoft CEO Satya Nadella during a presentation. Behind him a picture showing “Microsoft love Linux”.</figcaption></figure><p>There are several reasons for Linux support. One important reason is that a customer might own databases that run on Microsoft SQL Server. If SQL Server is running on Windows, they need a Windows license. This makes a SQL Server deployment less competitive, as compared to databases that run on Linux.</p><p>Other Microsoft products might never run on Linux. SharePoint and Exchange Server are products that are offered as a service. With Software-as-a-Service (SaaS) solutions, the operating system is not relevant anymore. Whether Microsoft is running those products on a Windows or Linux operating system is irrelevant for the same reason.</p><h3>Azure</h3><p>Microsoft’s business strategy can be summarized in just two words: “intelligent cloud”. In other words: AI + Azure. In Azure we can find many clues for the decline of the Windows Server operating system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*voEn6LSikAVzsHEK8FaIRw.png" /><figcaption>Microsoft Azure in the Netherlands. Microsoft refers to this location as “West Europe”. © 2021 Dimitri Koens</figcaption></figure><p>First, Azure is huge! It’s a massive collection of datacenters, servers, software, templates, policies and many other things. For this Microsoft needs a lot of personnel. One way of recruiting personnel is to repurpose. Many developers of typical on-premise products, like Windows Server, Exchange Server, System Center, and SharePoint have been repurposed (or assimilated?) for Microsoft Azure.</p><p>Another clue is the default operating system for VMs in Azure, which is Ubuntu. Many different operating systems can be chosen from, including several Linux and Windows flavors, but the default is a Linux-based OS. Microsoft is favoring Linux, over Windows!</p><figure><img alt="Ubuntu is the default operating system when creating a VM in Azure" src="https://cdn-images-1.medium.com/max/1024/1*xHVZcEgUFxDtFHZUnbW_rg.png" /><figcaption>Ubuntu as the default OS when creating a VM in Azure</figcaption></figure><p>By the way, a Windows Server VM is more expensive than a Linux-based VM with the same specs. This is also true for web applications (Azure App service) that run a Windows OS, as compared to a Linux OS.</p><h3>Conclusion</h3><p>Windows Server is not dead… yet. Customers still have full support for many years to come. Microsoft might even release one or two new server operating systems in the next decade.</p><p>Bottom line is: Microsoft is not focused on bringing innovation to the Windows Server operating system, as well as with many other, typically on-premises software products. Customers should use Azure for the most advanced and innovative solutions that Microsoft can offer.</p><p>For customers that don’t want to come to Azure, Microsoft is more than willing to bring Azure to them. But that’s a different story.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e806ce607534" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compare your baseline using Best Practices Analyzer and PowerShell]]></title>
            <link>https://medium.com/@dimitrikoens/compare-your-baseline-using-best-practices-analyzer-and-powershell-6bdb99f0f8e6?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bdb99f0f8e6</guid>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 20:08:32 GMT</pubDate>
            <atom:updated>2023-11-04T20:08:32.319Z</atom:updated>
            <content:encoded><![CDATA[<p>With the built-in Best Practices Analyzer we can run several tests and implement any outcomings. The BPA is incorporated in the Windows Operating System since Windows Server 2008. With PowerShell we can run a BPA-scan, store it as a baseline and compare it with our current situation.</p><figure><img alt="The results of a best practices analyzer scan." src="https://cdn-images-1.medium.com/max/684/1*WZQdDtISEF_voPu_dDbB-w.jpeg" /></figure><p>Here is a PowerShell script to establish the baseline:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4892bc6b5ffe2a05a639e1b78c5a47c1/href">https://medium.com/media/4892bc6b5ffe2a05a639e1b78c5a47c1/href</a></iframe><p>And using this script we can compare the current situation with our baseline:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/32b951f30fcad5e48096a412a6abb54e/href">https://medium.com/media/32b951f30fcad5e48096a412a6abb54e/href</a></iframe><p>You can replace the first line of both script with the name of your model, for example: Microsoft/Windows/DNSServer. You can query for all the installed BPA models using Get-BpaModel. Popular Best Practices that are included with Windows are: Active Directory, DNS and IIS.</p><p>I recommend you schedule the second script every week or so, and e-mail the results as soon as a change is detected.</p><p>Have fun!<br>Dimitri</p><p>This article has been previously published <a href="https://web.archive.org/web/20230000000000*/http://www.dimensionit.tv">on my — now defunct — WordPress blog</a>. Original publishing date: 6 dec 2011.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bdb99f0f8e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitor processes on a local or remote PC]]></title>
            <link>https://medium.com/@dimitrikoens/monitor-processes-on-a-local-or-remote-pc-2338a0e32814?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/2338a0e32814</guid>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 13:18:02 GMT</pubDate>
            <atom:updated>2023-11-04T13:18:02.788Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qQSA78DJg4eFHn__yy2OUA.png" /></figure><p>Here’s a PowerShell script that allows you to monitor processes on the local or a remote PC. It’s based on the Get-Process cmdlet. It loops every second, compares changes in the process list and displays them nicely on the screen. It shows a green line when a new process runs and a yellow line when a process quits.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2c95873e7378bbe92656e5a4846234a8/href">https://medium.com/media/2c95873e7378bbe92656e5a4846234a8/href</a></iframe><p>Have fun! And let me know what you think in the comments.</p><p>This article has been previously published on <a href="https://web.archive.org/web/20230000000000*/http://www.dimensionit.tv">my — now defunct — WordPress blog</a>. Original publishing date: 20 jun 2013.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2338a0e32814" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Check for certificate expiration with PowerShell]]></title>
            <link>https://medium.com/@dimitrikoens/check-for-certificate-expiration-with-powershell-d9bfa4a6c229?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9bfa4a6c229</guid>
            <category><![CDATA[ssl-certificate]]></category>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 12:55:48 GMT</pubDate>
            <atom:updated>2024-11-29T20:24:16.453Z</atom:updated>
            <content:encoded><![CDATA[<p>One of my clients asked me how to check for expired certificates. This simple function opens the certificate store through the Cert: PowerShell-drive, and lists all certificates that are soon to expire. You can change the threshold to any value when calling the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*yZMZ8c9ji7hX7LPKL1yt7g.png" /></figure><p>Here’s the script:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/861ea7276bfde27dc12744f64ae823be/href">https://medium.com/media/861ea7276bfde27dc12744f64ae823be/href</a></iframe><p>Paste the function in a PowerShell console window, and call it using Get-CertificateExpiration.</p><p>The script can also be used to check on several machines at once. Just use the ComputerName parameter and make sure PowerShell remoting has been set up by using Enable-PSRemoting on the target servers. More info by running this PowerShell command: Get-Help about_remoting.</p><p><strong><em>Think I missed something? Got ideas to make this article even better? Or maybe there’s still something unclear? Share your thoughts in the comments — I’d love to hear from you!</em></strong></p><p>This article has been previously published on <a href="https://web.archive.org/web/20230000000000*/http://www.dimensionit.tv">my — now defunct — WordPress blog</a>. Original publishing date: 9 nov 2011.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9bfa4a6c229" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Message of the day with PowerShell]]></title>
            <link>https://medium.com/@dimitrikoens/message-of-the-day-with-powershell-73906b3308d0?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/73906b3308d0</guid>
            <category><![CDATA[morning-routines]]></category>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sat, 04 Nov 2023 12:44:55 GMT</pubDate>
            <atom:updated>2023-11-04T12:48:33.182Z</atom:updated>
            <content:encoded><![CDATA[<p>I wrote a very simple function to display a message of the day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*yN23vlpeMPwSacN6QA16xA.png" /></figure><p>Uncle Ben’s message is my personal favorite. And very much applicable to the power of PowerShell! 😉</p><p>Here’s the script. You can put it in a PowerShell module or script and start it from your profile.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f8f711a29e5a077d2ed6e34bdf121cb/href">https://medium.com/media/0f8f711a29e5a077d2ed6e34bdf121cb/href</a></iframe><p>Have fun!<br>Dimitri</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73906b3308d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kill a process remotely]]></title>
            <link>https://medium.com/@dimitrikoens/kill-a-process-remotely-3b2f09167299?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b2f09167299</guid>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 14:13:31 GMT</pubDate>
            <atom:updated>2023-11-11T13:06:42.116Z</atom:updated>
            <content:encoded><![CDATA[<p>With PowerShell you can kill a process with the Stop-Process cmdlet. Sadly Stop-Process doesn’t allow you to connect to a remote machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*Xqx-2QXAGM3aFyKc9Jeq6w.png" /></figure><p>Most possibilities in PowerShell are just .NET and WMI monikers. So as soon as PowerShell doesn’t allow me to do something, most of the time I can find a way with addressing .NET or WMI through PowerShell.</p><p>One of my students asked me whether it’s possible to kill a SCOM Console on a remote machine. Here’s how, by using WMI and PowerShell. Just replace ServerName and the name of the process with the correct names.</p><p>Here’s a one-liner for the PowerShell prompt:</p><pre>(Get-WmiObject Win32_Process -ComputerName &#39;ServerName&#39; | Where-Object { $_.name -eq &#39;notepad.exe&#39; }).Terminate()</pre><p>Or from a function:</p><pre>Function Stop-ProcessRemote {<br>  param(<br>    [string[]]$ComputerName = $Env:COMPUTERNAME,<br><br>    [Parameter(Mandatory=$true)]<br>    [string]$ProcessName<br>  )<br><br>  $p = Get-WmiObject Win32_Process -ComputerName $ComputerName | <br>  Where-Object { $_.name -eq $ProcessName }<br>  $p.Terminate()<br>}</pre><p>This article has been previously published on <a href="https://web.archive.org/web/20230000000000*/http://www.dimensionit.tv">my — now defunct — WordPress blog</a>. Original publishing date: 21-jun-2013</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b2f09167299" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop a remote service using PowerShell]]></title>
            <link>https://medium.com/@dimitrikoens/stop-a-remote-service-using-powershell-fd7049fe3cb8?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd7049fe3cb8</guid>
            <category><![CDATA[powershell]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 14:04:40 GMT</pubDate>
            <atom:updated>2024-11-29T20:24:34.090Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*YLVhSiIZWAkuV7VgMYVciQ.png" /></figure><p>PowerShell provides some commands to manipulate services, but that might not work on remote computers! The script below demonstrates that stopping a service on a remote computer using Stop-Service is not working.</p><p>First I verify that the MSDTC service is running on the local machine and a remote machine: server2. If I want to stop the service on both machines I use the Stop-Service cmdlet. But this command doesn’t work on server2 when I’m piping the output from Get-Service to Stop-Service.</p><p>There are two solutions. The first is you can use the InputObject parameter as part of Stop-Service.</p><p>You can also use WMI to stop a remote service. Just retrieve the specific service from a remote computer by using the Get-WmiObject cmdlet and use the StopService method to stop the service.</p><p>WMI is intended to work remote so this command gives the correct result! :-)</p><pre># Verifying services<br>Get-Service MSDTC<br>Get-Service MSDTC -ComputerName server2<br><br># Stopping services<br>Get-Service MSDTC | Stop-Service<br>Get-Service MSDTC -ComputerName server2 | Stop-Service<br># Stop-Service does not accept pipelined input!<br><br># Verifying services<br>Get-Service MSDTC<br>Get-Service MSDTC -computer server2<br><br># Stopping remote service, alternative<br>Stop-Service -InputObject (Get-Service MSDTC -ComputerName server2)<br><br># Stopping remote service using WMI<br>(Get-WmiObject win32_service -ComputerName server2 | <br>Where-Object Name -eq &#39;MSDTC&#39;).StopService()</pre><p>Thanks to Martin Tengvall for pointing out the -InputObject variant.</p><p><strong><em>Think I missed something? Got ideas to make this article even better? Or maybe there’s still something unclear? Share your thoughts in the comments — I’d love to hear from you!</em></strong></p><p>This article has been previously published on <a href="https://web.archive.org/web/20230000000000*/http://www.dimensionit.tv">my — now defunct — WordPress blog</a>. Original publishing date: 16-nov-2011</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd7049fe3cb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Retrieve all-day appointments in Outlook with PowerShell]]></title>
            <link>https://medium.com/@dimitrikoens/retrieve-all-day-appointments-in-outlook-with-powershell-3f90d8c3e347?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f90d8c3e347</guid>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[outlook]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 13:46:25 GMT</pubDate>
            <atom:updated>2023-10-29T13:48:41.996Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*f926kIUoABrmin3SvJ746w.png" /></figure><p>Not too long ago I migrated my e-mail, calendar and contacts to the cloud. The migration was very smooth except for one thing. For some unknown reason a reminder was added to all my all-day appointments. I use these appointments for birthdays and that sort of events. I never use a reminder on my all-day appointments but after the migration all these appointments were set with a reminder of 15 minutes before the appointment. A daily appointment starts at 0:00 and lasts until 24:00. So that means my phone urged me to wake up at 23:45 so I didn’t forget my sisters birthday!</p><p>The next morning I realized what went wrong and that I could expect a lot of nightly wakeup reminders if I didn’t remove them. I have a lot of daily events and was wondering if PowerShell was able to build a list of all-day events with a reminder set.</p><p>The following script uses the Outlook COM-object to retrieve all your events. It selects all-day events that have a reminder set.</p><p><strong>Please note:</strong> in most cases Outlook will show a pop-up or maybe a pop-under where you’re asked for access to Outlook from PowerShell.</p><pre># Create the outlook application object, and connect to the calendar folder<br>$olApp = New-Object -COM Outlook.Application<br>$namespace = $olApp.GetNamespace(&#39;MAPI&#39;)<br>$fldCalendar = $namespace.GetDefaultFolder(9)<br><br># Retreiving calendar items<br>$items = $fldCalendar.Items<br>$items | Where-Object { $_.reminderset -eq $true -and $_.alldayevent -eq $true -and $_.isrecurring -eq $true } |<br>Sort-Object Start | Select-Object Start, Subject</pre><p>This article has been previously published on <a href="https://web.archive.org/web/20230000000000*/http://www.dimensionit.tv">my — now defunct — WordPress blog</a>. Original publishing date: 10-nov-2011</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f90d8c3e347" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SCCM OSD troubleshooting guide]]></title>
            <link>https://medium.com/@dimitrikoens/sccm-osd-troubleshooting-guide-c291faef27d5?source=rss-17f5566986fb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c291faef27d5</guid>
            <category><![CDATA[sccm]]></category>
            <category><![CDATA[osd]]></category>
            <dc:creator><![CDATA[Dimitri Koens]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 10:17:25 GMT</pubDate>
            <atom:updated>2023-10-29T10:17:25.337Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s a simple troubleshooting guide when running into trouble while using SCCM Operating System Deployment (OSD). It’s not intended to be 100% complete. Let me know in the comments if there are any important omissions or otherwise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ZTnHrm3JQVYgKMwbhRWQA.png" /></figure><p><strong>Network connectivity</strong></p><ul><li>Check cabling, VLAN IDs, VMware vSwitch, Hyper-V virtual network</li><li>DHCP Server: lease being used</li></ul><p><strong>Firewall</strong></p><ul><li>PXE requests: UDP ports 67, 68, 69, 4011</li><li>OS installation: 69/UDP</li></ul><p><strong>SCCM Administration workspace</strong></p><ul><li>Site, Configure site components, Software Distribution, Network Access account: needs read access to shares containing images and drivers</li><li><strong>Distribution point properties:</strong></li><li>- General: certificate expiration</li><li>- PXE: enabled, allow this DP to respond, enable unknown computer support</li><li>- Multicast: enable multicast</li><li>- Boundary groups</li></ul><p><strong>SCCM Software Library workspace</strong></p><ul><li>Drivers for network and storage: distribute</li><li><strong>Boot image:</strong></li><li>- import drivers for network and local disk access, drivers must match boot image (WinPE 2 = Vista+, unrelated to final OS)</li><li>- Properties, Customization: enable command support (F8, smsts.log)</li><li>- Properties, data source: deploy from PXE</li><li>- Distribute</li><li><strong>Operating System Installer package properties:</strong></li><li>- data source refers to OS media</li><li>- Distribution Settings: Allow to be transferred via multicast</li><li>- distribute</li><li><strong>Task sequence:</strong></li><li>- capture image path refers to destination WIM-image to be created</li><li>- account needs write access</li><li>- deploy to specific collection or unknown computers, purpose available, boot media and PXE</li></ul><p><strong>SCCM Monitoring workspace</strong></p><ul><li>Distribution Point Configuration Status: PXE and Multicast columns: enabled</li><li>System Status, Site Status: site server, distribution point, multicast service point healty</li><li>System Status, Component Status: SMS_EXECUTIVE, SMS_MULTICAST_SERVICE_POINT healthy</li><li>Reports, Task sequence*, e.g. Last 1000 messages for a specific computer (Errors, warnings and information)</li></ul><p><strong>Target PC/VM</strong></p><ul><li>Pre-2012 R2 Hyper-V VM: Legacy NIC</li><li>Connected to correct virtual network</li><li>Boot from NIC in BIOS</li><li>check setupapi.log, netsetup.log</li></ul><p><strong>WinPE phase</strong></p><ul><li>ipconfig: check networking, DHCP, network drivers for boot image</li><li>diskpart | list disk: check mass storage drivers for boot image</li><li>SMSTS.log: mostly found under \windows\&amp;lt;system32/sysWOW64/temp&amp;gt;, can also be under \smstslog, \_SMSTaskSequence</li></ul><p><strong>After setup</strong></p><ul><li>CCMSetup.log in %windir%\system32\ccmsetup</li></ul><p>This article has been previously published on <a href="https://web.archive.org/web/20230000000000*/http://www.dimensionit.tv">my — now defunct — WordPress blog</a>. Original publishing date: 13-jun-2013</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c291faef27d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>