<?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>Bicep &#8211; Armand IT</title>
	<atom:link href="https://www.armandit.com/tag/bicep/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.armandit.com</link>
	<description>Azure at work, Kubernetes at home</description>
	<lastBuildDate>Sun, 29 Nov 2026 22:00:09 +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>Bicep &#8211; Armand IT</title>
	<link>https://www.armandit.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Firewall Policy Studio: A Visual Bicep Editor for Azure Firewall Policies</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, with naming conventions, service packs, CSV import and live Bicep output.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Anyone who has maintained an Azure Firewall Policy in Bicep knows the feeling: a few hundred lines of nested arrays, priorities that no longer make sense, and rule names that tell you nothing. Reviewing a change means scrolling through JSON-like structures hoping you spot the one rule that matters.</p>



<p class="wp-block-paragraph">That is why I built <strong><a href="https://fps.armandit.com/" target="_blank" rel="noopener">Firewall Policy Studio</a></strong>: a visual editor for Azure Firewall Policy rules that generates clean, deployable Bicep. It runs entirely 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">A quick refresher: how firewall policies are structured</h2>



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



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

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

<li><strong>Rules</strong>: 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, then application rules. Within each type, groups and collections are processed in priority order, lowest number first, and the first match wins. A sensible structure and consistent priorities are therefore not cosmetic: they decide what traffic is allowed.</p>



<h2 class="wp-block-heading">What Firewall Policy Studio does</h2>



<h3 class="wp-block-heading">A visual editor with live Bicep</h3>



<p class="wp-block-paragraph">The middle panel shows every rule collection group with its collections and rules: sources, destinations, protocols and ports at a glance. Drag rule collections between groups and rules between collections to restructure a policy. The right panel shows the generated Bicep template, updated live as you edit.</p>



<h3 class="wp-block-heading">Naming conventions, enforced</h3>



<p class="wp-block-paragraph">Names are checked against a naming convention when you save a group or collection:</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">When every policy follows the same pattern, you can read a rule&#8217;s purpose from its name, and reviews get a lot faster.</p>



<h3 class="wp-block-heading">Service packs: a baseline in one click</h3>



<p class="wp-block-paragraph">Most policies start with the same plumbing. Built-in service packs insert a complete, named rule collection group:</p>



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

<li><strong>Azure Core Services</strong>: the Azure platform services that workloads typically need.</li>

<li><strong>Core Internet Connectivity</strong>: a baseline for outbound internet access.</li>
</ul>



<h3 class="wp-block-heading">Import what you already have</h3>



<p class="wp-block-paragraph">You don&#8217;t have to start from scratch. The studio reads:</p>



<ul class="wp-block-list">
<li>Bicep files it generated itself (they embed the policy data, so a round trip is lossless).</li>

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

<li>ARM JSON templates and plain Bicep with firewall policy resources, on a best-effort basis.</li>

<li><strong>CSV files</strong> with rules or IP groups, with downloadable templates. Handy when a rule request arrives as a spreadsheet.</li>
</ul>



<h3 class="wp-block-heading">Clean output</h3>



<p class="wp-block-paragraph">Normalize priorities to clean, evenly spaced values with one 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">Deploying the result</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. Always look at the what-if first: deploying a rule collection group replaces its complete contents.</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> Treat the downloaded Bicep as the source of truth: commit it, review changes in pull requests and deploy it from a pipeline. The studio is for editing and restructuring, not a place to store 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 they are sensitive. Firewall Policy Studio stores nothing on the server: your policy, imports and generated Bicep exist only in your browser tab, and leave it only when you download or copy something. Refreshing the page clears everything.</p>



<p class="wp-block-paragraph">This isn&#8217;t just a promise. The site&#8217;s Content-Security-Policy contains <code>connect-src 'none'</code> and <code>form-action 'none'</code>, which tells the browser to block the page from sending data anywhere. It is also why the site scores an A+ on MDN Observatory; more about that in 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 the studio generated 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: download your work before closing the tab.</li>
</ul>



<h2 class="wp-block-heading">Try it</h2>



