# esri/arcgis-powershell-dsc architecture

> Architecture diagram of the GitHub repository esri/arcgis-powershell-dsc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/esri/arcgis-powershell-dsc
- Repository: https://github.com/esri/arcgis-powershell-dsc

## Overview

#### Purpose and Entry Points
This is a Windows PowerShell Desired State Configuration (DSC) module for declaratively installing, configuring, upgrading, and operating ArcGIS Enterprise and ArcGIS Pro deployments. The module entry points are `Modules/ArcGIS/ArcGIS.psd1` and `Modules/ArcGIS/ArcGIS.psm1`; consumers supply versioned JSON deployment definitions, validated against `ConfigurationSchemas/v5.1.1.json`, typically starting from `SampleConfigs/v5/v5.1.1`.

#### Configuration Contract and Deployment Inputs
JSON configurations describe target topology, components, credentials, licensing, TLS, storage, and server roles. Versioned schemas are the compatibility boundary between external deployment definitions and PowerShell configuration logic: `ConfigurationSchemas/v5.1.0.json`, `ConfigurationSchemas/v5.1.1.json`. Samples model single-, dual-, and multi-machine Enterprise, cloud-service, and specialized GIS-server deployments, e.g. `SampleConfigs/v5/v5.1.1/Base Deployment/BaseDeployment-MultiMachine.json`.

#### Orchestration Layer
High-level configuration scripts translate declared topology into ordered DSC resource invocations. There are separate Azure-oriented and on-premises orchestration families, which are the main control-flow boundary:
- Azure provisioning/configuration: `Modules/ArcGIS/Configurations-Azure/PortalConfiguration.ps1`, `Modules/ArcGIS/Configurations-Azure/GISServerConfiguration.ps1`, `Modules/ArcGIS/Configurations-Azure/DataStoreConfiguration.ps1`.
- On-premises installation/configuration: `Modules/ArcGIS/Configurations-OnPrem/ArcGISInstall.ps1`, `Modules/ArcGIS/Configurations-OnPrem/ArcGISPortal.ps1`, `Modules/ArcGIS/Configurations-OnPrem/ArcGISServer.ps1`.

#### DSC Resource Execution Layer
Custom DSC resources implement idempotent host-level and ArcGIS-level desired state, exposing MOF schemas plus PowerShell implementations. Core lifecycle resources install software, authorize it, create/configure sites, and manage machine state:
- `Modules/ArcGIS/DSCResources/ArcGIS_Install/ArcGIS_Install.psm1`
- `Modules/ArcGIS/DSCResources/ArcGIS_License/ArcGIS_License.psm1`
- `Modules/ArcGIS/DSCResources/ArcGIS_Portal/ArcGIS_Portal.psm1`
- `Modules/ArcGIS/DSCResources/ArcGIS_Server/ArcGIS_Server.psm1`

#### Enterprise Topology and Data Boundaries
Portal and ArcGIS Server sites are connected through federation; Data Store and enterprise geodatabases provide persistence. Web Adaptors, shared files, registered directories, and services connect external traffic and content to those sites. Key boundaries are represented by:
- Federation: `Modules/ArcGIS/DSCResources/ArcGIS_Federation/ArcGIS_Federation.psm1`
- Data Store: `Modules/ArcGIS/DSCResources/ArcGIS_DataStore/ArcGIS_DataStore.psm1`
- Enterprise geodatabase: `Modules/ArcGIS/DSCResources/ArcGIS_EGDB/ArcGIS_EGDB.psm1`
- Web Adaptor: `Modules/ArcGIS/DSCResources/ArcGIS_WebAdaptor/ArcGIS_WebAdaptor.psm1`

#### Operational Flows: Upgrade, Security, and Recovery
Upgrade is explicitly staged into pre-install, installer, configuration, and post-upgrade operations for Portal, Server, and Data Store. Security flows configure certificate imports and component-specific TLS. Disaster-recovery automation is a separate operational capability:
- `Modules/ArcGIS/Configurations-OnPrem/Upgrades/ServerUpgrade.ps1`
- `Modules/ArcGIS/DSCResources/ArcGIS_Server_TLS/ArcGIS_Server_TLS.psm1`
- `Modules/ArcGIS/DSCResources/ArcGIS_WebGISDR/ArcGIS_WebGISDR.psm1`

