Skip to main content
Version: 2604 (Preview)

Task 01: Create USB Installation Media

Runbook Azure Preview

DOCUMENT CATEGORY: Runbook SCOPE: USB media creation for simplified provisioning PURPOSE: Create a bootable USB drive with the maintenance environment MASTER REFERENCE: Microsoft Learn — Simplified Machine Provisioning

Status: Active

Automated Alternative — azurelocal-ztp

For a fully automated approach that bypasses USB media entirely, see the azurelocal-ztp project. It uses BMC/Redfish (iDRAC, XCC, iLO) to mount the maintenance-environment ISO as virtual media, set the boot source, and reboot — all without physical USB media or anyone in the rack.


Overview

Use the USB preparation tool to create a bootable USB drive containing the maintenance environment. This USB is used in Task 02 to boot each server into the maintenance environment, which generates ownership vouchers for Azure provisioning.

USB Erasure

The USB preparation tool erases all data on the selected USB drive. Back up any important data before proceeding.


Prerequisites

RequirementDetails
Windows 11 PCWith reliable internet connection and USB port
USB flash driveAt least 8 GB of space
Downloaded softwareMaintenance environment ISO + USB preparation tool from Azure portal

Step-by-Step

Step 1: Download the Software

  1. In the Azure portal, navigate to Azure ArcAzure LocalGet started
  2. On the banner at the top, select Try provisioning (preview)
  3. On the Machine provisioning (preview) page, select View Downloads in the Download and install tile
  4. Download:
    • Maintenance environment ISO image
    • USB preparation tool (usb_prep.exe)
    • Configurator app (used in later tasks)

Step 2: Add Defender Exclusion

The USB preparation tool requires a Windows Defender exclusion to run properly. Scope the exclusion narrowly to only the specific extracted path you downloaded from the Azure portal:

# Add exclusion for the USB preparation tool — use the exact path to your extracted folder
Add-MpPreference -ExclusionPath "{PATH_TO_EXTRACTED_FOLDER}\usb_prep.exe"

Alternatively: Windows SecurityVirus & threat protectionManage settingsExclusionsAdd an ExclusionFile → select usb_prep.exe.

Remove Defender Exclusion After Use

Defender exclusions reduce your security posture. After you have finished creating the USB media in Step 3, remove the exclusion immediately:

# Remove the exclusion after USB creation is complete
Remove-MpPreference -ExclusionPath "{PATH_TO_EXTRACTED_FOLDER}\usb_prep.exe"

Or remove it via Windows SecurityVirus & threat protectionManage settingsExclusions → remove the usb_prep.exe entry.

Step 3: Create the Bootable USB

  1. Attach the USB flash drive to your Windows 11 PC
  2. Open an elevated terminal (Run as Administrator)
  3. Run the USB preparation tool from the downloaded software package
  4. When prompted, enter the full path to the folder containing the maintenance environment ISO
  5. Select the USB drive from the list of available drives
  6. Press Y to confirm — this erases all content on the USB drive
  7. Wait for the tool to complete the media creation process

Step 4: Safely Eject

When the tool completes successfully, safely eject and disconnect the USB flash drive. It is now ready to boot servers in Task 02.


Validation

  • USB preparation tool completed without errors
  • USB drive safely ejected
  • USB drive is bootable (will be verified when booting servers in Task 02)

Troubleshooting

IssueResolution
usb_prep.exe blocked by DefenderAdd the exclusion path per Step 2. Ensure the exclusion points to the exact file path.
USB tool fails to detect driveEnsure the USB is at least 8 GB, formatted as FAT32 or NTFS, and not mounted by other software. Try a different USB port.
Tool reports insufficient spaceUse a USB drive with at least 8 GB. The maintenance ISO requires significant space.
Permission deniedRun the terminal as Administrator. The tool requires elevated privileges.

Simplified Provisioning Overview↑ Phase 02: OS InstallationTask 02: Prepare Machines →

VersionDateAuthorChanges
1.02026-05-01Azure Local CloudInitial release