Azure Local | HomeLab setup – Part II

AzureLocalHomeLab
Reading Time: 6 minutes


In the first post, we covered all the essential groundwork required to prepare for an Azure Local deployment. This included setting up the Azure tenant and configuring Active Directory—two foundational steps that ensure a smooth and secure environment for the cluster to operate in.

Now, with the preparations complete, we’re ready to move forward with the actual on-premises installation. In this post, we’ll begin by provisioning a virtual machine using Hyper-V, which will serve as the host for Azure Local. Once the VM is configured, we’ll proceed with registering it to Azure Arc. This step is critical, as it enables centralized management and visibility of the node directly from the Azure portal, bridging the gap between on-premises infrastructure and cloud-native tooling.

Running Setup

After starting the virtual machine, I promptly pressed a key during the boot sequence to ensure it launched from the ISO image. This step is crucial, as it initiates the installation process for Azure Local. Missing this brief window would result in the VM booting from the default disk, requiring a restart to retry the ISO boot. By catching it early, the setup proceeds smoothly, allowing the environment to load the installer and begin configuration without delay.

Selecting Dutch as your time and currency format is a perfectly natural choice when you’re working in a Dutch environment. It keeps the system aligned with your regional standards—dates appear in the familiar dd‑mm‑yyyy format, currency displays in euros, and time follows the conventions you’re used to. It also helps avoid small but annoying inconsistencies later in the setup, especially when logs, updates, or regional settings come into play.

I choose to use the United States-International Keyboard setup.

This step is fairly straightforward: we proceed with installing Azure Stack HCI. If you’re wondering what happened to Azure Local—don’t worry. Microsoft is not that fast with rebranding everything if they decide to use a new name. Azure Local was formally known as Azure Stack HCI.

By confirming this option, we also acknowledge that the installation will completely wipe the selected disk. All existing data, partitions, and configurations will be removed to prepare the system for a clean deployment. Since this VM is dedicated to Azure Local, that’s perfectly fine and ensures a stable, predictable foundation for the cluster.

I selected the first disk, a 127 GB virtual drive, because it will serve solely as the boot disk for the operating system installation. Since this disk is dedicated to hosting the Azure Stack HCI base OS, its size is more than sufficient, and all workload‑related storage will be handled separately on the additional data disks.

After the installation completes, the system will reboot several times—much like a standard Windows Server deployment. When the process finishes, the node will start in Server Core mode. From here, you’ll be prompted to configure the initial system settings, including basic networking and the hostname. These steps are expected and form part of the normal post‑installation workflow.

One critical point to highlight: do not join the node to the domain at this stage. Although it may feel like the natural next step, Azure Local handles domain‑joining automatically during the configuration process in the Azure portal. Manually adding the node to the domain now will interfere with the deployment and can cause the setup to fail. Keeping the node in a workgroup until the portal-driven configuration begins ensures a clean and supported installation path.

Screenshot 2025 12 27 at 22.26.16

Setting the Administrator password is one of the final steps before the node becomes ready for Azure Local configuration. In Server Core, this prompt appears immediately after the first boot sequence completes. At this stage, you simply provide the password that will later be used for the AsBuiltInAdmin account once Azure Local automatically renames it during setup.

This password becomes the local break‑glass credential for the node, so it’s worth choosing something strong and storing it securely. Even though day‑to‑day management will eventually happen through Azure Arc and domain‑based identities, this local admin password remains essential for maintenance and recovery scenarios.

Screenshot 2025 12 27 at 22.27.15

Choose a name that is unique within your environment, but also meaningful to you. It’s a good practice to incorporate details such as the physical location, datacenter, or even the rack where the node resides. This makes it much easier to identify and manage nodes later on, especially as your environment grows. A clear naming convention helps maintain structure and avoids confusion when troubleshooting or expanding the cluster.

Screenshot 2025 12 27 at 22.27.55