<p class="wp-block-paragraph">Open <a href="https://fps.armandit.com/" target="_blank" rel="noopener">fps.armandit.com</a>, insert the Microsoft Core Services pack and watch the Bicep appear. Feedback and feature ideas are welcome via <a href="https://www.linkedin.com/in/armandhatting/" target="_blank" rel="noopener">LinkedIn</a>.</p>



<h2 class="wp-block-heading">Sources and further reading</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 Bastion Inside Out: 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 under the hood, a full comparison of 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">Exposing RDP or SSH to the internet is still one of the most common ways virtual machines get compromised. Azure Bastion removes that problem: you connect to your VMs over TLS through the Azure portal or your own RDP/SSH client, and the VMs don&#8217;t need a public IP address at all.</p>



<p class="wp-block-paragraph">In this post I&#8217;ll explain how Azure Bastion works under the hood, walk through the four SKUs (Developer, Basic, Standard and Premium), and show which one fits which situation, including the network requirements, native client commands and a Bicep example.</p>



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



<p class="wp-block-paragraph">Azure Bastion is a fully managed PaaS service that you deploy into your virtual network. A connection always follows the same path:</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 <strong>TLS on port 443</strong>. Entra ID and Azure RBAC decide whether you may connect at all.</li>

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



<p class="wp-block-paragraph">The result: no public IPs on your VMs, no jump boxes to patch, no inbound RDP/SSH from the internet, and one central point for access and logging. Microsoft maintains and hardens the Bastion hosts for you.</p>



