John Liu Blog

Every drop counts

Run container in Azure VM

We can run container (using Docker Desktop) inside Azure VM. Following are some considerations for the setup. Not all Azure VM support container. D4_v5 and above VM support nested virtulization. When creating the Zure VM, ensure the security type on the Basic tab is set to “Standard”, not “Trusted Launch”. Trusted Launch does not support Nested Virtualization. Azure Portal default to Trusted Launch. After VM is created, turn Windows featur “Windows Hypervisor Platform” on.

Hyper-v: Connect Host and Guest

To have network connectivity between Hyper-v host and guest, do the following steps: In Hyper-v Manager, click on Virtual Switch Manager, and create a new (if not already) Internal virtual switch. Enable VLAN ID. In the VM guest setting, configure a Network Adapter to use this Internal virtual switch. In host computer, in Control Panel, configure IPV4 address for the Internal netowrk created above step 1. No default gateway setting required.

SQL Playground Setup

This post descript the steps to setup a SQL Server failover cluster playground environment. Create a base server template VM of Windows Server 2022, with features .Net Framwork 3.5.1, Failover Clustering, and Multipath I/O installed via the Server Manager. Assign 4 Network Adapters, with the first adapter using NAT. Once the template server setup is done, run sysprep from cmd. The options for sysprep should be set to “Enter System Out-of-Box Experience (OOBE)” and the checkbox for Generalize should be checked, and set Shutdown option as Shutdown.

Power BI Embed Report in Application

This is a testing embed report with hidden filter: To hide the filters pan, clck on the eye icon aside the Filters header. The eye icon to hide individual filter doesn’t appear to be working in embed mode, until the entire filter pan is hidden. Following is the url with filter format URL?filter=Table/Field eq 'filter value' URL?filter=Table/Field in ('value1', 'value2') With ifram embeding, you will need to use &$ instead of ?

Hugo Tips

Add Hyperlink In Hugo markup, you can create hyperlink to reference either internal or external webpages. To reference internal (on the same site) page: [your title]({{< ref "/your reference file name.md" >}}) To referenc external page, hyperlink will open in a new tab: This one will add a line break after the hyperlink: we use the newtabref-newline Hugo shortcodes {{< newtabref-newline href="https://...." title="your title" >}} This one will not add a line break after the hyperlink: we use the newtabref-inline Hugo shortcodes {{< newtabref-inline href="https://.