How esri/arcgis-powershell-dsc works
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: ArcGIS_Server.psm1 Server resource · ArcGIS_Portal.psm1 Portal resource · ArcGIS.psm1 ArcGIS DSC module · ArcGIS_WebAdaptor.psm1 Web Adaptor resource
Components 20
Deployment contract
- ArcGIS DSC module · Consumer entry point for deployment configurations.
Modules/ArcGIS/ArcGIS.psm1 - v5.1.1 schema · Compatibility contract for deployment definitions.
ConfigurationSchemas/v5.1.1.json - Multi-machine sample
SampleConfigs/v5/v5.1.1/Base Deployment/BaseDeployment-MultiMachine.json
DSC orchestration
- Azure configurations · Build DSC configurations for Azure deployments.
Modules/ArcGIS/Configurations-Azure/PortalConfiguration.ps1 - On-prem configurations · Build ordered install and site configuration.
Modules/ArcGIS/Configurations-OnPrem/ArcGISInstall.ps1 - Windows PowerShell DSC · Applies compiled desired state on Windows hosts.
Custom DSC resources
- Install resource
Modules/ArcGIS/DSCResources/ArcGIS_Install/ArcGIS_Install.psm1 - License resource
Modules/ArcGIS/DSCResources/ArcGIS_License/ArcGIS_License.psm1 - Portal resource · Creates and configures Portal sites.
Modules/ArcGIS/DSCResources/ArcGIS_Portal/ArcGIS_Portal.psm1 - Server resource · Creates and configures ArcGIS Server sites.
Modules/ArcGIS/DSCResources/ArcGIS_Server/ArcGIS_Server.psm1 - Federation resource
Modules/ArcGIS/DSCResources/ArcGIS_Federation/ArcGIS_Federation.psm1 - Data Store resource
Modules/ArcGIS/DSCResources/ArcGIS_DataStore/ArcGIS_DataStore.psm1 - Enterprise geodatabase
Modules/ArcGIS/DSCResources/ArcGIS_EGDB/ArcGIS_EGDB.psm1 - Web Adaptor resource
Modules/ArcGIS/DSCResources/ArcGIS_WebAdaptor/ArcGIS_WebAdaptor.psm1 - Portal API client · Encapsulates ArcGIS Portal REST/API calls.
Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Portal.psm1 - Server API client · Encapsulates ArcGIS Server REST/API calls.
Modules/ArcGIS/Modules/ArcGIS.Client/ArcGIS.Client.Server.psm1
Enterprise topology
- Installers and infrastructure · ArcGIS installers, licensing, IIS, storage, databases, and cloud infrastructure.
Operations
- Server upgrade · Stages pre-install, installer, configuration, and post-upgrade work.
Modules/ArcGIS/Configurations-OnPrem/Upgrades/ServerUpgrade.ps1 - Server TLS resource · Imports certificates and configures component TLS.
Modules/ArcGIS/DSCResources/ArcGIS_Server_TLS/ArcGIS_Server_TLS.psm1 - WebGIS DR resource · Automates disaster recovery operations.
Modules/ArcGIS/DSCResources/ArcGIS_WebGISDR/ArcGIS_WebGISDR.psm1
Connections 27
- 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