<p class="wp-block-paragraph">To connect through Bastion you need at least <strong>Reader</strong> on the virtual machine, its network interface (and the NIC&#8217;s private IP) and the Bastion resource. Signing in to the operating system itself still uses the VM&#8217;s local or domain credentials, an SSH key, or Microsoft Entra ID where supported.</p>



<h2 class="wp-block-heading">The four SKUs at a glance</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">Session counts depend 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). <b>Downgrading is not supported</b>: you have to delete the Bastion host and deploy it again with the lower SKU.</p>
</div>



<h2 class="wp-block-heading">Developer: free, for dev/test</h2>



<p class="wp-block-paragraph">The Developer SKU runs on infrastructure shared with other customers, so there is nothing to deploy into your network: no AzureBastionSubnet and no public IP. You enable it on a virtual network and connect from the portal.</p>



<p class="wp-block-paragraph">The trade-offs are big: one connection at a time, no virtual network peering (only VMs in that VNet), portal connections only, and it&#8217;s available in a limited set of regions. Microsoft explicitly positions it for dev/test, not production. It&#8217;s a perfect fit for a lab subscription or for occasionally logging into a test VM without paying for a dedicated host.</p>



<h2 class="wp-block-heading">Basic: dedicated, fixed capacity</h2>



<p class="wp-block-paragraph">Basic is the first SKU with dedicated hosts in your own virtual network. It always runs <strong>two instances</strong>, supports concurrent connections and, importantly, reaches VMs in <strong>peered virtual networks</strong>. That makes it usable in a hub-and-spoke design: one Bastion in the hub serves every spoke.</p>



<p class="wp-block-paragraph">What it lacks: you can only connect through the portal, so there&#8217;s no native client, file transfer, custom ports or IP-based connections.</p>



<h2 class="wp-block-heading">Standard: the feature-complete workhorse</h2>



<p class="wp-block-paragraph">Standard adds everything administrators usually ask for:</p>



<ul class="wp-block-list">
<li><strong>Host scaling</strong>: 2 to 50 instances (scale units), so it grows with the number of concurrent sessions.</li>

<li><strong>Native client</strong>: connect with 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><strong>File transfer</strong>: upload and download files over native client sessions.</li>

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

<li><strong>Shareable links</strong>: give someone a link to one VM without giving them access to the Azure portal.</li>

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



<p class="wp-block-paragraph">Most native client, file transfer, IP-based connection and shareable link features are turned off by default. 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: compliance and private-only</h2>



<p class="wp-block-paragraph">Premium includes everything from Standard and adds two features aimed at regulated environments:</p>



<ul class="wp-block-list">
<li><strong>Session recording</strong>: graphical sessions (made through the portal) are recorded to a blob container in a storage account you own, so you can replay exactly what happened.</li>

<li><strong>Private-only deployment</strong>: the Bastion host gets no public IP address at all and is reachable only over private connectivity such as ExpressRoute private peering.</li>
</ul>



<p class="wp-block-paragraph">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:</p>



<ul class="wp-block-list">
<li>A subnet named exactly <strong>AzureBastionSubnet</strong>, at least <strong>/26</strong>. Size it at /26 from the start: Standard and Premium need the room to scale out.</li>

<li>A <strong>Standard SKU, static public IP</strong>, except for Premium private-only deployments.</li>
</ul>



<p class="wp-block-paragraph">A network security group on AzureBastionSubnet is optional, but if you add one it must allow the Bastion control and data plane traffic, or 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 <b>AzureBastionSubnet</b>. Bastion needs a direct path for its control plane; forced tunneling on that subnet breaks it. Inspect the traffic on the spoke side instead.</p>
</div>



<h2 class="wp-block-heading">Connecting with the native client</h2>



<p class="wp-block-paragraph">With Standard or Premium and <em>Native client support</em> enabled, you can skip the browser and use your own tools through the Azure CLI. First 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"><strong>RDP to a Windows VM</strong> (from a Windows machine; opens <em>mstsc</em>):</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"><strong>SSH to a Linux VM</strong> with an SSH key, or with Microsoft Entra ID (<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"><strong>Tunnel</strong>: forward a local port to a VM, so you can use any SSH or SCP tool, or reach a custom port:</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"><strong>IP-based connection</strong>: replace <code>--target-resource-id</code> with <code>--target-ip-address 10.10.1.4</code> to reach a server that isn&#8217;t an Azure VM, for example on-premises over ExpressRoute or VPN.</p>



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



<p class="wp-block-paragraph">A minimal example that deploys a Standard Bastion host into an existing hub virtual network, with the most-used features enabled. Change <em>skuName</em> to <em>Premium</em> to unlock 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>



<ul class="wp-block-list">
<li><strong>Billing is hourly</strong> for the dedicated SKUs, whether anyone is connected or not, plus each extra Standard/Premium instance above the included two, plus outbound data transfer (the first 5 GB per month is free). Check the <a href="https://azure.microsoft.com/pricing/details/azure-bastion/" target="_blank" rel="noopener">Azure Bastion pricing page</a> for current prices in your region.</li>

<li><strong>Use one Bastion per hub</strong>, not per spoke. Basic and higher reach peered VNets, so a single host can serve a whole landing zone.</li>

<li><strong>Use Developer for labs.</strong> It&#8217;s free and good enough for occasional access to test VMs.</li>

<li><strong>Scale units, not SKU, for capacity.</strong> Start Standard at 2 instances and scale up only when concurrent sessions require it.</li>

<li><strong>Deploy on demand</strong> in non-production: deploy Bastion with your template when you need it and remove it afterwards. Deployment takes a few minutes.</li>
</ul>



<h2 class="wp-block-heading">What&#039;s new in 2026</h2>



<p class="wp-block-paragraph">A few recent additions worth knowing about. All of them were still in <strong>public preview</strong> 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><strong>Managed identity for session recording</strong> (Premium): Bastion writes recordings to your storage account with Microsoft Entra ID instead of a SAS URL.</li>

<li><strong>IPv6 dual stack</strong> support for Bastion.</li>

<li><strong>AI-assisted session review</strong>: <em>RDP vision</em> and <em>SSH vision</em> summarize recorded sessions and flag risky activity, and <em>SSH command logs</em> capture the commands run during SSH sessions.</li>
</ul>



<h2 class="wp-block-heading">Which SKU should you choose?</h2>



<ul class="wp-block-list">
<li><strong>Developer</strong>: lab or dev/test, one person, VMs in a single VNet, zero budget.</li>

<li><strong>Basic</strong>: small production environments that only need browser-based RDP/SSH, including to peered spokes.</li>

<li><strong>Standard</strong>: the default for most organizations. Native client, file transfer, on-premises servers via IP-based connection, and scaling.</li>

<li><strong>Premium</strong>: regulated environments that need session recording or a Bastion without any public IP.</li>
</ul>



<p class="wp-block-paragraph">Whatever you pick: remove the public IPs from your VMs, close RDP and SSH to the internet, and let Bastion be the only way in.</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>
	</channel>
</rss>
