<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yoshifumi Tsuda</title>
    <description>The latest articles on DEV Community by Yoshifumi Tsuda (@yoshifumi_tsuda).</description>
    <link>https://dev.to/yoshifumi_tsuda</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3783825%2F69528e51-b742-4604-81f3-032f7174034d.jpg</url>
      <title>DEV Community: Yoshifumi Tsuda</title>
      <link>https://dev.to/yoshifumi_tsuda</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yoshifumi_tsuda"/>
    <language>en</language>
    <item>
      <title>How I Gave Claude Code Access to 6,500 Azure Cmdlets</title>
      <dc:creator>Yoshifumi Tsuda</dc:creator>
      <pubDate>Sat, 21 Feb 2026 15:13:24 +0000</pubDate>
      <link>https://dev.to/yoshifumi_tsuda/how-i-gave-claude-code-access-to-6500-azure-cmdlets-chk</link>
      <guid>https://dev.to/yoshifumi_tsuda/how-i-gave-claude-code-access-to-6500-azure-cmdlets-chk</guid>
      <description>&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;p&gt;I told Claude Code: &lt;em&gt;"Create me a VM on Azure for dev testing."&lt;/em&gt; It asked a few questions, ran &lt;code&gt;Az&lt;/code&gt; module commands through a persistent PowerShell session, hit a capacity error, but the AI recovered on its own and handed me an SSH command. The whole thing took about 15 minutes — including error recovery and retry.&lt;/p&gt;

&lt;p&gt;The secret ingredient? &lt;strong&gt;PowerShell.MCP&lt;/strong&gt; — an MCP server that gives AI agents a persistent PowerShell console.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is PowerShell.MCP?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/yotsuda/PowerShell.MCP" rel="noopener noreferrer"&gt;PowerShell.MCP&lt;/a&gt; is an MCP server that gives AI agents a &lt;strong&gt;persistent, shared PowerShell console&lt;/strong&gt;. One installation provides access to 10,000+ PowerShell modules and any CLI tool. It works with any MCP-compatible AI agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Conversation
&lt;/h2&gt;

&lt;p&gt;Here's what actually happened — errors and all.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: "Make me a VM"
&lt;/h3&gt;

&lt;p&gt;I gave Claude Code a simple request:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;I need a VM on Azure for development testing. Please use the Az PowerShell module to create it.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Instead of guessing, Claude presented an interactive prompt asking me to choose OS, VM size, region, and naming:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzga234mx7tvb5w0hx7oc.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzga234mx7tvb5w0hx7oc.jpg" alt="Claude presents interactive prompts for OS, VM size, region, and naming" width="800" height="900"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Pre-flight Checks
&lt;/h3&gt;

&lt;p&gt;Claude launched a PowerShell console on its own — that's the window on the left side of the screen. From this point on, the AI executes commands directly in that console. I'm not typing these commands; Claude is.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgnwvxen9i6ucmyjf85so.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgnwvxen9i6ucmyjf85so.jpg" alt="PowerShell console launched by Claude, showing Az module and login verification" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It confirmed the Az module was installed and I was already logged in. No unnecessary &lt;code&gt;Connect-AzAccount&lt;/code&gt; prompts.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Resource Group Creation
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F71a04i6pdydfjkjftt9l.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F71a04i6pdydfjkjftt9l.jpg" alt="Claude creating resource group with traceability tags in PowerShell console" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Claude tagged the resource group for traceability — a nice touch I didn't ask for.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: The Capacity Wall
&lt;/h3&gt;

&lt;p&gt;Here's where it gets interesting. The VM creation failed:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftqx107hx6ewui3fenx5e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftqx107hx6ewui3fenx5e.jpg" alt="SkuNotAvailable error shown in PowerShell console" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Claude didn't panic. It queried available SKUs:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffucchx3rcolgxk5ojgoe.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffucchx3rcolgxk5ojgoe.jpg" alt="Claude querying available VM SKUs in Japan East region" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then presented me with alternatives. I picked &lt;code&gt;Standard_D2s_v3&lt;/code&gt; (2 vCPU, 8 GB RAM) and it continued seamlessly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8c5bg2hwv48m169zxy6k.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8c5bg2hwv48m169zxy6k.jpg" alt="Claude presents alternative VM sizes with descriptions" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 5: VM Created
&lt;/h3&gt;

