<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Armand IT</title>
	<atom:link href="https://www.armandit.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.armandit.com</link>
	<description>Azure at work, Kubernetes at home</description>
	<lastBuildDate>Mon, 30 Nov 2026 20:18:40 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.armandit.com/wp-content/uploads/2026/11/armandit-icon-512-32x32.png</url>
	<title>Armand IT</title>
	<link>https://www.armandit.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Block Game Ads and Adult Content for Your Kids with Pi-hole</title>
		<link>https://www.armandit.com/2026/11/29/pi-hole-kids-safe-network/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Sun, 29 Nov 2026 22:36:34 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Ad Blocking]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Homelab]]></category>
		<category><![CDATA[Parental Controls]]></category>
		<category><![CDATA[Pi-hole]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">https://www.armandit.com/?p=789</guid>

					<description><![CDATA[How I use a Pi-hole on a Raspberry Pi to block ads in games, adult content, gambling and DNS bypass for every device in the house, including the blocklists I use and the test results.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Most free games on a tablet show an ad every 30 seconds or so, and not always for something you want your kids to see. At home I block most of this with a Pi-hole on a Raspberry Pi. In this post I will show how I&#8217;ve set it up, which blocklists I use and what Pi-hole can&#8217;t do for you.</p>



<h2 class="wp-block-heading">How Pi-hole Works</h2>



<p class="wp-block-paragraph">Before a game can show an ad from for example <code>ads.example-network.com</code>, the device has to ask a DNS server for the IP address of that name. Pi-hole is that DNS server, and for names on its blocklists it answers with <code>0.0.0.0</code>, so the ad never loads. Since it works at the network level, it protects every device in the house without installing anything on them, also inside apps and games where a browser ad blocker can&#8217;t reach.</p>



<h2 class="wp-block-heading">My Setup</h2>



<ul class="wp-block-list">
<li>A Raspberry Pi 3 B+ from 2018. With over 600,000 blocked domains it uses about 16% of its memory, so it can easily handle it.</li>


<li>Pi-hole v6, which forwards the allowed lookups to Cloudflare (<code>1.1.1.1</code>).</li>


<li>The router hands out the Pi-hole as the only DNS server, so every device uses it automatically.</li>


<li>Query logging is switched off, because I want to filter and not read along with what my family does online.</li>
</ul>



<h2 class="wp-block-heading">Strict by Default</h2>



<p class="wp-block-paragraph">Pi-hole can apply different blocklists to different groups of devices. Most guides create a separate group for the kids&#8217; devices, but I did it the other way around. Every device that Pi-hole doesn&#8217;t know lands in the <em>Default</em> group, which gets the strictest filtering, and only the devices of the adults are added by name to a lighter group that blocks ads and trackers.</p>



<p class="wp-block-paragraph">The devices you forget are usually the risky ones, like a new tablet from a birthday or a phone of a friend, and modern phones and tablets use a <em>private Wi-Fi address</em>, so you can&#8217;t reliably recognize them anyway. This way every new device is protected from the first minute.</p>



<figure class="wp-block-table"><table><thead><tr><th>Group</th><th>Who</th><th>Blocklists</th></tr></thead><tbody><tr><td>Default (strict)</td><td>Every unknown device: kids&#8217; tablets and consoles, guests, new devices</td><td>StevenBlack hosts, HaGeZi Ultimate, HaGeZi NSFW, HaGeZi Gambling, HaGeZi DNS bypass, and YouTube</td></tr><tr><td>Normal</td><td>The adults&#8217; named devices</td><td>HaGeZi Multi (ads, trackers, malware)</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">Blocklists</h2>



<p class="wp-block-paragraph">All lists except 1 come from <a href="https://github.com/hagezi/dns-blocklists" target="_blank" rel="noopener">HaGeZi&#8217;s DNS blocklists</a>, which are well maintained, updated several times a day and have very few false positives:</p>



<ul class="wp-block-list">
<li>StevenBlack hosts and HaGeZi Ultimate block ads, trackers, malware and phishing. Ultimate is the most aggressive level of HaGeZi and this is the list that catches the ad networks in games.</li>


<li>HaGeZi NSFW blocks adult content.</li>


<li>HaGeZi Gambling (medium) blocks casinos and betting sites, also the Dutch ones. The full list is 7 times bigger, but medium covered everything I tested and keeps the Pi fast.</li>


<li>HaGeZi DoH/VPN/Proxy bypass blocks encrypted DNS services, VPNs and proxies (more about this below).</li>
</ul>



<p class="wp-block-paragraph">To add them, paste the URLs under <em>Lists</em> in the Pi-hole interface, assign the right groups and run <em>Update Gravity</em>:</p>



<pre class="wp-block-code language-none"><code>https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/ultimate.txt
https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/nsfw.txt
https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/gambling.medium.txt
https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/doh-vpn-proxy-bypass.txt</code></pre>



<p class="wp-block-paragraph">For the strict group I also block YouTube with 2 regex rules under <em>Domains</em>, so the tablets don&#8217;t turn into an endless video feed:</p>



<pre class="wp-block-code language-none"><code>(\.|^)youtube\.com$
(\.|^)googlevideo\.com$</code></pre>



<h2 class="wp-block-heading">Ads in Mobile Games</h2>



<p class="wp-block-paragraph">Free games fetch their ads from the servers of ad networks, and those servers have recognizable names, so DNS blocking works very well here. I tested the big ad networks from a device in the strict group:</p>



<figure class="wp-block-table"><table><thead><tr><th>Ad network</th><th>Used in</th><th>Result</th></tr></thead><tbody><tr><td>Google AdMob</td><td>A huge share of Android and iOS games</td><td>&#10003; Blocked</td></tr><tr><td>Unity Ads</td><td>Games built with Unity</td><td>&#10003; Blocked</td></tr><tr><td>AppLovin</td><td>Many casual and puzzle games</td><td>&#10003; Blocked</td></tr><tr><td>ironSource</td><td>Mobile games, ad mediation</td><td>&#10003; Blocked</td></tr><tr><td>Vungle (Liftoff)</td><td>Video ads in games</td><td>&#10003; Blocked</td></tr><tr><td>Chartboost</td><td>Ads for other games</td><td>&#10003; Blocked</td></tr><tr><td>InMobi</td><td>Mobile ads</td><td>&#10003; Blocked</td></tr><tr><td>Meta Audience Network</td><td>Ads in apps</td><td>&#10003; Blocked</td></tr><tr><td>Adjust, Branch, Firebase Analytics</td><td>Tracking and attribution</td><td>&#10003; Blocked</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">With only the lighter ads-only list, Vungle, Chartboost, InMobi and Adjust still got through, so make sure to test with the networks that matter to you.</p>



<div class="wp-block-group is-style-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>What your kids will notice</strong> Games with <em>rewarded ads</em> (&#8220;watch a video for 50 extra coins&#8221;) will say that no ad is available. Most games just continue, but if a game refuses to work without its ad server you can allow that single domain, which you can find in the Pi-hole query log (switch logging on temporarily while testing).</p>
</div>



<h2 class="wp-block-heading">Test Results</h2>



<figure class="wp-block-table"><table><thead><tr><th>Category</th><th>Tested with</th><th>Strict group</th></tr></thead><tbody><tr><td>Game ads</td><td>AdMob, Unity Ads, AppLovin, ironSource, Vungle, Chartboost, InMobi</td><td>&#10003; Blocked</td></tr><tr><td>Adult content</td><td>Large adult websites</td><td>&#10003; Blocked</td></tr><tr><td>Gambling</td><td>International and Dutch casino and betting sites</td><td>&#10003; Blocked</td></tr><tr><td>DNS bypass</td><td>Google, Cloudflare, Quad9 and OpenDNS encrypted DNS</td><td>&#10003; Blocked</td></tr><tr><td>YouTube</td><td>youtube.com</td><td>&#10003; Blocked</td></tr><tr><td>Games and stores</td><td>Roblox, Minecraft, Nintendo, PlayStation, App Store, Play Store</td><td>Works</td></tr><tr><td>School and info</td><td>Wikipedia</td><td>Works</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">You can test this yourself from any computer by asking your Pi-hole directly. If the answer is <code>0.0.0.0</code>, the name is blocked:</p>



<pre class="wp-block-code language-bash"><code>nslookup googleads.g.doubleclick.net 192.168.0.37
nslookup www.roblox.com 192.168.0.37</code></pre>



<h2 class="wp-block-heading">Blocking Encrypted DNS</h2>



<p class="wp-block-paragraph">Pi-hole only works if devices actually ask it. More and more browsers and apps use <em>DNS over HTTPS</em>, which sends the lookups encrypted to for example Google or Cloudflare and skips your Pi-hole completely. The bypass list blocks these encrypted DNS services and well-known VPN and proxy services, and Pi-hole also answers the special domains that Firefox and Apple iCloud Private Relay check first, so those fall back to normal DNS.</p>



<h2 class="wp-block-heading">What Pi-hole Can&#8217;t Do</h2>



<p class="wp-block-paragraph">DNS filtering is a good first layer, but it is not complete parental control. Be aware of the following gaps:</p>



<ul class="wp-block-list">
<li>On 4G or 5G a phone doesn&#8217;t use your home network at all. For phones that leave the house, use the parental controls of the device itself (Screen Time on iOS, Google Family Link on Android).</li>


<li>A device can ask <code>8.8.8.8</code> directly by IP address, and no blocklist can stop that. You can close this gap in your router by only allowing DNS traffic (port 53, and port 853 for DNS over TLS) to the Pi-hole.</li>


<li>Content inside an allowed app, like chat in an online game, can&#8217;t be filtered by name. For this you will need the age settings of the game or platform.</li>


<li>Some platforms serve their ads from the same domain as the content, and DNS can&#8217;t block one without the other.</li>
</ul>



<p class="wp-block-paragraph">And of course it doesn&#8217;t replace talking with your kids about what they see online.</p>



<h2 class="wp-block-heading">Getting Started</h2>



<ol class="wp-block-list">
<li>Install Pi-hole on a Raspberry Pi (a model 3 or newer is enough) or in a container, using the <a href="https://docs.pi-hole.net/" target="_blank" rel="noopener">official documentation</a>.</li>


<li>Set the Pi-hole as the only DNS server in the DHCP settings of your router.</li>


<li>Add the strict blocklists to the <em>Default</em> group and create a lighter group for the devices of the adults (added by name under <em>Clients</em>).</li>


<li>Run <em>Update Gravity</em> and test with <code>nslookup</code> from a device in each group.</li>


<li>Block outgoing DNS traffic in your router that doesn&#8217;t come from the Pi-hole.</li>
</ol>



<p class="wp-block-paragraph">Happy blocking!</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Security Headers: From C to A+ on MDN Observatory</title>
		<link>https://www.armandit.com/2026/11/29/security-headers-mdn-observatory/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Sun, 29 Nov 2026 21:52:02 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Content Security Policy]]></category>
		<category><![CDATA[Homelab]]></category>
		<category><![CDATA[MDN Observatory]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Security Headers]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://www.armandit.com/?p=777</guid>

					<description><![CDATA[How I got this blog from a C to an A+ on MDN Observatory with security headers and a nonce-based Content-Security-Policy for WordPress.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">After rebuilding this blog I ran it through <a href="https://developer.mozilla.org/en-US/observatory" target="_blank" rel="noopener">MDN Observatory</a>, Mozilla&#8217;s free website security scanner. The blog scored a C (50 out of 100), which is not great for a blog about security. After an evening of work it scored A+ (135 out of 100), and I also hardened the other 2 sites on my homelab cluster.</p>



<h2 class="wp-block-heading">Live Results</h2>



<p class="wp-block-paragraph">The grades below are fetched from the Observatory API, so they are always up to date (the same badge is in the footer of every page):</p>


<figure class="wp-block-table obs-table"><table><thead><tr><th>Site</th><th>Grade</th><th>Score</th><th>Tests passed</th><th>Last scan</th></tr></thead><tbody><tr><td><a href="https://developer.mozilla.org/en-US/observatory/analyze?host=www.armandit.com" target="_blank" rel="noopener">www.armandit.com</a></td><td><span class="obs-grade obs-grade-a">A+</span></td><td>135/100</td><td>12 / 12</td><td>30 Nov 2026</td></tr><tr><td><a href="https://developer.mozilla.org/en-US/observatory/analyze?host=fps.armandit.com" target="_blank" rel="noopener">fps.armandit.com</a></td><td><span class="obs-grade obs-grade-a">A+</span></td><td>145/100</td><td>12 / 12</td><td>1 Dec 2026</td></tr><tr><td><a href="https://developer.mozilla.org/en-US/observatory/analyze?host=crm.armandit.com" target="_blank" rel="noopener">crm.armandit.com</a></td><td><span class="obs-grade obs-grade-b">B</span></td><td>70/100</td><td>10 / 12</td><td>1 Dec 2026</td></tr></tbody></table><figcaption>Live results from the MDN Observatory API, refreshed every 12 hours.</figcaption></figure>



<h2 class="wp-block-heading">What MDN Observatory Checks</h2>



<p class="wp-block-paragraph">Observatory requests your homepage and checks the HTTP response for security headers, cookies, redirects and the way scripts are loaded. Every site starts with 100 points, missing protections cost points and strong configurations give bonus points, so a score above 100 is possible.</p>



<p class="wp-block-paragraph">Be aware that it does not scan for vulnerabilities, outdated plugins or weak passwords. It only checks how much the browser is instructed to protect your visitors, but these findings are cheap to fix and easy to verify.</p>



<h2 class="wp-block-heading">Why Security Headers Matter</h2>



<p class="wp-block-paragraph">Security headers are instructions from your server to the browser of the visitor. They don&#8217;t fix bugs in your code, but they limit what an attacker can do when something goes wrong. For example, if a plugin has a cross-site scripting hole, a good Content-Security-Policy can still stop the injected script from running. These are the headers I use:</p>



<figure class="wp-block-table"><table><thead><tr><th>Header</th><th>Protects against</th><th>What I use</th></tr></thead><tbody><tr><td><code>Content-Security-Policy</code></td><td>Cross-site scripting and data injection: only scripts you approve may run</td><td>Per-request nonce for scripts, <code>object-src 'none'</code>, <code>frame-ancestors 'self'</code></td></tr><tr><td><code>Strict-Transport-Security</code></td><td>Downgrade to HTTP and SSL stripping</td><td>6 months, set at Cloudflare</td></tr><tr><td><code>X-Frame-Options</code></td><td>Clickjacking: your site loaded invisibly inside someone else&#8217;s page</td><td><code>SAMEORIGIN</code></td></tr><tr><td><code>X-Content-Type-Options</code></td><td>MIME sniffing: a file served as text being executed as script</td><td><code>nosniff</code></td></tr><tr><td><code>Referrer-Policy</code></td><td>Leaking full URLs (with paths and query strings) to other sites</td><td><code>strict-origin-when-cross-origin</code></td></tr><tr><td><code>Cross-Origin-Opener-Policy</code></td><td>Other windows keeping a handle on your page; cross-origin leaks</td><td><code>same-origin</code></td></tr><tr><td><code>Cross-Origin-Resource-Policy</code></td><td>Other sites loading your resources to probe them</td><td><code>same-origin</code> for HTML pages</td></tr><tr><td><code>Permissions-Policy</code></td><td>Pages or embeds quietly using camera, microphone or location</td><td>All denied</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">None of these headers cost performance, and for a mostly static site it is a one-time change.</p>



<h2 class="wp-block-heading">Before and After</h2>



<figure class="wp-block-table"><table><thead><tr><th>Site</th><th>What it is</th><th>Before</th><th>After</th></tr></thead><tbody><tr><td>www.armandit.com</td><td>This blog (WordPress)</td><td>C (50)</td><td><strong>A+ (135)</strong></td></tr><tr><td>fps.armandit.com</td><td>Firewall Policy Studio, a static web app</td><td>A+ (125)</td><td><strong>A+ (145)</strong></td></tr><tr><td>crm.armandit.com</td><td>SuiteCRM behind Microsoft Entra ID sign-in</td><td>B&minus; (65)</td><td><strong>B (70)</strong></td></tr></tbody></table></figure>



<h2 class="wp-block-heading">Headers Missing on Cached Pages</h2>



<p class="wp-block-paragraph">My WordPress hardening plugin did send <code>X-Frame-Options</code> and the other headers, but Observatory didn&#8217;t see them. It got a page from the page cache, and the cache plugin serves stored pages before WordPress runs the hook that adds the headers.</p>



<p class="wp-block-paragraph">To fix this you should set the static headers at the web server instead of in the application, so every response gets them (also cached pages, images, CSS and error pages). In Apache (with <code>mod_headers</code> enabled) this looks as following:</p>



<pre class="wp-block-code language-none"><code>&lt;IfModule mod_headers.c&gt;
  Header always set X-Content-Type-Options "nosniff"
  Header always set X-Frame-Options "SAMEORIGIN"
  Header always set Referrer-Policy "strict-origin-when-cross-origin"
  Header always set Permissions-Policy "camera=(), microphone=(), geolocation=(), payment=(), usb=()"
  Header always set Cross-Origin-Opener-Policy "same-origin"
  Header always set Cross-Origin-Resource-Policy "same-origin" "expr=%{CONTENT_TYPE} =~ m#^text/html#"
  Header always unset X-Powered-By
&lt;/IfModule&gt;</code></pre>



<p class="wp-block-paragraph">In nginx you can add them inside the <code>server</code> block (be aware that a <code>location</code> with its own <code>add_header</code> doesn&#8217;t inherit these anymore):</p>



<pre class="wp-block-code language-none"><code>server_tokens off;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Cross-Origin-Opener-Policy "same-origin" always;
add_header Cross-Origin-Resource-Policy "same-origin" always;</code></pre>



<h2 class="wp-block-heading">Content-Security-Policy for WordPress</h2>



<p class="wp-block-paragraph">The CSP was worth the most points (25), but it is also the hardest to get right. Allowing <code>'unsafe-inline'</code> scripts is easy, but injected scripts are inline too, so that defeats the purpose. The proper way is a nonce, a random value that is new for every request, which the header announces and every legitimate script tag carries.</p>



<p class="wp-block-paragraph">WordPress has the <code>wp_script_attributes</code> and <code>wp_inline_script_attributes</code> filters for this. The cache was a problem again, since a cached page contains the nonce of the request that created it. I solved this by putting a placeholder in the script tags and replacing it with a fresh nonce when the page is sent:</p>



<pre class="wp-block-code language-none"><code>$nonce = base64_encode( random_bytes( 18 ) );
header( "Content-Security-Policy: default-src 'self'; script-src 'self' 'nonce-$nonce'; "
    . "style-src 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; "
    . "frame-ancestors 'self'; form-action 'self'" );

$add_nonce = function ( $attributes ) {
    $attributes['nonce'] = '__CSP_NONCE__';
    return $attributes;
};
add_filter( 'wp_script_attributes', $add_nonce );
add_filter( 'wp_inline_script_attributes', $add_nonce );

ob_start( fn( $html ) =&gt; str_replace( '__CSP_NONCE__', $nonce, $html ) );</code></pre>



<p class="wp-block-paragraph">This runs in a must-use plugin, early enough to also cover cached pages. Inline <em>styles</em> are still allowed, because block themes need them (Observatory doesn&#8217;t give a penalty for that). Admin pages and logged-in users are skipped, so the editor keeps working.</p>



<div class="wp-block-group is-style-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Test in a Browser</strong>A scanner only reads the headers, so it can&#8217;t tell you if the CSP breaks something. Open DevTools, reload the page and look for <em>Refused to load</em> or <em>violates the following Content Security Policy directive</em> in the console. I checked every page type (home, posts, search and archives) this way.</p>
</div>



<h2 class="wp-block-heading">Secure Flag on Cookies</h2>



<p class="wp-block-paragraph">On the CRM, Observatory found a cookie without the <code>Secure</code> flag, so a browser could send it over plain HTTP. The cookie is set somewhere deep in the framework and I didn&#8217;t want to patch vendor code, so I added a small hook that adds <code>Secure</code> to every cookie on HTTPS right before PHP sends its headers:</p>



<pre class="wp-block-code language-none"><code>header_register_callback( static function () {
    if ( ( $_SERVER['HTTP_X_FORWARDED_PROTO'] ?? '' ) !== 'https' ) {
        return;
    }
    $cookies = array_filter( headers_list(), fn( $h ) =&gt; stripos( $h, 'Set-Cookie:' ) === 0 );
    if ( ! $cookies ) {
        return;
    }
    header_remove( 'Set-Cookie' );
    foreach ( $cookies as $cookie ) {
        header( preg_match( '/;\s*secure\b/i', $cookie ) ? $cookie : "$cookie; Secure", false );
    }
} );</code></pre>



<p class="wp-block-paragraph">Because it is loaded with <code>auto_prepend_file</code>, it works for every part of the application and it survives upgrades.</p>



<h2 class="wp-block-heading">The CRM Stays at a B</h2>



<p class="wp-block-paragraph">The CRM uses single sign-on, so it redirects you to the Microsoft sign-in page, and Observatory grades the last page in the redirect chain. The remaining findings are for <code>login.microsoftonline.com</code>, which I can&#8217;t fix, so I&#8217;m fine with the B. Make sure to read the individual findings and not only the grade, and don&#8217;t add headers just for points (<code>Cross-Origin-Embedder-Policy</code> for example would break embedded videos and gives no points).</p>



<h2 class="wp-block-heading">Check Your Own Site</h2>



<ol class="wp-block-list">
<li>Scan your site at <a href="https://developer.mozilla.org/en-US/observatory" target="_blank" rel="noopener">developer.mozilla.org/observatory</a>.</li>


<li>Check the raw headers yourself (see the example below).</li>


<li>Set the static headers at the web server or reverse proxy, so cached pages and files get them too.</li>


<li>Add a strict CSP and test every page type in the browser console.</li>


<li>Scan again after big changes, since new plugins, embeds or analytics will need CSP changes.</li>
</ol>



<pre class="wp-block-code language-bash"><code>curl -sI https://www.example.com | grep -iE 'content-security|strict-transport|x-frame|x-content-type|referrer|permissions|cross-origin|set-cookie'</code></pre>



<p class="wp-block-paragraph">Happy hardening!</p>



<h2 class="wp-block-heading">Sources</h2>



<ul class="wp-block-list">
<li><a href="https://developer.mozilla.org/en-US/observatory" target="_blank" rel="noopener">MDN Observatory</a></li>


<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP" target="_blank" rel="noopener">MDN: Content Security Policy (CSP)</a></li>


<li><a href="https://developer.mozilla.org/en-US/docs/Web/Security/Practical_implementation_guides" target="_blank" rel="noopener">MDN: Practical security implementation guides</a></li>


<li><a href="https://owasp.org/www-project-secure-headers/" target="_blank" rel="noopener">OWASP Secure Headers Project</a></li>
</ul>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Firewall Policy Studio &#8211; Visual Editor for Azure Firewall Policies in Bicep</title>
		<link>https://www.armandit.com/2026/11/27/firewall-policy-studio/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Fri, 27 Nov 2026 18:52:00 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Azure Firewall]]></category>
		<category><![CDATA[Bicep]]></category>
		<category><![CDATA[Firewall Policy]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tools]]></category>
		<guid isPermaLink="false">https://www.armandit.com/?p=778</guid>

					<description><![CDATA[A free browser-based editor for Azure Firewall Policy rule collection groups, collections and rules that generates Bicep you can deploy directly.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Managing an Azure Firewall Policy in Bicep works fine, but after a while the template becomes a few hundred lines of nested arrays with priorities and rule names that don&#8217;t make much sense anymore.</p>



<p class="wp-block-paragraph">To make this easier I&#8217;ve built <a href="https://fps.armandit.com/" target="_blank" rel="noopener">Firewall Policy Studio</a>, a visual editor for Azure Firewall Policy rules that generates Bicep you can deploy directly. It runs completely in your browser and it&#8217;s free to use:</p>



<figure class="wp-block-image size-large"><a href="https://www.armandit.com/wp-content/uploads/2026/11/firewall-policy-studio-editor.png"><img fetchpriority="high" decoding="async" width="1024" height="640" src="https://www.armandit.com/wp-content/uploads/2026/11/firewall-policy-studio-editor-1024x640.png" alt="Firewall Policy Studio: rule collection groups and service packs on the left, the visual editor with rule collections and rules in the middle, and the generated Bicep template on the right." class="wp-image-776" srcset="https://www.armandit.com/wp-content/uploads/2026/11/firewall-policy-studio-editor-1024x640.png 1024w, https://www.armandit.com/wp-content/uploads/2026/11/firewall-policy-studio-editor-300x188.png 300w, https://www.armandit.com/wp-content/uploads/2026/11/firewall-policy-studio-editor-768x480.png 768w, https://www.armandit.com/wp-content/uploads/2026/11/firewall-policy-studio-editor-1536x960.png 1536w, https://www.armandit.com/wp-content/uploads/2026/11/firewall-policy-studio-editor.png 1600w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">Policy settings and service packs on the left, the visual editor in the middle, live Bicep on the right.</figcaption></figure>



<h2 class="wp-block-heading">How Firewall Policies Are Structured</h2>



<p class="wp-block-paragraph">An Azure Firewall Policy holds its rules in 3 levels:</p>



<ul class="wp-block-list">
<li>Rule collection groups (RCGs), the top-level containers with a priority. In practice you use them to separate platform rules from workload rules.</li>


<li>Rule collections (RCs) inside a group, each with its own priority, a type (filter or DNAT) and an action (allow or deny).</li>


<li>Rules, which are network rules (IP addresses, ports, protocols), application rules (FQDNs, URLs) or NAT rules.</li>
</ul>



<p class="wp-block-paragraph">Azure Firewall evaluates DNAT rules first, then network rules and then application rules. Within each type the groups and collections are processed in priority order (lowest number first) and the first match wins, so the structure and priorities of your policy decide what traffic is allowed.</p>



<h2 class="wp-block-heading">Visual Editor</h2>



<p class="wp-block-paragraph">The middle panel shows every rule collection group with its collections and rules, including the sources, destinations, protocols and ports. If you want to restructure a policy, you can drag rule collections between groups and rules between collections. The right panel shows the generated Bicep template, which is updated while you edit.</p>



<h2 class="wp-block-heading">Naming Conventions</h2>



<p class="wp-block-paragraph">When you save a group or collection, the name is checked against the following naming convention:</p>



<figure class="wp-block-table"><table><thead><tr><th>Object</th><th>Pattern</th><th>Example</th></tr></thead><tbody><tr><td>Core rule collection group</td><td><code>core-[vendor]-[service-group]-rcg</code></td><td><code>core-azure-services-rcg</code></td></tr><tr><td>Workload rule collection group</td><td><code>[workload]-[purpose]-rcg-[seq]</code></td><td><code>app-internet-rcg-01</code></td></tr><tr><td>Core rule collection</td><td><code>[allow|deny]-[service-name]-rc</code></td><td><code>allow-active-directory-domain-services-rc</code></td></tr><tr><td>Workload rule collection</td><td><code>[allow|deny]-[scope]-[ruletype]-rc-[seq]</code></td><td><code>allow-web-network-rc-01</code></td></tr><tr><td>Rule</td><td><code>[protocol-or-feature-name]</code></td><td><code>kerberos-authentication</code></td></tr></tbody></table></figure>



<p class="wp-block-paragraph">If every policy follows the same pattern, you can see the purpose of a rule from its name, which makes reviews a lot faster.</p>



<h2 class="wp-block-heading">Service Packs</h2>



<p class="wp-block-paragraph">Most policies need the same basic rules. The built-in service packs insert a complete rule collection group for:</p>



<ul class="wp-block-list">
<li>Microsoft Core Services &#8211; Active Directory (Kerberos, LDAP, RPC, Netlogon, global catalog), DNS, NTP and similar</li>


<li>Azure Core Services &#8211; the Azure platform services that workloads typically need</li>


<li>Core Internet Connectivity &#8211; a baseline for outbound internet access</li>
</ul>



<h2 class="wp-block-heading">Import an Existing Policy</h2>



<p class="wp-block-paragraph">If you already have a policy, you don&#8217;t have to start from scratch. The studio can import:</p>



<ul class="wp-block-list">
<li>Bicep files generated by the studio itself (the policy data is embedded, so nothing gets lost)</li>


<li>Parameter-driven Bicep templates where the groups are defined as a <code>ruleCollectionGroups</code> array, which is the most common format in enterprise environments</li>


<li>ARM JSON templates and plain Bicep with firewall policy resources (best effort)</li>


<li>CSV files with rules or IP groups, using the templates you can download in the studio (useful when a rule request is delivered as a spreadsheet)</li>
</ul>



<h2 class="wp-block-heading">Export</h2>



<p class="wp-block-paragraph">You can normalize the priorities to evenly spaced values with 1 click, choose the API version for the generated resources and download a single <code>.bicep</code> file or a split <code>.zip</code>, or copy the template to the clipboard.</p>



<h2 class="wp-block-heading">Deployment</h2>



<p class="wp-block-paragraph">The generated template targets a resource group and adds the rule collection groups to an <em>existing</em> firewall policy. Be aware that deploying a rule collection group replaces its complete contents, so always execute a what-if first:</p>



<pre class="wp-block-code language-bash"><code>az deployment group what-if \
  --resource-group rg-network-hub-prd-001 \
  --template-file fw-policy-shared-prod.bicep \
  --parameters firewallPolicyName=fw-policy-shared-prod

az deployment group create \
  --resource-group rg-network-hub-prd-001 \
  --template-file fw-policy-shared-prod.bicep \
  --parameters firewallPolicyName=fw-policy-shared-prod</code></pre>



<div class="wp-block-group is-style-callout has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Keep the policy in git</strong>Use the downloaded Bicep as the source of truth: commit it, review changes in pull requests and deploy it from a pipeline. The studio is meant for editing and restructuring, not for storing your policy.</p>
</div>



<h2 class="wp-block-heading">Your Data Stays in Your Browser</h2>



<p class="wp-block-paragraph">Firewall rules describe your network, so Firewall Policy Studio does not store anything on the server. Your policy, imports and generated Bicep only exist in your browser tab until you download or copy them, and refreshing the page clears everything.</p>



<p class="wp-block-paragraph">The Content-Security-Policy of the site contains <code>connect-src 'none'</code> and <code>form-action 'none'</code>, which tells the browser to block the page from sending data anywhere (this is also why the site scores an A+ on MDN Observatory, see my <a href="https://www.armandit.com/2026/11/29/security-headers-mdn-observatory/">post on security headers</a>).</p>



<h2 class="wp-block-heading">Limitations</h2>



<ul class="wp-block-list">
<li>Import works best with files generated by the studio itself, heavily customized Bicep may need some cleanup first.</li>


<li>It edits rule collection groups and rules, not the firewall policy resource itself (threat intelligence, DNS proxy, TLS inspection settings and so on).</li>


<li>Nothing is saved between sessions, so make sure to download your work before closing the tab.</li>
</ul>



<p class="wp-block-paragraph">You can try it at <a href="https://fps.armandit.com/" target="_blank" rel="noopener">fps.armandit.com</a>, for example by inserting the Microsoft Core Services pack. Feedback and feature ideas are welcome via <a href="https://www.linkedin.com/in/armandhatting/" target="_blank" rel="noopener">LinkedIn</a>.</p>



<p class="wp-block-paragraph">Happy editing!</p>



<h2 class="wp-block-heading">Sources</h2>



<ul class="wp-block-list">
<li><a href="https://learn.microsoft.com/azure/firewall/rule-processing" target="_blank" rel="noopener">Azure Firewall rule processing logic</a></li>


<li><a href="https://learn.microsoft.com/azure/firewall/policy-rule-sets" target="_blank" rel="noopener">Azure Firewall Policy rule sets</a></li>


<li><a href="https://learn.microsoft.com/azure/templates/microsoft.network/firewallpolicies/rulecollectiongroups?pivots=deployment-language-bicep" target="_blank" rel="noopener">Microsoft.Network/firewallPolicies/ruleCollectionGroups (Bicep reference)</a></li>
</ul>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Azure Network Security Announcements at Ignite 2026</title>
		<link>https://www.armandit.com/2026/11/26/azure-network-security-ignite-2026/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Thu, 26 Nov 2026 19:36:00 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[AI Agents]]></category>
		<category><![CDATA[Azure Firewall]]></category>
		<category><![CDATA[Ignite 2026]]></category>
		<category><![CDATA[Network Security]]></category>
		<category><![CDATA[Networking]]></category>
		<guid isPermaLink="false">https://www.armandit.com/?p=769</guid>

					<description><![CDATA[An overview of the Azure network security announcements at Microsoft Ignite 2026, including Agent Grid, the Azure Firewall AI Security add-on, Adaptive Virtual Patching and Network Security Perimeter.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">During Microsoft Ignite 2026 Microsoft announced a set of network security features for AI agents, which call models, MCP servers and internet endpoints that are often decided at runtime (something classic egress rules based on IP addresses and FQDNs were not designed for). There were also a lot of smaller networking updates, which you can find in the table at the end.</p>



<div class="wp-block-group is-style-callout has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Status at the time of writing (26 November 2026)</strong>Almost everything in this post is in public preview. Several statuses come from announcement coverage rather than product documentation, so check <a href="https://azure.microsoft.com/updates/" target="_blank" rel="noopener">Azure Updates</a> before you plan around them.</p>
</div>



<h2 class="wp-block-heading">Agent Grid</h2>



<p class="wp-block-paragraph">Agent Grid (public preview, limited supported runtimes) is a separate network security architecture for agent workloads. The identity-based network and Layer 3-7 policies run outside the environment of the agent, so a compromised agent can&#8217;t switch them off and the agent code doesn&#8217;t need to change. It offers:</p>



<ul class="wp-block-list">
<li>Workload identity based on SPIFFE/SPIRE, with mutually authenticated connections</li>


<li>Isolation and microsegmentation between agents</li>


<li>FQDN and URL filtering for outbound traffic</li>


<li>MCP allow and block policies on tool level, so also which tools an agent may call</li>


<li>TLS inspection and integration with Azure AI Content Safety Prompt Shields</li>


<li>Communication flow maps, with logs in Azure Monitor and Log Analytics</li>
</ul>



<p class="wp-block-paragraph">Supported workloads at launch are ACI agent groups, the AKS Agent Sandbox and onboarded native Kubernetes workloads on AKS. Microsoft positions Agent Grid and Azure Firewall as different enforcement points.</p>



<h2 class="wp-block-heading">Azure Firewall Premium AI Security Add-on</h2>



<p class="wp-block-paragraph">The AI Security add-on for Azure Firewall Premium (public preview) adds 5 capabilities:</p>



<ul class="wp-block-list">
<li>Inline AI anti-malware that classifies binary content without sandbox detonation</li>


<li>Inline AI application protection that checks HTTP requests for exploit patterns such as SQL injection and path traversal</li>


<li>Prompt injection protection through Prompt Shields, for supported <em>direct</em> prompt injection (indirect is described as a future direction)</li>


<li>Network DLP through Microsoft Purview, for supported outbound uploads</li>


<li>AI-assisted policy analysis of your rules together with the observed traffic</li>
</ul>



<p class="wp-block-paragraph">No pricing was announced in the coverage I read.</p>



<h2 class="wp-block-heading">Adaptive Virtual Patching</h2>



<p class="wp-block-paragraph">Adaptive Virtual Patching (public preview, initially for Azure Linux VMs and scale sets) maps published vulnerabilities to the workloads on your VMs and applies temporary mitigations until the patch is installed. A workload extension collects telemetry and applies the mitigations, which can include eBPF-based enforcement and network-level compensating controls. Be aware that it is not a replacement for patch management.</p>



<h2 class="wp-block-heading">Network Security Perimeter</h2>



<p class="wp-block-paragraph">Network Security Perimeter, the boundary for PaaS services, now supports service tags in inbound rules and cross-perimeter links to connect perimeters, both in public preview for supported configurations.</p>



<h2 class="wp-block-heading">Other Announcements</h2>



<figure class="wp-block-table"><table><thead><tr><th>Area</th><th>Announcement</th><th>Status</th></tr></thead><tbody><tr><td>Azure Bastion</td><td>RDP vision and SSH vision (AI summaries of recorded sessions), SSH command logs. More in my <a href="https://www.armandit.com/2026/11/19/azure-bastion-inside-out/">Azure Bastion deep dive</a>.</td><td>Public preview</td></tr><tr><td>DDoS Protection</td><td>Custom policies</td><td>Reported as GA, check Azure Updates</td></tr><tr><td>DDoS Protection</td><td>Peacetime telemetry; protection for NAT Gateway StandardV2 public IPs</td><td>Public preview</td></tr><tr><td>Front Door</td><td>Premium WAF AI bot ruleset (AI training crawlers, AI search crawlers, interactive agents, unverified AI bots), starting in Log mode</td><td>Public preview</td></tr><tr><td>Virtual network</td><td>Virtual network peering with IPv6</td><td>Public preview</td></tr><tr><td>ExpressRoute</td><td>ExpressRoute Direct link groups to scale connectivity</td><td>Public preview</td></tr><tr><td>Private Link</td><td>Private Link Service flow logs with original client details, translated addresses and connection IDs</td><td>Public preview</td></tr><tr><td>Azure Firewall</td><td>Azure Firewall for Containers (no Azure CNI Overlay support yet)</td><td>Public preview</td></tr><tr><td>Multicloud</td><td>Azure Multicloud Interconnect to AWS; Google Cloud in preview</td><td>AWS GA</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">Next Steps</h2>



<ol class="wp-block-list">
<li>Enable the Front Door AI bot ruleset in Log mode (in a test environment while it&#8217;s in preview) to see how much of your traffic comes from AI crawlers.</li>


<li>Make an inventory of the models, MCP servers and APIs your agents connect to, since you will need it for any egress policy.</li>


<li>Try Agent Grid with the AKS Agent Sandbox in a lab subscription and check the flow maps.</li>


<li>If you have Azure Linux VMs with a slow patch cycle, Adaptive Virtual Patching is worth a pilot.</li>


<li>Keep all of this out of production until it is GA and the pricing is published.</li>
</ol>



<h2 class="wp-block-heading">Sources</h2>



<ul class="wp-block-list">
<li><a href="https://www.networkworld.com/article/4251523/whats-next-for-azure-networking.html" target="_blank" rel="noopener">Network World: What&#8217;s next for Azure networking</a></li>


<li><a href="https://techcommunity.microsoft.com/blog/azurenetworkingblog/introducing-agent-grid/4573407" target="_blank" rel="noopener">Microsoft: Introducing Agent Grid</a></li>


<li><a href="https://techcommunity.microsoft.com/blog/AzureNetworkingBlog/secure-ai-secure-with-ai-introducing-the-next-chapter-of-azure-firewall-/4573399" target="_blank" rel="noopener">Microsoft: The next chapter of Azure Firewall</a></li>


<li><a href="https://adversarylab.substack.com/p/microsoft-ignite-2026-whats-changing" target="_blank" rel="noopener">Microsoft Ignite 2026: What&#8217;s changing in Azure infrastructure and cloud security</a></li>


<li><a href="https://news.microsoft.com/events/ignite/2026/book-of-news/" target="_blank" rel="noopener">Microsoft Ignite 2026 Book of News</a></li>
</ul>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Azure Baseline Security Mode and Other Azure Policy News from Ignite 2026</title>
		<link>https://www.armandit.com/2026/11/25/azure-baseline-security-mode-ignite-2026/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Wed, 25 Nov 2026 20:07:00 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Azure Policy]]></category>
		<category><![CDATA[Governance]]></category>
		<category><![CDATA[Ignite 2026]]></category>
		<category><![CDATA[Key Vault]]></category>
		<category><![CDATA[Machine Configuration]]></category>
		<category><![CDATA[Storage]]></category>
		<guid isPermaLink="false">https://www.armandit.com/?p=767</guid>

					<description><![CDATA[Ignite 2026 introduced Azure Baseline Security Mode and drift remediation in Machine Configuration, and in this post I explain the 7 controls, what they can break and how to check your environment today.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Most Azure environments need the same basic security controls, like no anonymous blob access, TLS 1.2 or higher, no shared keys and Key Vaults that cannot be purged by accident. Every organization builds these from individual Azure Policy definitions, mostly from scratch.</p>



<p class="wp-block-paragraph">During Microsoft Ignite 2026 Microsoft announced Azure Baseline Security Mode, which packages these controls into 1 baseline. Machine Configuration also got the option to fix drift on servers, instead of only reporting it.</p>



<div class="wp-block-group is-style-callout has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Status at the time of writing (25 November 2026)</strong>Azure Baseline Security Mode and Machine Configuration baseline remediation are both in public preview. Don&#8217;t enforce preview features on production without testing, and check the linked Microsoft posts for changes.</p>
</div>



<h2 class="wp-block-heading">What Is Azure Baseline Security Mode</h2>



<p class="wp-block-paragraph">Azure Baseline Security Mode (Azure BSM) is a guided experience, built on Azure Policy, to apply a set of <em>Microsoft-curated</em> security controls. Instead of assigning the policies yourself, you enable the baseline centrally and the resource owners move their subscriptions into enforcement when they are ready. It is the Azure part of the broader Microsoft Baseline Security Mode for Microsoft&#8217;s cloud services.</p>



<p class="wp-block-paragraph">The first version contains 7 controls for Azure Storage and Azure Key Vault, and Microsoft says more policies will follow.</p>



<h2 class="wp-block-heading">The 7 Controls</h2>



<p class="wp-block-paragraph">You can find these controls in Azure under Policy -> Assignment Presets -> Baseline Security</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="529" src="https://www.armandit.com/wp-content/uploads/2026/11/2026-11-30-21_11_59-Policy-Microsoft-Azure-—-Mozilla-Firefox-1024x529.png" alt="" class="wp-image-806" srcset="https://www.armandit.com/wp-content/uploads/2026/11/2026-11-30-21_11_59-Policy-Microsoft-Azure-—-Mozilla-Firefox-1024x529.png 1024w, https://www.armandit.com/wp-content/uploads/2026/11/2026-11-30-21_11_59-Policy-Microsoft-Azure-—-Mozilla-Firefox-300x155.png 300w, https://www.armandit.com/wp-content/uploads/2026/11/2026-11-30-21_11_59-Policy-Microsoft-Azure-—-Mozilla-Firefox-768x397.png 768w, https://www.armandit.com/wp-content/uploads/2026/11/2026-11-30-21_11_59-Policy-Microsoft-Azure-—-Mozilla-Firefox-1536x794.png 1536w, https://www.armandit.com/wp-content/uploads/2026/11/2026-11-30-21_11_59-Policy-Microsoft-Azure-—-Mozilla-Firefox-2048x1059.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">The controls currently listed are:</p>



<figure class="wp-block-table"><table><thead><tr><th>Service</th><th>Control</th><th>What it can break</th></tr></thead><tbody><tr><td>Storage</td><td>Secure transfer required (HTTPS only)</td><td>Very old clients or scripts that still use plain HTTP.</td></tr><tr><td>Storage</td><td>Anonymous public access prevented</td><td>Public blob containers used for downloads or static content.</td></tr><tr><td>Storage</td><td>Minimum TLS version enforced</td><td>Legacy clients that only speak TLS 1.0/1.1.</td></tr><tr><td>Storage</td><td>Shared Key authorization prevented</td><td>Anything using account keys, connection strings with keys, or SAS tokens signed with an account key. User delegation SAS (signed with Entra ID) keeps working.</td></tr><tr><td>Key Vault</td><td>Public network access restricted</td><td>Pipelines and apps that reach the vault over the internet without private endpoints or firewall rules.</td></tr><tr><td>Key Vault</td><td>Soft delete required</td><td>Nothing in practice; soft delete is already on for new vaults.</td></tr><tr><td>Key Vault</td><td>Purge protection required</td><td>Nothing at runtime, but it is <strong>irreversible</strong>: deleted vaults and secrets stay for the full retention period.</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">The Storage controls for TLS, HTTPS and anonymous access are low risk for most environments. Shared Key needs some preparation, since a lot of tooling, older SDKs and third-party products still use account keys.</p>



<h2 class="wp-block-heading">How the Rollout Works</h2>



<p class="wp-block-paragraph">Microsoft describes 4 steps, where <em>seeing</em> the results is separated from <em>enforcing</em> them:</p>



<ol class="wp-block-list">
<li>Assign centrally: a platform team assigns Azure BSM through the <em>Baseline Security Mode</em> experience in the Azure Policy portal, preferably on a management group.</li>



<li>Review and remediate: resource owners check compliance and fix what they can.</li>



<li>Enroll for enforcement: owners enroll eligible management groups or subscriptions, and can temporarily exempt resources or scopes. This uses the new <em>policy enrollment</em> resources together with Azure Policy selectors and overrides.</li>



<li>Monitor and expand: track compliance and widen the enforced scope over time.</li>
</ol>



<p class="wp-block-paragraph">The announcement doesn&#8217;t list the policy effect per control, so make sure to read the <a href="https://aka.ms/azuresbm" target="_blank" rel="noopener">Azure BSM tutorial</a> before you enroll anything for enforcement.</p>



<h2 class="wp-block-heading">Check Your Environment Today</h2>



<p class="wp-block-paragraph">You don&#8217;t need the preview to see how much work is waiting. The following Azure Resource Graph queries list every storage account and key vault that would fail 1 of the 7 controls. You can execute them in Resource Graph Explorer or with the Azure CLI.</p>



<h3 class="wp-block-heading">Storage Accounts</h3>



<pre class="wp-block-code language-none"><code>resources
| where type =~ 'microsoft.storage/storageaccounts'
| extend p = properties
| project name, resourceGroup, subscriptionId,
    httpsOnly        = coalesce(tobool(p.supportsHttpsTrafficOnly), true),
    publicBlobAccess = coalesce(tobool(p.allowBlobPublicAccess), true),
    minTls           = tostring(p.minimumTlsVersion),
    sharedKey        = coalesce(tobool(p.allowSharedKeyAccess), true)
| where httpsOnly == false or publicBlobAccess == true
    or minTls !in ('TLS1_2', 'TLS1_3') or sharedKey == true
| order by subscriptionId, resourceGroup, name</code></pre>



<h3 class="wp-block-heading">Key Vaults</h3>



<pre class="wp-block-code language-none"><code>resources
| where type =~ 'microsoft.keyvault/vaults'
| extend p = properties
| project name, resourceGroup, subscriptionId,
    publicNetwork   = tostring(p.publicNetworkAccess),
    defaultAction   = tostring(p.networkAcls.defaultAction),
    softDelete      = coalesce(tobool(p.enableSoftDelete), true),
    purgeProtection = coalesce(tobool(p.enablePurgeProtection), false)
| where publicNetwork !~ 'Disabled' or softDelete == false or purgeProtection == false
| order by subscriptionId, resourceGroup, name</code></pre>



<p class="wp-block-paragraph">If you want to use the command line, save the query to a file first and execute it as following:</p>



<pre class="wp-block-code language-bash"><code>az extension add --name resource-graph
az graph query -q "$(cat storage.kql)" --first 1000 -o table</code></pre>



<div class="wp-block-group is-style-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Before you disable Shared Key</strong>Find out who is still using it. In Azure Monitor, open the <em>Transactions</em> metric of the storage account and split it by the <em>Authentication</em> dimension. Anything that shows <em>AccountKey</em> or <em>SAS</em> needs to move to Microsoft Entra ID first.</p>
</div>



<h2 class="wp-block-heading">Machine Configuration &#8211; Audit and Remediation</h2>



<p class="wp-block-paragraph">Machine Configuration (formerly Guest Configuration) could already <em>audit</em> operating system settings against security baselines. New in public preview is baseline remediation, where Machine Configuration corrects the settings you select when they drift. Settings you leave in audit mode only report compliance. This works for Azure VMs and Azure Arc-enabled servers, so also on-premises and in other clouds.</p>



<figure class="wp-block-table"><table><thead><tr><th>Baseline</th><th>Audit</th><th>Remediate</th></tr></thead><tbody><tr><td>Azure Security Baseline, Linux</td><td>Yes</td><td>Yes (preview)</td></tr><tr><td>Azure Security Baseline, Windows</td><td>Yes</td><td>Yes (preview)</td></tr><tr><td>CIS, Linux</td><td>Yes</td><td>Yes (preview)</td></tr><tr><td>CIS, Windows</td><td>Yes</td><td>No</td></tr><tr><td>STIG, Linux</td><td>Yes</td><td>Listed, but see note</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Microsoft&#8217;s table lists STIG Linux as remediation-capable, but the same post only mentions the first 3 baselines for the preview, so I would treat STIG remediation as unconfirmed for now. Microsoft also announced a Machine Configuration hub in the portal and Machine Inventory (applications, certificates, services, users and groups on Windows, daemons and software on Linux), which you can query with Azure Resource Graph.</p>



<h2 class="wp-block-heading">Other Azure Policy Announcements</h2>



<ul class="wp-block-list">
<li>Policy enrollments (public preview), which you can also use for your own policies.</li>



<li>IP filtering in policy expressions (public preview), to block requests from IP addresses or CIDR ranges.</li>



<li>Custom policy versioning for your own definitions.</li>



<li>The Azure Policy linter is open-sourced, to find mistakes in policy definitions before deployment.</li>



<li>Exemption substate, which shows if exempted resources are actually compliant.</li>



<li>Kubernetes ValidatingAdmissionPolicy (CEL) support for AKS and Arc-enabled clusters.</li>



<li>The Azure Resource Manager MCP server (public preview, expanded) supports more than 3,500 resource types for AI agents, and their requests are evaluated by Azure Policy like any other request.</li>



<li>Azure Service Groups are generally available, to group subscriptions, resource groups and resources without moving them.</li>
</ul>



<h2 class="wp-block-heading">Next Steps</h2>



<ol class="wp-block-list">
<li>Execute the 2 Resource Graph queries and share the results with the workload owners.</li>



<li>Fix HTTPS, TLS and anonymous access on storage accounts, since these don&#8217;t need the preview.</li>



<li>Start a Shared Key inventory with the Transactions metric and plan the move to Entra ID.</li>



<li>Test Azure BSM in audit only on a non-production management group.</li>



<li>Test Machine Configuration remediation on a few test VMs before you use it on production servers.</li>
</ol>



<h2 class="wp-block-heading">Sources</h2>



<ul class="wp-block-list">
<li><a href="https://techcommunity.microsoft.com/blog/azuregovernanceandmanagementblog/azure-governance--management--microsoft-ignite-2026/4571751" target="_blank" rel="noopener">Azure Governance &amp; Management @ Microsoft Ignite 2026</a></li>



<li><a href="https://techcommunity.microsoft.com/blog/azuregovernanceandmanagementblog/introducing-azure-baseline-security-mode-a-simpler-path-to-secure-by-default-azu/4573056" target="_blank" rel="noopener">Introducing Azure Baseline Security Mode</a></li>



<li><a href="https://techcommunity.microsoft.com/blog/azuregovernanceandmanagementblog/machine-configuration--ignite-2026/4573872" target="_blank" rel="noopener">Machine Configuration @ Ignite 2026</a></li>



<li><a href="https://aka.ms/azuresbm" target="_blank" rel="noopener">Azure BSM tutorial</a></li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>AKS Announcements at Microsoft Ignite 2026</title>
		<link>https://www.armandit.com/2026/11/21/aks-ignite-2026/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Sat, 21 Nov 2026 09:18:00 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Kubernetes]]></category>
		<category><![CDATA[AKS]]></category>
		<category><![CDATA[Fleet Manager]]></category>
		<category><![CDATA[GPU]]></category>
		<category><![CDATA[Ignite 2026]]></category>
		<guid isPermaLink="false">https://www.armandit.com/?p=768</guid>

					<description><![CDATA[An overview of the AKS announcements from Microsoft Ignite 2026, from platform-initiated upgrades and managed GPU node pools to Fleet Manager and agents on AKS.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">During Microsoft Ignite 2026 most AKS announcements were about running AI models and agents on Kubernetes. For most platform teams the more important news is that unsupported clusters will be upgraded by Microsoft, GPU node pools are now managed and Fleet Manager got several multi-cluster features. Below are the announcements, starting with the ones to act on first.</p>



<div class="wp-block-group is-style-callout has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Status at the time of writing (21 November 2026)</strong>Statuses are taken from Microsoft&#8217;s AKS Ignite blog and the AKS engineering blog. Several agent features are in limited preview, so check the sources before you plan around a date.</p>
</div>



<h2 class="wp-block-heading">Platform-Initiated Upgrades</h2>



<p class="wp-block-paragraph">Microsoft announced <em>platform-initiated upgrades</em>, which means clusters that stay on an unsupported Kubernetes version will be upgraded by the platform, in waves, starting 1 June 2027. Make sure every cluster is on a supported version with an upgrade schedule you control.</p>



<p class="wp-block-paragraph">You can list your clusters with their versions and upgrade settings as following:</p>



<pre class="wp-block-code language-bash"><code>az aks list --query "[].{name:name, rg:resourceGroup, version:currentKubernetesVersion, channel:autoUpgradeProfile.upgradeChannel, nodeOs:autoUpgradeProfile.nodeOsUpgradeChannel}" -o table

# supported versions in your region, and the upgrade paths for one cluster
az aks get-versions --location westeurope -o table
az aks get-upgrades --resource-group rg-aks-prd-001 --name aks-prd-001 -o table</code></pre>



<p class="wp-block-paragraph">If you want AKS to keep the cluster up to date inside a maintenance window you choose, you can execute the following:</p>



<pre class="wp-block-code language-bash"><code>az aks update --resource-group rg-aks-prd-001 --name aks-prd-001 \
  --auto-upgrade-channel stable --node-os-upgrade-channel NodeImage

az aks maintenanceconfiguration add --resource-group rg-aks-prd-001 --cluster-name aks-prd-001 \
  --name aksManagedAutoUpgradeSchedule --schedule-type Weekly --day-of-week Saturday \
  --interval-weeks 1 --start-time 02:00 --duration 4 --utc-offset +01:00</code></pre>



<h2 class="wp-block-heading">Managed GPU Node Pools</h2>



<p class="wp-block-paragraph">Managed GPU node pools are now generally available. AKS manages the GPU driver, device plugin and metrics exporter, and sends the GPU metrics to Azure Monitor, so you no longer need to maintain the GPU Operator and driver DaemonSets yourself. The GB200 and GB300 VM sizes (on Ubuntu and Azure Linux node pools) and a mixed MIG strategy are in preview.</p>



<h2 class="wp-block-heading">Confidential and Hardened Nodes</h2>



<ul class="wp-block-list">
<li>Confidential VM node pools on Azure Container Linux are GA on Intel TDX and AMD SEV-SNP sizes.</li>


<li>The CIS Level 1 benchmark for Azure Container Linux is GA.</li>


<li>Ubuntu 26.04 confidential node pools (Intel TDX, OS disk encryption on by default) and node hardening are in preview.</li>
</ul>



<h2 class="wp-block-heading">Azure Kubernetes Fleet Manager</h2>



<p class="wp-block-paragraph">If you run more than a few clusters, Azure Kubernetes Fleet Manager now has the following features in GA:</p>



<ul class="wp-block-list">
<li>Cross-cluster networking with a managed Cilium multi-cluster network and global service discovery, now also for member clusters that use overlay networking.</li>


<li>A security patch auto-upgrade channel that applies the weekly Linux node security updates across the fleet.</li>


<li>Scheduled start gates and label-based update groups to control when and in which order clusters are updated.</li>
</ul>



<p class="wp-block-paragraph">Multi-cluster identity binding management is in public preview.</p>



<h2 class="wp-block-heading">Models and Agents on Your Own Clusters</h2>



<p class="wp-block-paragraph">With AKS AI Manager for Foundry you can deploy open-weight models and Foundry hosted agents from Microsoft Foundry on AKS clusters you already run. Deploying open-weight models is in limited preview. Running Foundry hosted agents on your own clusters is also in limited preview (public preview planned for early December 2026).</p>



<p class="wp-block-paragraph">This is built on 3 previews that can also be used on their own:</p>



<ul class="wp-block-list">
<li>The Agent Sandbox extension, based on the open-source Kubernetes Agent Sandbox project, which handles sandbox creation, lifecycle and pre-warmed pools. You can use Kata microVM isolation on your own nodes or a serverless runtime on Azure Container Instances.</li>


<li>The Pod Snapshot extension, which saves a pod&#8217;s memory and process state to Azure Blob Storage and restores it on demand.</li>


<li>A faster <em>kata</em> runtime class that starts pods from a pre-initialized VM template.</li>
</ul>



<h2 class="wp-block-heading">Flex Nodes</h2>



<p class="wp-block-paragraph">Flex nodes (public preview) extend AKS node pools to supported GPU and server environments outside Azure, managed through Azure Arc. It is aimed at hybrid AI capacity rather than homelabs, but since I run Kubernetes on my own hardware I will keep an eye on this one.</p>



<h2 class="wp-block-heading">Other Announcements</h2>



<ul class="wp-block-list">
<li>A managed StandardV2 NAT gateway is GA for new clusters that use the managed NAT gateway outbound type.</li>


<li>Azure Chaos Studio workspaces and scenarios are GA, with pod-level faults for AKS.</li>


<li>Node autorepair and CNI autorepair are in preview.</li>
</ul>



<h2 class="wp-block-heading">Next Steps</h2>



<ol class="wp-block-list">
<li>Check your cluster versions now and make sure everything is on a supported version well before June 2027.</li>


<li>Set an auto-upgrade channel, a node OS channel and a maintenance window on every cluster.</li>


<li>If you run GPU workloads, plan the move from self-managed drivers to managed GPU node pools.</li>


<li>If you have multiple clusters, have a look at the update groups and the security patch channel in Fleet Manager.</li>


<li>Keep the agent sandbox and Foundry features in a lab until they are out of preview.</li>
</ol>



<h2 class="wp-block-heading">Sources</h2>



<ul class="wp-block-list">
<li><a href="https://techcommunity.microsoft.com/blog/appsonazureblog/run-models-and-agents-on-your-own-kubernetes-clusters-aks-at-microsoft-ignite-20/4573912" target="_blank" rel="noopener">Run models and agents on your own Kubernetes clusters: AKS at Microsoft Ignite 2026</a></li>


<li><a href="https://blog.aks.azure.com/2026/11/17/platform-initiated-upgrades" target="_blank" rel="noopener">AKS platform-initiated upgrades</a></li>


<li><a href="https://azure.microsoft.com/en-us/blog/introducing-azure-catalyst-agentic-modernization-and-new-ai-infrastructure-innovations/" target="_blank" rel="noopener">Introducing Azure Catalyst and new AI infrastructure innovations</a></li>


<li><a href="https://news.microsoft.com/events/ignite/2026/book-of-news/" target="_blank" rel="noopener">Microsoft Ignite 2026 Book of News</a></li>
</ul>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Azure Bastion: How It Works and Which SKU to Choose</title>
		<link>https://www.armandit.com/2026/11/19/azure-bastion-inside-out/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Thu, 19 Nov 2026 19:42:00 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Azure Bastion]]></category>
		<category><![CDATA[Bastion]]></category>
		<category><![CDATA[Bicep]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Remote Access]]></category>
		<guid isPermaLink="false">https://demo.themeansar.com/newsup/lite/?p=98</guid>

					<description><![CDATA[How Azure Bastion works, the differences between the Developer, Basic, Standard and Premium SKUs, the NSG rules you need, native client commands and a Bicep example.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">One of the most common ways virtual machines get compromised is still RDP or SSH that is open to the internet. With Azure Bastion you connect to your VMs over TLS, from the Azure portal or from your own RDP/SSH client, so the VMs don&#8217;t need a public IP address at all.</p>



<p class="wp-block-paragraph">Bastion comes in 4 SKUs (Developer, Basic, Standard and Premium) and the differences are not always clear, so I&#8217;ve put together how it works, what each SKU offers and what you need to deploy it.</p>



<h2 class="wp-block-heading">How Azure Bastion Works</h2>



<p class="wp-block-paragraph">Azure Bastion is a managed PaaS service that you deploy into your virtual network. A connection always goes as following:</p>



<ol class="wp-block-list">
<li>You open a session from the Azure portal (HTML5, in the browser) or from your local client (the <em>native client</em> feature).</li>


<li>Your client connects to Bastion over TLS on port 443, and Entra ID and Azure RBAC decide whether you are allowed to connect.</li>


<li>Bastion opens the RDP (3389) or SSH (22) session to the private IP of the target VM.</li>
</ol>



<p class="wp-block-paragraph">So no public IPs on your VMs, no jump boxes to patch and 1 central point for access and logging. To connect you need at least <em>Reader</em> on the virtual machine, its network interface (and the NIC&#8217;s private IP) and the Bastion resource. Signing in to the operating system still uses the local or domain credentials of the VM, an SSH key, or Microsoft Entra ID where supported.</p>



<h2 class="wp-block-heading">SKU Comparison</h2>



<figure class="wp-block-table"><table><thead><tr><th>Feature</th><th>Developer</th><th>Basic</th><th>Standard</th><th>Premium</th></tr></thead>
<tbody>
<tr><td>Cost</td><td>Free</td><td>Hourly</td><td>Hourly + per extra instance</td><td>Hourly + per extra instance</td></tr>
<tr><td>Infrastructure</td><td>Shared</td><td>Dedicated</td><td>Dedicated</td><td>Dedicated</td></tr>
<tr><td>Needs AzureBastionSubnet (/26)</td><td>No</td><td>Yes</td><td>Yes</td><td>Yes</td></tr>
<tr><td>Concurrent connections</td><td>1 VM at a time</td><td>2 instances (about 40 RDP / 80 SSH)</td><td>2–50 instances (up to about 1,000 RDP / 2,000 SSH)</td><td>Same as Standard</td></tr>
<tr><td>VMs in peered VNets</td><td>No</td><td>Yes</td><td>Yes</td><td>Yes</td></tr>
<tr><td>Native client (mstsc / ssh / az CLI)</td><td>No</td><td>No</td><td>Yes</td><td>Yes</td></tr>
<tr><td>File transfer</td><td>No</td><td>No</td><td>Yes (native client)</td><td>Yes (native client)</td></tr>
<tr><td>IP-based connection (e.g. on-premises servers)</td><td>No</td><td>No</td><td>Yes</td><td>Yes</td></tr>
<tr><td>Shareable links</td><td>No</td><td>No</td><td>Yes</td><td>Yes</td></tr>
<tr><td>Custom ports</td><td>No</td><td>No</td><td>Yes</td><td>Yes</td></tr>
<tr><td>Session recording</td><td>No</td><td>No</td><td>No</td><td>Yes</td></tr>
<tr><td>Private-only (no public IP)</td><td>No</td><td>No</td><td>No</td><td>Yes</td></tr>
</tbody></table></figure>



<p class="wp-block-paragraph">Be aware that the number of sessions depends on the workload, heavy RDP sessions (video, large screens) use more capacity per instance than light admin work.</p>



<div class="wp-block-group is-style-callout has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Upgrading and Downgrading</strong>You can upgrade a Bastion host to a higher SKU in place (Developer &rarr; Basic &rarr; Standard &rarr; Premium). Downgrading is not supported, for that you will need to delete the Bastion host and deploy it again with the lower SKU.</p>
</div>



<h2 class="wp-block-heading">Developer</h2>



<p class="wp-block-paragraph">The Developer SKU is free and runs on shared infrastructure, so nothing is deployed into your network (no AzureBastionSubnet and no public IP). It only allows 1 connection at a time, has no virtual network peering, only works from the portal and is available in a limited set of regions. Microsoft positions it for dev/test, but for a lab subscription it works fine.</p>



<h2 class="wp-block-heading">Basic</h2>



<p class="wp-block-paragraph">Basic is the first SKU with dedicated hosts in your own virtual network. It always runs 2 instances and can reach VMs in peered virtual networks, so in a hub-and-spoke design 1 Bastion in the hub can serve all spokes. You can only connect through the portal though, so there is no native client, file transfer, custom ports or IP-based connection.</p>



<h2 class="wp-block-heading">Standard</h2>



<p class="wp-block-paragraph">Standard adds the features most administrators ask for:</p>



<ul class="wp-block-list">
<li>Host scaling from 2 to 50 instances (scale units)</li>


<li>Native client: your own <em>mstsc</em> or <em>ssh</em> through the Azure CLI, including multi-monitor RDP and Microsoft Entra ID sign-in for supported VMs</li>


<li>File transfer over native client sessions</li>


<li>IP-based connection to any reachable private IP, including on-premises servers over ExpressRoute or VPN</li>


<li>Shareable links, to give someone access to 1 VM without access to the Azure portal</li>


<li>Custom ports for VMs that listen on non-default RDP/SSH ports</li>
</ul>



<p class="wp-block-paragraph">Most of these are turned off by default, you can enable them on the Bastion resource under <em>Configuration</em> or in your template (see the Bicep example below).</p>



<h2 class="wp-block-heading">Premium</h2>



<p class="wp-block-paragraph">Premium includes everything from Standard and adds session recording (portal sessions are recorded to a blob container in your own storage account) and private-only deployment, where the Bastion host gets no public IP and is only reachable over private connectivity such as ExpressRoute private peering. Microsoft now recommends Premium for production environments with strict security and audit requirements.</p>



<h2 class="wp-block-heading">Network Requirements</h2>



<p class="wp-block-paragraph">All dedicated SKUs (Basic, Standard and Premium) need a subnet named exactly <em>AzureBastionSubnet</em> of at least /26 (make it /26 from the start, since Standard and Premium need the room to scale out) and a Standard SKU, static public IP (except for Premium private-only).</p>



<p class="wp-block-paragraph">A network security group on AzureBastionSubnet is optional, but if you add one it must allow the following traffic, otherwise deployments and connections will fail:</p>



<figure class="wp-block-table"><table><thead><tr><th>Direction</th><th>Source</th><th>Destination</th><th>Port</th><th>Purpose</th></tr></thead>
<tbody>
<tr><td>Inbound</td><td>Internet (or your client ranges)</td><td>Any</td><td>443</td><td>Users connecting to Bastion</td></tr>
<tr><td>Inbound</td><td>GatewayManager</td><td>Any</td><td>443</td><td>Control plane</td></tr>
<tr><td>Inbound</td><td>AzureLoadBalancer</td><td>Any</td><td>443</td><td>Health probes</td></tr>
<tr><td>Inbound</td><td>VirtualNetwork</td><td>VirtualNetwork</td><td>8080, 5701</td><td>Bastion data plane</td></tr>
<tr><td>Outbound</td><td>Any</td><td>VirtualNetwork</td><td>22, 3389</td><td>Sessions to the target VMs (add custom ports here)</td></tr>
<tr><td>Outbound</td><td>Any</td><td>AzureCloud</td><td>443</td><td>Diagnostics and Azure endpoints</td></tr>
<tr><td>Outbound</td><td>VirtualNetwork</td><td>VirtualNetwork</td><td>8080, 5701</td><td>Bastion data plane</td></tr>
<tr><td>Outbound</td><td>Any</td><td>Internet</td><td>80</td><td>Session and certificate validation</td></tr>
</tbody></table></figure>



<p class="wp-block-paragraph">On the target VMs, only allow RDP/SSH from the AzureBastionSubnet address range and nothing from the internet.</p>



<div class="wp-block-group is-style-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Route Tables and Forced Tunneling</strong>Don&#8217;t associate a route table that sends 0.0.0.0/0 to a firewall or NVA with AzureBastionSubnet. Bastion needs a direct path for its control plane, so forced tunneling on that subnet breaks it. If you want to inspect the traffic, do this on the spoke side instead.</p>
</div>



<h2 class="wp-block-heading">Connecting with the Native Client</h2>



<p class="wp-block-paragraph">If you have Standard or Premium with <em>Native client support</em> enabled, you can use your own tools through the Azure CLI. First you will need to add the extensions:</p>



<pre class="wp-block-code language-powershell"><code>az extension add --name bastion
az extension add --name ssh   # only needed for Microsoft Entra ID SSH sign-in</code></pre>



<p class="wp-block-paragraph">If you want to RDP to a Windows VM (from a Windows machine, this opens <em>mstsc</em>), you can execute the following:</p>



<pre class="wp-block-code language-powershell"><code>az network bastion rdp --name bas-hub-prd-001 --resource-group rg-network-hub-prd-001 `
  --target-resource-id /subscriptions/&lt;sub-id&gt;/resourceGroups/rg-app-prd-001/providers/Microsoft.Compute/virtualMachines/vm-app-prd-001</code></pre>



<p class="wp-block-paragraph">For SSH to a Linux VM you can use an SSH key, or Microsoft Entra ID with <code>--auth-type AAD</code>:</p>



<pre class="wp-block-code language-bash"><code>az network bastion ssh --name bas-hub-prd-001 --resource-group rg-network-hub-prd-001 \
  --target-resource-id &lt;vm-resource-id&gt; \
  --auth-type ssh-key --username azureuser --ssh-key ~/.ssh/id_ed25519</code></pre>



<p class="wp-block-paragraph">If you want to use any SSH or SCP tool, or reach a custom port, you can open a tunnel that forwards a local port to the VM:</p>



<pre class="wp-block-code language-bash"><code>az network bastion tunnel --name bas-hub-prd-001 --resource-group rg-network-hub-prd-001 \
  --target-resource-id &lt;vm-resource-id&gt; --resource-port 22 --port 50022

# in a second terminal
ssh -p 50022 azureuser@127.0.0.1
scp -P 50022 ./backup.tar.gz azureuser@127.0.0.1:/tmp/</code></pre>



<p class="wp-block-paragraph">To connect to a server that isn&#8217;t an Azure VM (for example on-premises), you can replace <code>--target-resource-id</code> with <code>--target-ip-address 10.10.1.4</code>.</p>



<h2 class="wp-block-heading">Deploying Bastion Standard with Bicep</h2>



<p class="wp-block-paragraph">If you want to deploy Bastion with Bicep, you can use the example below. It deploys a Standard Bastion host into an existing hub virtual network with the most used features enabled. If you change <em>skuName</em> to <em>Premium</em> you can also use session recording and private-only mode.</p>



<pre class="wp-block-code language-bicep"><code>param location string = resourceGroup().location
param vnetName string = 'vnet-hub-prd-001'
param bastionName string = 'bas-hub-prd-001'
@allowed([ 'Basic', 'Standard', 'Premium' ])
param skuName string = 'Standard'

resource vnet 'Microsoft.Network/virtualNetworks@2024-05-01' existing = {
  name: vnetName
}

resource bastionSubnet 'Microsoft.Network/virtualNetworks/subnets@2024-05-01' existing = {
  parent: vnet
  name: 'AzureBastionSubnet' // must exist, /26 or larger
}

resource pip 'Microsoft.Network/publicIPAddresses@2024-05-01' = {
  name: 'pip-${bastionName}'
  location: location
  sku: { name: 'Standard' }
  properties: { publicIPAllocationMethod: 'Static' }
}

resource bastion 'Microsoft.Network/bastionHosts@2024-05-01' = {
  name: bastionName
  location: location
  sku: { name: skuName }
  properties: {
    scaleUnits: 2           // Standard/Premium: 2-50
    enableTunneling: true   // native client support
    enableFileCopy: true    // file transfer via native client
    enableIpConnect: true   // IP-based connection
    enableShareableLink: false
    disableCopyPaste: false
    ipConfigurations: [
      {
        name: 'ipconfig1'
        properties: {
          subnet: { id: bastionSubnet.id }
          publicIPAddress: { id: pip.id }
        }
      }
    ]
  }
}</code></pre>



<h2 class="wp-block-heading">Keeping the Cost Under Control</h2>



<p class="wp-block-paragraph">The dedicated SKUs are billed per hour, whether anyone is connected or not, plus each extra Standard/Premium instance above the included 2, plus outbound data transfer (the first 5 GB per month is free). You can check the prices for your region on the <a href="https://azure.microsoft.com/pricing/details/azure-bastion/" target="_blank" rel="noopener">Azure Bastion pricing page</a>. To keep the cost down:</p>



<ul class="wp-block-list">
<li>Use 1 Bastion per hub instead of per spoke</li>


<li>Use Developer for labs</li>


<li>Start Standard at 2 instances and only add scale units when the concurrent sessions require it</li>


<li>In non-production, deploy Bastion from your template when you need it and remove it afterwards (deployment takes a few minutes)</li>
</ul>



<h2 class="wp-block-heading">New in 2026</h2>



<p class="wp-block-paragraph">The following features were still in public preview at the time of writing, so check the <a href="https://learn.microsoft.com/azure/bastion/whats-new" target="_blank" rel="noopener">What&#8217;s new page</a> for their current status:</p>



<ul class="wp-block-list">
<li>Managed identity for session recording (Premium), instead of a SAS URL</li>


<li>IPv6 dual stack support</li>


<li><em>RDP vision</em> and <em>SSH vision</em>, which summarize recorded sessions and flag risky activity, and <em>SSH command logs</em></li>
</ul>



<h2 class="wp-block-heading">Which SKU to Choose</h2>



<ul class="wp-block-list">
<li>Developer &#8211; lab or dev/test, 1 person, VMs in a single VNet</li>


<li>Basic &#8211; small production environments that only need browser-based RDP/SSH</li>


<li>Standard &#8211; the default for most organizations</li>


<li>Premium &#8211; regulated environments that need session recording or a Bastion without public IP</li>
</ul>



<p class="wp-block-paragraph">Whichever SKU you choose, make sure to remove the public IPs from your VMs and close RDP and SSH to the internet.</p>



<p class="wp-block-paragraph">Sources: <a href="https://learn.microsoft.com/azure/bastion/bastion-sku-comparison" target="_blank" rel="noopener">Choose the right Azure Bastion SKU</a>, <a href="https://learn.microsoft.com/azure/bastion/bastion-overview" target="_blank" rel="noopener">What is Azure Bastion?</a>, <a href="https://learn.microsoft.com/azure/bastion/bastion-nsg" target="_blank" rel="noopener">Working with NSG access and Azure Bastion</a>.</p>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Export Azure Resource Tags</title>
		<link>https://www.armandit.com/2025/03/21/export-azure-resource-tags/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Fri, 21 Mar 2025 21:03:49 +0000</pubDate>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Azure Resource Tags]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Resource Tag]]></category>
		<category><![CDATA[Tag]]></category>
		<category><![CDATA[Tags]]></category>
		<guid isPermaLink="false">https://www.armandit.com/?p=446</guid>

					<description><![CDATA[A PowerShell script that exports the tags of your Azure resources to CSV, one column per tag key, so you can spot missing and inconsistent tags across subscriptions.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">One of Microsoft&#8217;s best practices is to ensure to add Tags (which are <em>key:value</em> pairs) to resources for accurate ownership tracking and cost management. Whether you apply tags to management groups, subscriptions, resource groups or resources, this ensures you can easily create reports based on these tags.</p>



<p class="wp-block-paragraph">However, the accuracy of these reports is tied to the quality of the tag key and value names. Most organization, that do not use Azure Policies to help enforce the correct tagging strategy, have big difference in these key/value pairs.</p>



<p class="wp-block-paragraph">To help get an overview of the missing tags on Azure resources I&#8217;ve created a PowerShell script that creates a CSV with tag key names as column name and the values below:</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1024" height="332" src="https://www.armandit.com/wp-content/uploads/2025/03/2025-03-21-21_47_21-Map1-Excel-1024x332.png" alt="" class="wp-image-447" srcset="https://www.armandit.com/wp-content/uploads/2025/03/2025-03-21-21_47_21-Map1-Excel-1024x332.png 1024w, https://www.armandit.com/wp-content/uploads/2025/03/2025-03-21-21_47_21-Map1-Excel-300x97.png 300w, https://www.armandit.com/wp-content/uploads/2025/03/2025-03-21-21_47_21-Map1-Excel-768x249.png 768w, https://www.armandit.com/wp-content/uploads/2025/03/2025-03-21-21_47_21-Map1-Excel.png 1070w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">Script Usage</h2>



<p class="wp-block-paragraph">The script takes the resource type name as input and you can easily pipe all of the applicable resource types using a <em>foreach</em> statement. If you have no idea which resource types you have in Azure, you can also use the <em>-allResourceTypes</em> switch to let the script traverse all registered resource providers in your Azure tenant (but be aware that the script can take a long time to finish, since by default over 2000 resource providers are registered).</p>



<p class="wp-block-paragraph">The script is able to export tags from:</p>



<ul class="wp-block-list">
<li>All Resources &#8211; All Resource Types using the <em>-allResourceTypes </em>switch</li>

<li>All Resources &#8211; Single Resource Type using input parameter</li>

<li>1 Resource &#8211; Single Resource Type using input parameters</li>
</ul>



<div class="wp-block-group is-style-callout has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>Azure Resource Types</strong>Azure resource types are presented in the following format: <br><b> Microsoft.Compute/virtualMachines <br> Microsoft.Network/virtualNetworks</b></p>
</div>



<p class="wp-block-paragraph">The script exports the results per resource type to a .csv, so you will have 1 csv file per resource type:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="2944" height="768" src="https://www.armandit.com/wp-content/uploads/2025/03/ExportResults.png" alt="" class="wp-image-720" srcset="https://www.armandit.com/wp-content/uploads/2025/03/ExportResults.png 2944w, https://www.armandit.com/wp-content/uploads/2025/03/ExportResults-300x78.png 300w, https://www.armandit.com/wp-content/uploads/2025/03/ExportResults-1024x267.png 1024w, https://www.armandit.com/wp-content/uploads/2025/03/ExportResults-768x200.png 768w, https://www.armandit.com/wp-content/uploads/2025/03/ExportResults-1536x401.png 1536w, https://www.armandit.com/wp-content/uploads/2025/03/ExportResults-2048x534.png 2048w" sizes="auto, (max-width: 2944px) 100vw, 2944px" /></figure>



<h2 class="wp-block-heading">All Resources</h2>



<p class="wp-block-paragraph">If you want to export tags for all resources from all resource types, you can add the <em>-allResourceTypes</em> when executing the script:</p>



<pre class="wp-block-code language-powershell"><code>.\Export-AzureTags.ps1 -allResourceTypes</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1280" height="588" src="https://www.armandit.com/wp-content/uploads/2025/03/ExportAllAllTags.gif" alt="" class="wp-image-698"/></figure>



<h2 class="wp-block-heading">All Resources &#8211; Single Resource Type</h2>



<p class="wp-block-paragraph">If you want to export tags for all resources of a single resource type, you can execute the script as following:</p>



<pre class="wp-block-code language-powershell"><code>.\Export-AzureTags.ps1 -resourceType Microsoft.Compute/virtualMachines</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1280" height="588" src="https://www.armandit.com/wp-content/uploads/2025/03/ExportAll1ResTypeTags.gif" alt="" class="wp-image-703"/></figure>



<h2 class="wp-block-heading">All Resources &#8211; Multiple Resource Type</h2>



<p class="wp-block-paragraph">If you want to export tags for all resources of multiple resource types, you can pipe them using a <em>foreach</em> statement. If you create a .csv with the resource type names (a sample .csv is on my <a href="https://github.com/ahatting/Azure/tree/main/Tags" target="_blank" rel="noopener">GitHub account</a>) you can quickly export the resource types required:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1155" height="451" src="https://www.armandit.com/wp-content/uploads/2025/03/Export-Tags-ResourceTypes.csv-Excel.png" alt="" class="wp-image-719" srcset="https://www.armandit.com/wp-content/uploads/2025/03/Export-Tags-ResourceTypes.csv-Excel.png 1155w, https://www.armandit.com/wp-content/uploads/2025/03/Export-Tags-ResourceTypes.csv-Excel-300x117.png 300w, https://www.armandit.com/wp-content/uploads/2025/03/Export-Tags-ResourceTypes.csv-Excel-1024x400.png 1024w, https://www.armandit.com/wp-content/uploads/2025/03/Export-Tags-ResourceTypes.csv-Excel-768x300.png 768w" sizes="auto, (max-width: 1155px) 100vw, 1155px" /></figure>



<pre class="wp-block-code language-powershell"><code>$resourceTypes = Import-Csv -Path &lt;path to csv&gt;
ForEach($type in $resourceTypes){
    .\Export-AzureTags.ps1 -resourceType $type.resourceType
}</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1280" height="588" src="https://www.armandit.com/wp-content/uploads/2025/03/Export1ResMultiResTypeTags.gif" alt="" class="wp-image-725"/></figure>



<h2 class="wp-block-heading">1 Resources &#8211; Single Resource Type</h2>



<p class="wp-block-paragraph">If you want to export tags for just 1 resource of a single resource type, you will need to supply the following:</p>



<ul class="wp-block-list">
<li>Resource Name</li>

<li>Resource Type Name</li>

<li>Resource Group Name</li>

<li>Subscription Id</li>
</ul>



<pre class="wp-block-code language-powershell"><code>.\Export-AzureTags.ps1 -resourceName vnet-con-prd-westeurope-001 -resourceType Microsoft.Network/virtualNetworks -resourceGroupName rg-network-con-prd-001 -subscriptionId c4fcac9a-ab6c-43e2-80b0-83fbe6f12345</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1280" height="588" src="https://www.armandit.com/wp-content/uploads/2025/03/Export1Res1ResTypeTags.gif" alt="" class="wp-image-714"/></figure>



<p class="wp-block-paragraph">The script can be used to sign-in to Azure interactively or non-interactively. You can download the script from my GitHub account <a href="https://github.com/ahatting/Azure/tree/main/Tags" target="_blank" rel="noopener">here</a>.</p>



<p class="wp-block-paragraph">Happy exporting!</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
