AzLocal.DeploymentAutomation
0.9.4
AzLocal.DeploymentAutomation module for deploying Azure Local using ARM templates and parameter files using PowerShell. Supports SingleNode, StorageSwitched (2-16 nodes with storage network switch), StorageSwitchless (2-4 nodes), and RackAware (2, 4, 6, 8 nodes) deployments. Resource naming standards are configurable via .config/naming-standards-config.json.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) Neil Bird. All rights reserved. See LICENSE for details.
Package Details
Author(s)
- Neil Bird MSFT
Tags
Azure AzureLocal AzureStackHCI Deployment ARM Template
Functions
Start-AzLocalTemplateDeployment Watch-AzLocalDeployment Start-AzLocalCsvDeployment Get-AzLocalDeploymentStatus
Dependencies
-
- Az.Accounts (>= 2.0.0)
- Az.Resources (>= 6.0.0)
Release Notes
## v0.9.3 - March 2026
- Renamed -TypeOfDeployment values for clarity: MultiNode → StorageSwitched, Switchless → StorageSwitchless
- "Multi-Node" was ambiguous since switchless deployments are also multi-node; new names clarify the storage networking topology
- Renamed template parameter files: multi-node-switched → storage-switched, switchless-Xnode → storage-switchless-Xnode
- Added Deployment Times section to README with real-world timing data from a 2-node StorageSwitchless deployment (~6 hours total)
- Updated all code, tests, pipelines, CSV, and documentation for the new deployment type names
- ARM template parameter names (storageConnectivitySwitchless, switchlessMultiServerDeployment) are unchanged — these are Microsoft-defined API values
## v0.9.2 - March 2026
- Added Azure prerequisite checks: automatic resource provider registration and RBAC role assignment validation
- New internal function: Test-AzLocalAzurePrerequisites — checks 12 required resource providers (auto-registers missing ones) and 6 required RBAC roles (advisory)
- Integrated prerequisite checks into both Start-AzLocalTemplateDeployment (standalone) and Test-AzLocalClusterPreFlight (CSV batch) paths
- RBAC checks are advisory (warnings) — missing roles are reported but do not block deployment
- Resource provider registration failures are hard failures — deployment cannot proceed without required providers
- Reference: https://learn.microsoft.com/azure/azure-local/deploy/deployment-arc-register-server-permissions
- Updated Pester tests with prerequisite check coverage
## v0.9.1 - March 2026
- Split switchless template into per-node-count files: switchless-2node, switchless-3node, switchless-4node (dual-link mesh: 2×(N-1) storage networks)
- Added -NodeCount parameter to Get-AzLocalParameterFilePath and New-AzLocalDeploymentParameterFile for switchless file selection
- Added environment section to .config/naming-standards-config.json for tenantId and hciResourceProviderObjectID
- HCI Resource Provider lookup now falls back to config value when Get-AzADServicePrincipal is unavailable
- Replaced real Azure GUIDs in example-single-node-parameters-file.json with placeholder values
- Fixed switchless networkingType from switchedMultiServerDeployment to switchlessMultiServerDeployment
- Fixed <caculated> typo to <calculated> in switchless template customLocation field
- Updated README with environment configuration steps, deployment type storage network details, and per-node-count file structure
- Updated Pester tests for new switchless file names and node-count selection (402 tests)
## v0.9.0 - February 2026
- Added CI/CD automation pipeline support for CSV-driven multi-cluster deployments
- New exported function: Start-AzLocalCsvDeployment — reads deployment CSV and submits ARM Validate/Deploy for eligible clusters
- New exported function: Get-AzLocalDeploymentStatus — monitors deployment progress across all clusters defined in CSV
- New internal functions: Import-AzLocalDeploymentCsv, Test-AzLocalClusterPreFlight, New-AzLocalJUnitXml
- Pre-flight checks: resource naming validation, resource group existence, Arc node registration, existing deployment detection
- JUnit XML output for CI/CD test result visibility (GitHub Actions dorny/test-reporter, Azure DevOps PublishTestResults)
- Example GitHub Actions workflows: validate-deployments.yml, deploy-clusters.yml, deployment-monitor.yml
- Example Azure DevOps pipelines: validate-deployments.yml, deploy-clusters.yml, deployment-monitor.yml
- Example cluster-deployments.csv with SingleNode, StorageSwitched, StorageSwitchless, and RackAware deployment types
- Authentication: OIDC (recommended), Managed Identity, Service Principal + Secret (legacy)
- automation-pipelines/README.md with full setup guide
## v0.8.0 - February 2026
- Added Set-StrictMode -Version Latest at module scope for stricter runtime error detection
- Added [OutputType()] declarations to all functions for improved IntelliSense and documentation
- Replaced string concatenation with Join-Path for all path construction (cross-platform safe)
- Added Az.KeyVault module availability check before Key Vault credential retrieval
- Added finally block to clear credential variables from memory after deployment execution
- Removed no-op regex replacements and dead commented-out code
- Replaced Remove-Variable anti-pattern with null assignment
- Normalised return keyword casing throughout module
## v0.7.0 - February 2026
- Added PSCredential parameter support (-LocalAdminCredential, -LCMAdminCredential) for non-interactive credential supply
- Added Azure Key Vault credential retrieval (-CredentialKeyVaultName, -LocalAdminSecretName, -LCMAdminSecretName)
- Credential resolution follows three-tier priority: Key Vault > PSCredential > interactive Read-Host
- Added -UniqueID parameter with ValidatePattern for non-interactive unique identifier supply
- Added -NetworkSettingsJson parameter and Get-AzLocalNetworkSettingsFromJson internal function for JSON-based network configuration
- Added SupportsShouldProcess with ConfirmImpact = High: -WhatIf and -Confirm supported on deployment phases
- Full CI/CD automation support: all interactive prompts can now be bypassed via parameters
- Updated Pester test suite with 39 new tests covering credential, network JSON, UniqueID, and ShouldProcess features (259 total)
## v0.6.0 - February 2026
- Added Write-AzLocalLog internal helper for standardised console and log file output
- Added -LogFilePath parameter to Start-AzLocalTemplateDeployment and Watch-AzLocalDeployment
- All console output now uses timestamped, colour-coded messages with severity levels (Info, Warning, Error, Success, Debug, Verbose)
- Replaced all Return "Error" patterns with throw for proper PowerShell error handling
- Added try/catch with error context to Get-AzLocalParameterFileSettings
- Added Write-Verbose instrumentation throughout for diagnostic visibility (-Verbose support)
- Updated README with Watch-AzLocalDeployment documentation, usage examples, and parameter reference
- Updated Pester tests for new error handling patterns, Write-AzLocalLog, and LogFilePath parameter
## v0.5.0 - February 2026
- Added Watch-AzLocalDeployment function for monitoring long-running ARM deployments
- Polls deployment status at configurable intervals with status change history
- Supports -TimeoutMinutes and -PassThru parameters
- Exported as a public function alongside Start-AzLocalTemplateDeployment
## v0.4.0 - February 2026
- Added RackAware deployment type with auto-zone assignment (2, 4, 6, or 8 nodes, evenly split across ZoneA and ZoneB)
- Updated ARM template API version from 2024-09-01-preview to 2025-02-01-preview
- Added Azure Government Cloud support (KeyVaultDNS, AzureServiceEndpoint)
- Added clusterPattern and localAvailabilityZones ARM template parameters
- Fixed AzureStackLCMAdminPasssword typo across all files (now AzureStackLCMAdminPassword)
- Added allowSharedKeyAccess: false to StorageAccountConfigurations for security hardening
- Changed Key Vault enableSoftDelete from true to false (matching upstream)
- Added rack-aware-parameters-file.json template parameter file
- Updated Pester test suite for RackAware coverage
## v0.3.0 - February 2026
- Added ValidateAndDeploy deployment mode for automated two-phase deployments
- Added optional -Location parameter to override config default
- Added optional -DnsServers parameter to override config default
- Added optional -ComputeManagementAdapters parameter to override config default
- Added optional -StorageAdapters parameter to override config default
- DNS servers, adapter names now managed via .config/naming-standards-config.json defaults
## v0.2.0 - February 2026
- Added StorageSwitched (formerly MultiNode) switched deployment support
- Refactored StoreNumber to UniqueID for broader applicability
- Added .config/naming-standards-config.json for configurable resource naming standards
- Node names now use {UniqueID}NODE{NodeNumber} pattern with dynamic node numbering
- Added Get-AzLocalNamingConfig and Resolve-AzLocalResourceName helper functions
- Created module manifest (.psd1) exporting Start-AzLocalTemplateDeployment
- Added multi-node-switched-parameters-file.json template
- Added Pester test suite (Tests/ folder) with HTML report generation
## v0.1.1 - May 2025
- Initial release with SingleNode, TwoNode, and Switchless support
- TwoNode was later consolidated into StorageSwitched (formerly MultiNode, 2-16 nodes) in v0.8.0
FileList
- AzLocal.DeploymentAutomation.nuspec
- Public\Watch-AzLocalDeployment.ps1
- template-parameter-files\storage-switchless-2node-parameters-file.json
- Tests\AzLocal.DeploymentAutomation.Tests.ps1
- Tests\TestResults\TestResults_20260304_173831.log
- Tests\TestResults\TestResults_20260305_092212.xml
- .vscode\settings.json
- automation-pipelines\azure-devops\deployment-monitor.yml
- cluster-specific-parameter-files\example-single-node-parameters-file.json
- Private\Get-AzLocalParameterFilePath.ps1
- Private\New-AzLocalDeploymentParameterFile.ps1
- Private\Test-AzLocalResourceNames.ps1
- template-parameter-files\rack-aware-parameters-file.json
- template-parameter-files\storage-switchless-3node-parameters-file.json
- Tests\Invoke-Tests.ps1
- Tests\TestResults\TestResults_20260304_173831.xml
- Tests\TestResults\TestResults_20260305_092742.html
- AzLocal.DeploymentAutomation.psd1
- .vscode\tasks.json
- automation-pipelines\azure-devops\validate-deployments.yml
- Private\Format-Json.ps1
- Private\Get-AzLocalParameterFileSettings.ps1
- Private\New-AzLocalJUnitXml.ps1
- Private\Write-AzLocalLog.ps1
- template-parameter-files\single-node-parameters-file.json
- template-parameter-files\storage-switchless-4node-parameters-file.json
- Tests\TestResults\TestResults_20260305_092212.html
- Tests\TestResults\TestResults_20260305_092742.log
- AzLocal.DeploymentAutomation.psm1
- automation-pipelines\cluster-deployments.csv
- automation-pipelines\github-actions\deploy-clusters.yml
- Private\Get-AzLocalDeploymentNetworkSettings.ps1
- Private\Get-ValidUniqueID.ps1
- Private\Resolve-AzLocalResourceName.ps1
- Public\Get-AzLocalDeploymentStatus.ps1
- template-parameter-files\storage-switched-parameters-file.json
- templates\azure-local-deployment-template.json
- Tests\TestResults\TestResults_20260304_173831.html
- Tests\TestResults\TestResults_20260305_092212.log
- Tests\TestResults\TestResults_20260305_092742.xml
- README.md
- automation-pipelines\README.md
- automation-pipelines\github-actions\deployment-monitor.yml
- Private\Get-AzLocalNamingConfig.ps1
- Private\Import-AzLocalDeploymentCsv.ps1
- Private\Test-AzLocalAzurePrerequisites.ps1
- Public\Start-AzLocalCsvDeployment.ps1
- .config\naming-standards-config.json
- automation-pipelines\azure-devops\deploy-clusters.yml
- automation-pipelines\github-actions\validate-deployments.yml
- Private\Get-AzLocalNetworkSettingsFromJson.ps1
- Private\Initialize-AzLocalLogFile.ps1
- Private\Test-AzLocalClusterPreFlight.ps1
- Public\Start-AzLocalTemplateDeployment.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 0.9.5 | 4 | 3/16/2026 |
| 0.9.4 (current version) | 7 | 3/11/2026 |
| 0.9.3 | 9 | 3/4/2026 |