#### Runtime and External Dependencies
The runtime is Windows PowerShell DSC on Windows hosts. Managed infrastructure includes IIS/Web Adaptors, Windows services, firewall rules, SMB shares, disks, Windows Update/reboots, and optionally Docker for ArcGIS Notebook Server. External systems include ArcGIS Enterprise/Pro installers and licensing, SQL Server or PostgreSQL enterprise geodatabases, Azure deployment infrastructure, and AWS/Azure cloud-service configurations. ArcGIS REST/API interactions are encapsulated by client modules: `Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Portal.psm1`, `Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Server.psm1`.

Main entry points: [`Modules/ArcGIS/DSCResources/ArcGIS_Server/ArcGIS_Server.psm1`](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Server/ArcGIS_Server.psm1) (Server resource), [`Modules/ArcGIS/DSCResources/ArcGIS_Portal/ArcGIS_Portal.psm1`](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Portal/ArcGIS_Portal.psm1) (Portal resource), [`Modules/ArcGIS/ArcGIS.psm1`](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/ArcGIS.psm1) (ArcGIS DSC module), [`Modules/ArcGIS/DSCResources/ArcGIS_WebAdaptor/ArcGIS_WebAdaptor.psm1`](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_WebAdaptor/ArcGIS_WebAdaptor.psm1) (Web Adaptor resource)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Deployment contract"]
  node_module["ArcGIS DSC module<br/>PowerShell module<br/>[ArcGIS.psm1]"]
  node_schema["v5.1.1 schema<br/>JSON schema<br/>[v5.1.1.json]"]
  node_samples["Multi-machine sample<br/>deployment JSON"]
end

subgraph group_orchestration["DSC orchestration"]
  node_azure["Azure configurations<br/>orchestration scripts"]
  node_onprem["On-prem configurations<br/>orchestration scripts<br/>[ArcGISInstall.ps1]"]
  node_dsc{{"Windows PowerShell DSC<br/>runtime"}}
end

subgraph group_resources["Custom DSC resources"]
  node_install["Install resource<br/>DSC resource"]
  node_license["License resource<br/>DSC resource"]
  node_portal["Portal resource<br/>DSC resource<br/>[ArcGIS_Portal.psm1]"]
  node_server["Server resource<br/>DSC resource<br/>[ArcGIS_Server.psm1]"]
  node_federation["Federation resource<br/>DSC resource"]
  node_datastore["Data Store resource<br/>DSC resource"]
  node_egdb[("Enterprise geodatabase<br/>DSC resource<br/>[ArcGIS_EGDB.psm1]")]
  node_webadaptor["Web Adaptor resource<br/>DSC resource"]
  node_portalapi["Portal API client<br/>PowerShell client"]
  node_serverapi["Server API client<br/>PowerShell client"]
end

subgraph group_topology["Enterprise topology"]
  node_external{{"Installers and infrastructure<br/>external dependencies"}}
end

subgraph group_operations["Operations"]
  node_upgrade["Server upgrade<br/>upgrade orchestration<br/>[ServerUpgrade.ps1]"]
  node_tls["Server TLS resource<br/>DSC resource"]
  node_recovery["WebGIS DR resource<br/>DSC resource"]
end

node_samples -->|"validated by"| node_schema
node_schema -->|"defines input contract"| node_module
node_module -->|"loads"| node_azure
node_module -->|"loads"| node_onprem
node_azure -->|"emits configuration"| node_dsc
node_onprem -->|"emits configuration"| node_dsc
node_dsc -->|"applies"| node_install
node_dsc -->|"applies"| node_license
node_dsc -->|"applies"| node_portal
node_dsc -->|"applies"| node_server
node_dsc -->|"applies"| node_datastore
node_dsc -->|"applies"| node_egdb
node_dsc -->|"applies"| node_webadaptor
node_portal -.->|"uses"| node_portalapi
node_server -.->|"uses"| node_serverapi
node_federation -->|"connects"| node_portal
node_federation -->|"federates"| node_server
node_datastore -->|"provides persistence"| node_server
node_egdb -->|"stores GIS data"| node_server
node_webadaptor -->|"routes traffic"| node_portal
node_webadaptor -->|"routes traffic"| node_server
node_install -->|"installs from"| node_external
node_license -->|"authorizes with"| node_external
node_upgrade -->|"upgrades"| node_server
node_tls -->|"secures"| node_server
node_recovery -->|"recovers"| node_portal
node_recovery -->|"recovers"| node_datastore

