Active Directory Authentication - Portal Deployment
DOCUMENT CATEGORY: Runbook
SCOPE: Portal-based cluster deployment with Active Directory authentication
PURPOSE: Deploy Azure Local cluster using domain accounts and AD-managed identity
MASTER REFERENCE: Microsoft Learn — Deploy Azure Local via Portal
[](https://Azure Local Cloud.com)
Status: Active
Overview
Active Directory deployment is the Azure Local Cloud standard for Azure Local clusters. Authentication is managed through domain accounts, with the Life Cycle Manager (LCM) service account pre-created in AD. Nodes are either left in a workgroup (the default: the wizard joins them to the domain automatically during deployment) or, starting with Azure Local 2604, domain joined before deployment as an optional path (see Optional: domain join before deployment).
Active Directory authentication is the recommended and fully supported Azure Local Cloud deployment method for Azure Local. All AD object prerequisites were completed in Phase 02 (Active Directory Configuration). If that work is not done, stop and complete Phase 02 first.
Prerequisites
All items below must be complete before starting the portal wizard. These were completed in earlier phases — this is a verification checklist only.
AD Prerequisites (Phase 02)
| Requirement | Description | Validation |
|---|---|---|
| AD objects pre-created | New-HciAdObjectsPreCreation run successfully | Objects visible in OU=AzureLocal |
| LCM service account | svc-azl-deploy@<DOMAIN> exists, password ≥14 chars | Get-ADUser svc-azl-deploy |
| Computer accounts | Pre-created computer objects for each node in designated OU | Get-ADComputer -SearchBase <OU> |
| Group memberships | LCM account in all required AD groups | Get-ADGroupMember |
Node Prerequisites (Phase 04)
| Requirement | Description | Validation |
|---|---|---|
| Domain membership | Default: nodes are in a workgroup and the wizard joins them to the domain during deployment. Optional (2604 or later): nodes already domain joined, with the deployment user in the local Administrators group on each node | (Get-CimInstance Win32_ComputerSystem).PartOfDomain is False (default) or True (optional pre-join); then Get-LocalGroupMember -Group Administrators shows the deployment user if pre-joined |
| Arc registered | All nodes visible in Azure Arc > Servers | Portal: Arc > Servers |
| DNS resolves domain | All nodes can resolve the AD domain FQDN | Resolve-DnsName corp.azurelocal.cloud |
| DC accessible | Domain controller reachable on port 389 from node management IPs | Test-NetConnection <DC_IP> -Port 389 |
| WinRM enabled | Remote management enabled on all nodes | Test-WSMan <NODE_IP> |
Microsoft Learn 2611 states: "Starting with version 2604, domain joining before deployment is supported. If you choose to domain join, you must add the deployment user to the local Administrators group. If you don't domain join beforehand, the machines are automatically joined to a domain during the Deployment via Azure portal."
- Default path: leave the nodes in a workgroup. The wizard performs the domain join.
- Pre-join path: follow Optional: domain join before deployment on every node. Mixing is not documented by Learn: use the same path on all nodes.
- The Environment Checker software validator is run with
-Exclude Test-IsNotPartofDomainso a pre-joined node does not fail that check.
Per Microsoft Learn 2610, starting with software version 12.2512 new deployments no longer create a Microsoft Entra ID application (service principal) for the cluster. The cluster uses a system-assigned managed identity to authenticate with Azure. For earlier deployments the Entra application is no longer used and can be deleted after you confirm event ID 609 in the Microsoft-AzureStack-HCI/Admin log on the machines (registration context v4). Azure Local does not support deploying with an existing Azure Key Vault that has Private Endpoints enabled.
Azure Prerequisites
| Requirement | Description | Validation |
|---|---|---|
| Subscription | Active subscription; the deploying user is a User Access Administrator and a Contributor on the subscription | Get-AzSubscription |
| Resource group roles | On the Arc resource group the deploying user has Azure Stack HCI Administrator, Reader, Key Vault Data Access Administrator, Key Vault Secrets Officer, Key Vault Contributor and Storage Account Contributor, plus Azure Connected Machine Onboarding and Azure Connected Machine Resource Administrator | Resource group > Access control (IAM) |
| Resource group | Dedicated RG for the cluster | Created in Azure Portal |
| Arc registration | All nodes Arc-registered (Phase 04) | Azure Portal > Arc > Servers |
Variables from infrastructure.yml
| Path | Type | Description |
|---|---|---|
cluster.name | string | Cluster name |
azure.location | string | Azure region |
identity.active_directory.domain_fqdn | string | AD domain FQDN |
identity.active_directory.ou_path | string | AD OU distinguished name |
identity.active_directory.lcm_user.username | string | LCM service account |
networking.intents[].adapters | array | Network adapter names |
networking.management.infrastructure_pool.start | string | IP pool start |
networking.management.infrastructure_pool.end | string | IP pool end |
networking.management.subnet | string | Subnet mask |
networking.management.gateway | string | Default gateway |
networking.management.dns_servers | array | DNS servers |
cluster.witness.storage_account | object | Witness storage account |
Portal Deployment
Task 1: Navigate to Azure Local
- Open Azure Portal
- Search for "Azure Local"
- Select Azure Local from results
- Click + Create
Task 2: Basics Configuration
| Field | Value | Source |
|---|---|---|
| Subscription | Select subscription | User Access Administrator and Contributor on the subscription |
| Resource group | Select or create | Dedicated RG for cluster |
| Cluster name | <CLUSTER_NAME> | cluster.name |
| Region | <AZURE_REGION> | azure.location |
Add Arc-registered machines:
- Click Add machines
- Select all Arc-registered nodes from Phase 04
- Click Add
- Allow time for Arc extension installation to complete before proceeding
Authentication selection:
Under the Identity section of the Basics tab, select Active Directory as the authentication type. Domain credentials are entered in Task 4 below.
Task 3: Configuration
- Select New configuration (manual configuration)
- Do NOT use an existing template unless one has been explicitly reviewed and approved for this environment
Task 4: Basics — Domain Credentials
The domain credential fields appear in the Basics tab after selecting Active Directory authentication. There is no separate Identity tab.
| Field | Value | Source |
|---|---|---|
| Authentication type | Active Directory | |
| Domain FQDN | corp.azurelocal.cloud | identity.active_directory.domain_fqdn |
| Computer OU | OU=AzureLocal,OU=Servers,DC=corp,DC=azurelocal,DC=cloud | identity.active_directory.ou_path |
| Deployment user | svc-azl-deploy@corp.azurelocal.cloud | identity.active_directory.lcm_user.username |
| Deployment password | [Enter service account password] | identity.active_directory.lcm_user.password (keyvault ref) |
The deployment account password must be at least 14 characters. This is a Microsoft hard requirement for the LCM service account. A password shorter than 14 characters will fail portal validation with no clear error message.
The OU path entered here must exactly match the OU used by New-HciAdObjectsPreCreation in Phase 02. The pre-created computer account objects for each node must reside in this OU at the time the wizard runs. Verify with Get-ADComputer -SearchBase "<OU>" before proceeding.
Task 5: Networking Configuration
Storage connectivity:
| Option | When to use |
|---|---|
| Network switch for storage traffic | 3+ node clusters (recommended) |
| No switch for storage | 1–2 node clusters only (switchless) |
Network intents:
The number of intents, traffic type assignments, and adapter bindings configured here must match the design from your planning and discovery sessions, as captured in infrastructure.yml under networking.intents[]. Do not assume a specific number of intents or a fixed layout.
Typical layouts:
| Layout | Intent | Traffic types |
|---|---|---|
| 2-intent | Management + Compute | Management, Compute |
| 2-intent | Storage | Storage |
| 3-intent | Management | Management |
| 3-intent | Compute | Compute |
| 3-intent | Storage | Storage |
For adapter assignments for each intent, refer to networking.intents[].adapters in your infrastructure.yml.
IP allocation:
| Setting | Value | Source |
|---|---|---|
| Starting IP | First available management IP | networking.management.infrastructure_pool.start |
| Ending IP | Last available management IP | networking.management.infrastructure_pool.end |
| Subnet mask | e.g., 255.255.255.0 | networking.management.subnet |
| Default gateway | Gateway IP | networking.management.gateway |
| DNS servers | Primary, Secondary | networking.management.dns_servers |
A minimum of 6 consecutive IPs are required for cluster infrastructure (cluster IP, Arc Resource Bridge IP, etc.). Individual node management IPs are separate — do not include them in this pool.
Customize network settings (adapter property overrides):
For each network intent you can select Customize network settings. Microsoft Learn 2610 lists these portal options:
| Setting | Options |
|---|---|
| Storage traffic priority | Priority Flow Control priority where Data Center Bridging (DCB) is used |
| System traffic priority | 5, 6 or 7 |
| Storage traffic bandwidth reservation | Percentage allocated to storage traffic |
| Jumbo frame size (bytes) | 1514, 4088 or 9014 |
| RDMA protocol | iWARP, RoCE, RoCEv2, or disabled |
Learn does not state per-intent defaults for these values (for example RDMA off and jumbo 1514 on management and compute, RDMA and jumbo only on storage). Treat any such default as lab-verified only and confirm it on a 2610 deployment with Get-NetIntent, Get-NetAdapterAdvancedProperty -RegistryKeyword *JumboPacket and Get-NetAdapterRdma. Change adapter properties only on OEM guidance. Guest RDMA is not supported on Azure Local. These settings do not apply to low capacity class devices. Portal deployment does not let you specify your own storage intent IPs; use ARM template deployment for custom storage IPs.
For AD deployments, the DNS servers entered here must be able to resolve identity.active_directory.domain_fqdn. Nodes query these DNS servers during the domain join step of deployment. If DNS cannot resolve the domain, deployment will fail at domain join.
Task 6: Management Configuration
| Setting | Value | Source |
|---|---|---|
| Custom location name | <CLUSTER_NAME>-location | For Arc VM management |
| Cloud witness storage | Create or select storage account | For cluster quorum |
Per Microsoft Learn 2610, the portal Basics tab asks you to select an existing Key Vault or create a new one to store the system's secrets (such as cryptographic keys and local administrator credentials). A Key Vault is therefore part of AD deployments too. The wizard layout can differ between portal builds (lab-verified only), so confirm where your build shows the selector. Do not select an existing Key Vault that has Private Endpoints enabled: that is not supported.
Task 7: Security Configuration
| Setting | Recommendation | Notes |
|---|---|---|
| BitLocker for data volumes | Enabled | Encrypt all data volumes |
| BitLocker for OS boot | Enabled | Encrypt OS volumes |
| Credential Guard | Enabled | Protect domain credentials on nodes |
| WDAC | Enabled | Application control policy |
| Drift control | Enabled | Monitor security baseline |
| Side channel mitigation | Enabled | Protect against side-channel attacks |
| SMB signing | Required | Secure SMB traffic |
| SMB cluster encryption | Enabled | Encrypt intra-cluster traffic |
Select Recommended security settings to apply all settings at once.
Task 8: Advanced Configuration
Volume creation strategy:
- ✓ Create workload volumes and required infrastructure volumes (Recommended)
Tags:
| Tag | Value |
|---|---|
Environment | Production / Development |
DeploymentType | ActiveDirectory |
DeploymentDate | YYYY-MM-DD |
Task 9: Validation
- Click Start validation
- Wait approximately 15–20 minutes for all checks to complete
- Do NOT click "Try again" while validation is running — wait for it to complete or fail before taking any action
While validation runs, watch it with Azure Local Sonar.
Validation checks:
| Check | Description | Action if failed |
|---|---|---|
| Connectivity | All nodes reachable | Verify network connectivity |
| Arc registration | Nodes registered with Arc | Verify Phase 04 completion |
| Domain accessibility | DC reachable from nodes | Test-NetConnection <DC_IP> -Port 389 |
| Storage | Disks available and healthy | Check physical disk health |
| Network | NICs available and configured | Verify NIC drivers and connectivity |
| Azure endpoints | Required endpoints accessible | Check firewall and proxy rules |
Resolve all errors before proceeding to Task 10. Warnings may be acknowledged but should be documented.
Task 10: Review + Create
- Review all configuration settings on the summary page
- Confirm:
- All Arc-registered nodes are listed
- Authentication type shows Active Directory
- Domain FQDN and OU path are correct
- Management IP pool has 6+ IPs
- Storage adapters are configured
- Click Create
Deployment Progress
Estimated duration:
| Cluster size | Estimated time |
|---|---|
| Single machine | 1.5–2 hours |
| Two-node cluster | ~2.5 hours |
| Three+ node cluster | ~3 hours |
Deployment stages:
- Begin cloud deployment (45–60 min)
- Install Arc extensions
- Join nodes to domain
- Configure network intents
- Create storage pools and volumes
- Deploy Arc Resource Bridge
- Provision custom location
After clicking Create, watch the deployment with Azure Local Sonar.
Monitor progress in Azure Portal > Resource Groups > Your RG > Deployments.
Post-Deployment Validation
Verify Azure resources
| Resource type | Count | Description |
|---|---|---|
| Machine — Azure Arc | 1 per node | Arc-connected machines |
| Azure Local instance | 1 | Cluster resource |
| Arc Resource Bridge | 1 | VM management bridge |
| Custom location | 1 | For Arc VM placement |
Verify cluster health
- Manual
- Orchestrated Script
- Azure CLI
# Verify nodes are domain-joined after deployment
Invoke-Command -ComputerName @("iic-01-n01","iic-01-n02","iic-01-n03") -ScriptBlock {
$cs = Get-WmiObject Win32_ComputerSystem
[PSCustomObject]@{
Node = $env:COMPUTERNAME
Domain = $cs.Domain
DomainJoined = $cs.PartOfDomain
}
} | Format-Table -AutoSize
# Verify cluster status
Get-Cluster | Format-List Name, QuorumType, QuorumResourceName
# Verify all nodes online
Get-ClusterNode | Format-Table Name, State, NodeWeight
# Verify Storage Spaces Direct health
Get-StoragePool | Format-Table FriendlyName, HealthStatus, OperationalStatus
# Verify volumes
Get-Volume |
Where-Object FileSystemLabel -match 'ClusterPerf|UserStorage' |
Format-Table FileSystemLabel, HealthStatus, OperationalStatus, Size
PowerShell
When to use: Verify the domain join and the cluster health on all nodes after the deployment.
Script
| Script | What it does |
|---|---|
scripts/deploy/04-cluster-deployment/phase-06-post-deployment/task-09-post-deployment-verification/powershell/Invoke-VerifyPostDeployment.ps1 | Verifies the deployed instance against infrastructure.yml. Read only. It checks, in order: every node is a cluster node and Up; the identity (with Active Directory every node is joined to identity.active_directory.domain_fqdn and its secure channel works; with local identity every node is in a workgroup); the quorum; the security groups; SSH; storage; the VM images and the logical networks in Azure. Supports -WhatIf. |
The earlier verification scripts of this task folder (Test-ClusterHealth.ps1, Invoke-VerifyClusterHealth-Orchestrated.ps1 and the -Standalone copies) are removed. The powershell folder of this task holds only a .gitkeep file: the script above does the work. For the whole Phase 06 verification in one run, Invoke-PostDeploymentVerification-Orchestrated.ps1 of Task 09 runs it, runs the Azure CLI script of that task and adds the solution health summary and, with an external SAN, the SAN disk checks. See Task 09: Post-deployment verification.
The login is -Credential, else the account the file names: the LCM user (identity.active_directory.lcm_user) with Active Directory, the local administrator (identity.local_admin) with local identity. The password is a secret reference. The script never prompts: with neither it stops with exit code 2.
Run
./Invoke-VerifyPostDeployment.ps1 -InfrastructureFile ./infrastructure.yml -WhatIf
./Invoke-VerifyPostDeployment.ps1 -InfrastructureFile ./infrastructure.yml
./Invoke-VerifyPostDeployment.ps1 -InfrastructureFile ./infrastructure.yml -TargetNode iic-azl-n01
Azure CLI
When to use: Verify in Azure that the deployment completed, from a host that has the Azure CLI and not the Az PowerShell modules. The scripts are read only.
Script
| Script | What it does |
|---|---|
scripts/deploy/04-cluster-deployment/phase-05-cluster-deployment/active-directory/task-02-verify-deployment-completion/azurecli/Test-ClusterDeployment.azcli.ps1 | Verifies in Azure that the deployment of an Azure Local instance with Active Directory identity completed, with the Azure CLI. Read only. It stops with exit code 2 before anything goes to Azure when scenario.identity is not active_directory. Supports -WhatIf (lists the checks and runs none). |
scripts/deploy/04-cluster-deployment/phase-05-cluster-deployment/Test-AzureLocalClusterDeployment.azcli.ps1 | The script that does the work; the task script calls it. |
Requires: PowerShell 7 and the Azure CLI, signed in with az login --tenant <azure.tenant_id>. Needs the Azure CLI extensions stack-hci, connectedmachine (az extension add --name stack-hci, az extension add --name connectedmachine); the script does not install them.
It checks that the Azure Local instance cluster.name is Succeeded, that its deployment status (deploymentSettings/default) is Success (a failed or unfinished deployment lists the steps that failed), and that every machine of nodes[] has an Arc machine with the status Connected. It does not reach the nodes or Active Directory: the checks of the nodes and of the domain run on premises, in Invoke-VerifyPostDeployment.ps1 (Task 09).
Run
./Test-ClusterDeployment.azcli.ps1 -InfrastructureFile ./infrastructure.yml -WhatIf
./Test-ClusterDeployment.azcli.ps1 -InfrastructureFile ./infrastructure.yml
RDP is disabled by default on all cluster nodes after deployment completes. To re-enable on a specific node, run this on the node (or via PSRemoting):
Enable-ASRemoteDesktop
This applies to all Azure Local deployments regardless of identity type.
Source: MS Learn — Deploy via Portal
Troubleshooting
| Issue | Cause | Resolution |
|---|---|---|
| Domain join fails | DC unreachable or wrong credentials | Test-NetConnection <DC_IP> -Port 389 + verify LCM account password |
| LCM password rejected by portal | Password < 14 characters | Reset service account password to ≥14 chars, retry wizard |
| Computer account conflict | Stale pre-existing account in OU | Delete stale computer object from OU, re-run validation |
| Node not domain-joined after deployment | DNS issue during join | Check DNS server setting in Task 5 resolves the AD domain |
| Validation timeout | Azure endpoint connectivity | Check firewall rules for required Azure endpoints |
| Arc extension install fails | Arc agent issue on node | Reinstall Azure Connected Machine agent on affected node |
| Storage configuration fails | Unhealthy physical disk | Get-PhysicalDisk on the affected node |
Collect deployment logs:
Get-ChildItem "C:\CloudDeployment\Logs" -Recurse |
Sort-Object LastWriteTime -Descending |
Select-Object -First 10 Name, LastWriteTime, Length |
Format-Table -AutoSize
Next Steps
| Deployment status | Next action |
|---|---|
| Successful | Proceed to Phase 16: Post-Deployment |
| Failed | Review troubleshooting section and deployment logs; re-run validation |
References:
- Microsoft Learn — Deploy Azure Local via Portal
- Microsoft Learn — AD Deployment Prerequisites
- Microsoft Learn — Deployment Troubleshooting
Version Control
- Created: 2026-01-30 by Azure Local Cloud
- Last Updated: 2026-03-09 by Azure Local Cloud
- Version: 1.1.0
- Tags: azure-local, active-directory, portal, runbook
- Keywords: active directory, domain deployment, portal deployment, azure local cluster, LCM user
- Author: Azure Local Cloud