&lt;p&gt;Claude built the entire infrastructure from scratch — NSG, VNet, public IP, NIC, and the VM itself:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7dycsawane466ock24d.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7dycsawane466ock24d.jpg" alt="PowerShell console showing VM infrastructure creation in progress" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And presented a clean summary:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd5kh0zqkigsqaiiyco0c.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd5kh0zqkigsqaiiyco0c.jpg" alt="Claude presenting VM summary with public IP and SSH command" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh azureuser@13.78.36.131
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 6: Cleanup
&lt;/h3&gt;

&lt;p&gt;When I was done testing:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;I'm done testing. Delete the resource group to stop all charges.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6bbahssle88fcdyeat72.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6bbahssle88fcdyeat72.jpg" alt="Claude deleting the resource group after testing" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Confirmed the deletion:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Confirm the resource group has been fully deleted.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zrlr0866izgld83g4ce.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zrlr0866izgld83g4ce.jpg" alt="PowerShell confirming resource group no longer exists" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Gone. No orphaned resources, no surprise bills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Beyond Azure
&lt;/h2&gt;

&lt;p&gt;This demo used Azure, but PowerShell.MCP works with anything on &lt;a href="https://www.powershellgallery.com/" rel="noopener noreferrer"&gt;PowerShell Gallery&lt;/a&gt; — Microsoft 365, AWS, Active Directory, and 10,000+ other modules. Tell the AI what you want to do; it will find and install the right module on its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why PowerShell.MCP?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One gateway, not dozens of MCP servers.&lt;/strong&gt; The AI finds and installs the right PowerShell modules on its own, and learns cmdlets through &lt;code&gt;Get-Help&lt;/code&gt;. No dedicated MCP server needed per service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shared console.&lt;/strong&gt; Every command the AI runs appears in your PowerShell console in real-time. You can run your own commands in the same console between AI operations, and respond to cmdlet prompts directly. You learn just by watching.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AI handles interactive prompts.&lt;/strong&gt; When &lt;code&gt;Connect-AzAccount&lt;/code&gt; opens a browser for authentication, you sign in — the AI waits and continues where it left off. Workflows that require human intervention don't break.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Session persistence.&lt;/strong&gt; This VM build chained &lt;code&gt;$nsg&lt;/code&gt; → &lt;code&gt;$vnet&lt;/code&gt; → &lt;code&gt;$subnet&lt;/code&gt; → &lt;code&gt;$pip&lt;/code&gt; → &lt;code&gt;$nic&lt;/code&gt; → &lt;code&gt;$vmConfig&lt;/code&gt; across multiple steps. It worked because variables stayed alive within the session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pipelines.&lt;/strong&gt; MCP tools can't be chained together, but cmdlets can. &lt;code&gt;Get-AzComputeResourceSku | Where-Object { ... }&lt;/code&gt; handled retrieval and filtering in a single line. The AI translates natural language into efficient pipelines.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to Set It Up
&lt;/h2&gt;

&lt;p&gt;See the &lt;a href="https://github.com/yotsuda/PowerShell.MCP#quick-start" rel="noopener noreferrer"&gt;Quick Start guide&lt;/a&gt; on GitHub. Once set up, just tell the AI what you want:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Create me a VM on Azure for dev testing.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;PowerShell.MCP bridges the gap between "I know what I want" and "I know the exact cmdlets, parameters, and sequence to get there." The AI handles the syntax; you make the decisions.&lt;/p&gt;

&lt;p&gt;PowerShell is already powerful. PowerShell.MCP gives that power to AI.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;PowerShell.MCP is available on the &lt;a href="https://www.powershellgallery.com/packages/PowerShell.MCP" rel="noopener noreferrer"&gt;PowerShell Gallery&lt;/a&gt; and &lt;a href="https://github.com/yotsuda/PowerShell.MCP" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>azure</category>
      <category>powershell</category>
      <category>ai</category>
      <category>mcp</category>
    </item>
  </channel>
</rss>