click node_module "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/ArcGIS.psm1"
click node_schema "https://github.com/esri/arcgis-powershell-dsc/blob/main/ConfigurationSchemas/v5.1.1.json"
click node_samples "https://github.com/esri/arcgis-powershell-dsc/blob/main/SampleConfigs/v5/v5.1.1/Base%20Deployment/BaseDeployment-MultiMachine.json"
click node_azure "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Configurations-Azure/PortalConfiguration.ps1"
click node_onprem "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Configurations-OnPrem/ArcGISInstall.ps1"
click node_install "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Install/ArcGIS_Install.psm1"
click node_license "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_License/ArcGIS_License.psm1"
click node_portal "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Portal/ArcGIS_Portal.psm1"
click node_server "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Server/ArcGIS_Server.psm1"
click node_federation "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Federation/ArcGIS_Federation.psm1"
click node_datastore "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_DataStore/ArcGIS_DataStore.psm1"
click node_egdb "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_EGDB/ArcGIS_EGDB.psm1"
click node_webadaptor "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_WebAdaptor/ArcGIS_WebAdaptor.psm1"
click node_portalapi "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Portal.psm1"
click node_serverapi "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Server.psm1"
click node_upgrade "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Configurations-OnPrem/Upgrades/ServerUpgrade.ps1"
click node_tls "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Server_TLS/ArcGIS_Server_TLS.psm1"
click node_recovery "https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_WebGISDR/ArcGIS_WebGISDR.psm1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_module,node_schema,node_samples toneBlue
class node_azure,node_onprem,node_dsc toneAmber
class node_install,node_license,node_portal,node_server,node_federation,node_datastore,node_egdb,node_webadaptor,node_portalapi,node_serverapi toneMint
class node_external toneRose
class node_upgrade,node_tls,node_recovery toneIndigo
```

## Components

### Deployment contract

- [ArcGIS DSC module](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/ArcGIS.psm1): PowerShell module · Consumer entry point for deployment configurations. · `Modules/ArcGIS/ArcGIS.psm1`
- [v5.1.1 schema](https://github.com/esri/arcgis-powershell-dsc/blob/main/ConfigurationSchemas/v5.1.1.json): JSON schema · Compatibility contract for deployment definitions. · `ConfigurationSchemas/v5.1.1.json`
- [Multi-machine sample](https://github.com/esri/arcgis-powershell-dsc/blob/main/SampleConfigs/v5/v5.1.1/Base%20Deployment/BaseDeployment-MultiMachine.json): deployment JSON · `SampleConfigs/v5/v5.1.1/Base Deployment/BaseDeployment-MultiMachine.json`

### DSC orchestration

- [Azure configurations](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Configurations-Azure/PortalConfiguration.ps1): orchestration scripts · Build DSC configurations for Azure deployments. · `Modules/ArcGIS/Configurations-Azure/PortalConfiguration.ps1`
- [On-prem configurations](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Configurations-OnPrem/ArcGISInstall.ps1): orchestration scripts · Build ordered install and site configuration. · `Modules/ArcGIS/Configurations-OnPrem/ArcGISInstall.ps1`
- **Windows PowerShell DSC**: runtime · Applies compiled desired state on Windows hosts.

### Custom DSC resources

- [Install resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Install/ArcGIS_Install.psm1): DSC resource · `Modules/ArcGIS/DSCResources/ArcGIS_Install/ArcGIS_Install.psm1`
- [License resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_License/ArcGIS_License.psm1): DSC resource · `Modules/ArcGIS/DSCResources/ArcGIS_License/ArcGIS_License.psm1`
- [Portal resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Portal/ArcGIS_Portal.psm1): DSC resource · Creates and configures Portal sites. · `Modules/ArcGIS/DSCResources/ArcGIS_Portal/ArcGIS_Portal.psm1`
- [Server resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Server/ArcGIS_Server.psm1): DSC resource · Creates and configures ArcGIS Server sites. · `Modules/ArcGIS/DSCResources/ArcGIS_Server/ArcGIS_Server.psm1`
- [Federation resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Federation/ArcGIS_Federation.psm1): DSC resource · `Modules/ArcGIS/DSCResources/ArcGIS_Federation/ArcGIS_Federation.psm1`
- [Data Store resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_DataStore/ArcGIS_DataStore.psm1): DSC resource · `Modules/ArcGIS/DSCResources/ArcGIS_DataStore/ArcGIS_DataStore.psm1`
- [Enterprise geodatabase](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_EGDB/ArcGIS_EGDB.psm1): DSC resource · `Modules/ArcGIS/DSCResources/ArcGIS_EGDB/ArcGIS_EGDB.psm1`
- [Web Adaptor resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_WebAdaptor/ArcGIS_WebAdaptor.psm1): DSC resource · `Modules/ArcGIS/DSCResources/ArcGIS_WebAdaptor/ArcGIS_WebAdaptor.psm1`
- [Portal API client](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Portal.psm1): PowerShell client · Encapsulates ArcGIS Portal REST/API calls. · `Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Portal.psm1`
- [Server API client](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Server.psm1): PowerShell client · Encapsulates ArcGIS Server REST/API calls. · `Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Server.psm1`

### Enterprise topology

- **Installers and infrastructure**: external dependencies · ArcGIS installers, licensing, IIS, storage, databases, and cloud infrastructure.

### Operations

- [Server upgrade](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/Configurations-OnPrem/Upgrades/ServerUpgrade.ps1): upgrade orchestration · Stages pre-install, installer, configuration, and post-upgrade work. · `Modules/ArcGIS/Configurations-OnPrem/Upgrades/ServerUpgrade.ps1`
- [Server TLS resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_Server_TLS/ArcGIS_Server_TLS.psm1): DSC resource · Imports certificates and configures component TLS. · `Modules/ArcGIS/DSCResources/ArcGIS_Server_TLS/ArcGIS_Server_TLS.psm1`
- [WebGIS DR resource](https://github.com/esri/arcgis-powershell-dsc/blob/main/Modules/ArcGIS/DSCResources/ArcGIS_WebGISDR/ArcGIS_WebGISDR.psm1): DSC resource · Automates disaster recovery operations. · `Modules/ArcGIS/DSCResources/ArcGIS_WebGISDR/ArcGIS_WebGISDR.psm1`

## Connections

- Multi-machine sample → v5.1.1 schema: validated by
- v5.1.1 schema → ArcGIS DSC module: defines input contract
- ArcGIS DSC module → Azure configurations: loads
- ArcGIS DSC module → On-prem configurations: loads
- Azure configurations → Windows PowerShell DSC: emits configuration
- On-prem configurations → Windows PowerShell DSC: emits configuration
- Windows PowerShell DSC → Install resource: applies
- Windows PowerShell DSC → License resource: applies
- Windows PowerShell DSC → Portal resource: applies
- Windows PowerShell DSC → Server resource: applies
- Windows PowerShell DSC → Data Store resource: applies
- Windows PowerShell DSC → Enterprise geodatabase: applies
- Windows PowerShell DSC → Web Adaptor resource: applies
- Portal resource → Portal API client: uses
- Server resource → Server API client: uses
- Federation resource → Portal resource: connects
- Federation resource → Server resource: federates
- Data Store resource → Server resource: provides persistence
- Enterprise geodatabase → Server resource: stores GIS data
- Web Adaptor resource → Portal resource: routes traffic
- Web Adaptor resource → Server resource: routes traffic
- Install resource → Installers and infrastructure: installs from
- License resource → Installers and infrastructure: authorizes with
- Server upgrade → Server resource: upgrades
- Server TLS resource → Server resource: secures
- WebGIS DR resource → Portal resource: recovers
- WebGIS DR resource → Data Store resource: recovers