I enabled Remote Desktop on the node to simplify the next steps in the setup process. Having RDP access makes it much easier to run the required PowerShell commands for onboarding the server into Azure Arc. While it’s possible to perform the registration directly from the console, using Remote Desktop provides a more comfortable and efficient workflow—especially when copying commands, handling authentication prompts, or reviewing output during the Arc connection process.

Screenshot 2025 12 27 at 22.28.30

Setting the correct timezone is an important part of the initial configuration, especially in environments where logs, updates, and authentication rely heavily on accurate timekeeping. After selecting the appropriate timezone on the node, there’s one additional step that’s easy to overlook but absolutely essential when running Azure Local inside Hyper‑V.

Hyper‑V includes a set of Guest Services, and one of them is Time Synchronization. By default, this feature keeps the VM’s clock aligned with the Hyper‑V host. While that’s useful for many workloads, it can interfere with Azure Local’s own time management. Azure Local expects to control time synchronization itself—typically through domain controllers or its internal time services. If Hyper‑V continues to override the VM’s clock, you may run into issues later during cluster validation, domain joining, or certificate handling.

For that reason, it’s important to disable Time Synchronization for this VM in the Hyper‑V settings. This ensures the node maintains its own time source and behaves consistently with the rest of your environment.

Once the timezone is set and Hyper‑V time sync is disabled, the node is ready to move on to the next configuration steps without risking time drift or conflicts.

Screenshot 2025 12 27 at 22.31.00

After configuring the network settings, rebooting the machine ensures that all changes are properly applied. Once the node comes back online, you can connect to it via Remote Desktop. Using RDP at this stage makes the upcoming steps—especially running the Azure Arc onboarding commands—much more convenient. Copying scripts, handling authentication prompts, and reviewing output is simply smoother in a full remote session compared to working directly in the Server Core console.

A clean reboot and an RDP session set you up nicely for the Arc registration workflow that follows.

Setup Azure ARC

After connecting with RDP to the server, choose option 15 in the config menu to enter the Powershell window.

$Subscription = "<YOUR SUBSCRIPTION ID>"
$RG = "<YOUR RESOURCE GROUP>"
$Tenant = "<YOUR TENANT ID>"

Connect-AzAccount -SubscriptionId $Subscription -TenantId $Tenant -DeviceCode

$ARMtoken = (Get-AzAccessToken).Token

$id = (Get-AzContext).Account.Id

Invoke-AzStackHciArcInitialization -SubscriptionID $Subscription -ResourceGroup $RG -TenantID $Tenant -Region westeurope -Cloud "AzureCloud" -ArmAccessToken $ARMtoken -AccountID $id 

This will trigger a bootstrap installation of the Azure ARC Agent installation, but also the registration of the agent in Azure Arc
When it is done, you will see in https://portal.azure.com/#view/Microsoft_Azure_ArcCenterUX/ArcCenterMenuBlade/~/servers the node appear.

Share and Enjoy !

Shares
Designer (23)

Stay close to the action—follow GetToThe.Cloud across social!
Deep dives and hands‑on how‑tos on Azure Local, hybrid cloud, automation, PowerShell/Bicep, AVD + FSLogix, image pipelines, monitoring, networking, and resilient design when the internet/Azure is down.

🔗 Our channels
▶️ YouTube: https://www.youtube.com/channel/UCa33PgGdXt-Dr4w3Ub9hrdQ
💼 LinkedIn Group: https://www.linkedin.com/groups/9181126/
✖️ X (Twitter): https://x.com/Gettothecloud
🎵 TikTok: https://www.tiktok.com/@gettothecloud
🐙 GitHub: https://github.com/GetToThe-Cloud/Website
💬 Slack: DM us for an invite
📲 WhatsApp: DM for the community link

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. View more
Cookies settings
Accept
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

Who we are

Our website address is: https://www.gettothe.cloud

Comments

When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection. An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.

Media

If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.

Cookies

If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year. If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser. When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed. If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website. These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue. For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where we send your data

Visitor comments may be checked through an automated spam detection service.
Save settings
Cookies settings