Enabling the Hyper-V role in a B2s VM does not mean nested virtualization is functional—while the OS may report Hyper-V as "Enabled," this only confirms that the feature is installed, not that the necessary hardware virtualization extensions (like Intel VT-x or AMD-V) are exposed by the Azure hypervisor. Without these hardware capabilities, you can install the Hyper-V role but cannot run nested virtual machines or containers with Hyper-V isolation.
B4s is a size in series Bsv2, as per Azure documentation B4s do not support nested virtualization. The B-series is designed for burstable workloads but lacks the required hardware virtualization passthrough for nested virtualization. No burstable series (B2s, B4s, Bsv2, etc.) officially support nested virtualization, regardless of region or security settings
Nested virtualization support is generally available in all regions for supported VM sizes, but there can be exceptions. Always check the Azure portal for SKU availability in your target region.
Trusted Launch VMs are not compatible with nested virtualization. To enable Nested Virtualization in an Azure VM, make sure to set Security Type as "Standard". Enable nested virtualization
Azure does not currently offer a VM size that combines both features. You must choose between burstable pricing (B-series) and nested virtualization.
Some series that support Nested virtualization:
Dsv6 sizes series Dsv6
Dlsv6 sizes series Dlsv6
Dasv6 sizes series dasv6 and some other D series supports nested virtualization.
F-family and FX-family series supports nested virtualization for all sizes. compute-optimized F & FX family
Note: You can refer to the Azure documentation for each VM series to verify whether it supports nested virtualization.
If you have any further queries, let me know. If the information is helpful, please click on Upvote.